Members
-
synth :Synth
-
Description
The Synth instance
Details
-
type :Synth
-
Description
The tone type of the SynthVoice
Type of the voice; FT or HTDetails
-
initFrequency :hz
-
Description
Initial frequency expressed in hertz (Hz)
Details
-
osc :OscillatorNode
-
Description
The oscillator
Details
-
envelope :OscillatorNode
-
Description
The gain/volume to implement the Envelope Generator
Details
-
volume :OscillatorNode
-
Description
The gain/volume to implement the Velocity
A gain to manage the final voice volume if needed (currently not used)Details
Methods
-
setWaveform( waveform )
-
Description
Set/update the voice waveform
Parameters
Name Type Description waveform
'sine' | 'square' | 'sawtooth' | 'triangle' Waveform type
Details
-
setFrequency( update )
-
Description
Set/update the voice frequency
Parameters
Name Type Description update
boolean false
: The voice must be created.
true
: The voice must be updated.Details
-
voiceMute()
-
Description
Turn off the sound of the Voice (release)
Details