Tone.Instrument

↳ EXTENDS Tone

Base-class for all instruments

CONSTRUCTOR

new Tone.Instrument ( )

DEFAULTS

{
volume : 0
}

Members

∿

.volume

↝ Decibels #

The volume of the output in decibels.

EXAMPLE

source.volume.value = -6;
</>

Methods

.dispose ( )

#
↪ returns Tone.Instrument

this

clean up

</>

.triggerAttackRelease ( )

#
note

The note to trigger.

duration

How long the note should be held for before triggering the release.

type: Time
time

When the note should be triggered.

type: Time
default: now
velocity

The velocity the note should be triggered at.

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");
</>
docs generated Sep 15 2019