Constructor
new Note(target, noteParamsopt)
Create a note
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
target |
AudioContext | AudioNode | output destination for audio | ||||||||||||||||||||||||||||||||||||
noteParams |
Object |
<optional> |
options that affect the note as a whole
Properties
|
Methods
releaseNote()
Trigger the release of the envelope
stopNote(timeopt)
Stop all oscillators
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
time |
number |
<optional> |
AudioContext.currentTime | When to stop playing the notes. |