Tone.Instrument
↳ EXTENDS ToneBase-class for all instruments
CONSTRUCTOR
new Tone.Instrument ( )DEFAULTS
{
volume
:
0
}
- volume
MEMBERS
Members
Methods
.triggerAttackRelease ( )
#
note
The note to trigger.
type:
Frequency
duration
How long the note should be held for before triggering the release. This value must be greater than 0.
type:
Time
time
When the note should be triggered.
type:
Time
default:
now
velocity
The velocity the note should be triggered at.
type:
NormalRange
default:
1
↪ returns
Tone.Instrument
this
Trigger the attack and then the release after the duration.
EXAMPLE
//trigger "C4" for the duration of an 8th note
synth.triggerAttackRelease("C4", "8n");