new WavetableSynthesizer(audioContext, url)
Create an WavetableSynthesizer.
Parameters:
| Name | Type | Description |
|---|---|---|
audioContext |
Object | An AudioContext. |
url |
Object | A URL for fetching wavetable data. |
Methods
(async) isReady() → {Promise}
Determines whether this synthesizer is ready.
Returns:
A promise that resolves when this synthesizer is ready.
- Type
- Promise
scheduleNote(note)
Schedules the specified note to be played according to its parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
note |
Object | The note to schedule. |
startNote(note)
Starts playing the specified note immediately.
Parameters:
| Name | Type | Description |
|---|---|---|
note |
Object | The note to play. |
stopNote(note)
Stops playing the specified note immediately.
Parameters:
| Name | Type | Description |
|---|---|---|
note |
Object | The note to stop. |
stopScheduledNotes()
Stop all scheduled notes. This is mainly to stop scheduled notes that are currently playing.