mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 03:23:11 +00:00
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:
parent
053b5d4397
commit
59e484db83
1 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ export abstract class Monophonic<Options extends MonophonicOptions> extends Inst
|
|||
* Trigger the attack of the note optionally with a given velocity.
|
||||
* @param note The note to trigger.
|
||||
* @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
|
||||
* const synth = new Tone.Synth().toDestination();
|
||||
* // 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
|
||||
* @param time If no time is given, the release happens immediatly
|
||||
* Trigger the release portion of the envelope.
|
||||
* @param time If no time is given, the release happens immediately.
|
||||
* @example
|
||||
* const synth = new Tone.Synth().toDestination();
|
||||
* synth.triggerAttack("C4");
|
||||
|
|
Loading…
Reference in a new issue