Synths
Available built-in synthesizers
Some synthesizers are provided for convenience. They are implemented by connecting different modules together.
Mono synthesizer
A monophonic synthesizer with a single PolyBLEP oscillator and an ADSR envelope on the filter and amplifier.
Parameters
gate: 0 or 1, triggers the envelopefrequency: in Hzvolume: in decibels. Default is 0.
Modules
vibrato: LFO for pitch modulationfilterEnv: ADSR envelope the filter
Drums
Several drum synthesizers are available, all with the same constructor: Drum(audioContext, inputs):
Parameters
All drum modules share the same parameters:
trigger: 0 or 1, triggers the drum soundtone: 0 to 1, changes the timbre of the drum (scale depends on the drum)decay: 0 to 1, changes the length of the drum sound (sale depends on the drum)volume: in decibels. Default is 0.
Available drums
The following drums are available:
KickDrumSnareDrumClaveDrumHiHatDrumCowBellDrumCymbalDrumMaracasDrumHandclapDrumTomDrumCongaDrum