Class: WavetableSynthesizer

WavetableSynthesizer(audioContext, url)

new WavetableSynthesizer(audioContext, url)

Create an WavetableSynthesizer.
Parameters:
Name Type Description
audioContext Object An AudioContext.
url Object A URL for fetching wavetable data.
Author:
  • Lawrence Fyfe
Source:

Methods

(async) isReady() → {Promise}

Determines whether this synthesizer is ready.
Source:
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.
Source:

startNote(note)

Starts playing the specified note immediately.
Parameters:
Name Type Description
note Object The note to play.
Source:

stopNote(note)

Stops playing the specified note immediately.
Parameters:
Name Type Description
note Object The note to stop.
Source:

stopScheduledNotes()

Stop all scheduled notes. This is mainly to stop scheduled notes that are currently playing.
Source: