Fix typos and improve comments.

"scaler" should be "scalar" but a shorter comment is clearer.
    "immediatly" was missing a letter.
This commit is contained in:
Ron Yeh 2021-03-30 16:46:02 -07:00
parent 053b5d4397
commit 59e484db83

View file

@ -62,7 +62,7 @@ export abstract class Monophonic<Options extends MonophonicOptions> extends Inst
* Trigger the attack of the note optionally with a given velocity. * Trigger the attack of the note optionally with a given velocity.
* @param note The note to trigger. * @param note The note to trigger.
* @param time When the note should start. * @param time When the note should start.
* @param velocity The velocity scaler determines how "loud" the note will be triggered. * @param velocity The velocity determines how "loud" the note will be.
* @example * @example
* const synth = new Tone.Synth().toDestination(); * const synth = new Tone.Synth().toDestination();
* // trigger the note a half second from now at half velocity * // trigger the note a half second from now at half velocity
@ -77,8 +77,8 @@ export abstract class Monophonic<Options extends MonophonicOptions> extends Inst
} }
/** /**
* Trigger the release portion of the envelope * Trigger the release portion of the envelope.
* @param time If no time is given, the release happens immediatly * @param time If no time is given, the release happens immediately.
* @example * @example
* const synth = new Tone.Synth().toDestination(); * const synth = new Tone.Synth().toDestination();
* synth.triggerAttack("C4"); * synth.triggerAttack("C4");