Methods
-
async, static loadInstrument(audioContext, name, url_or_data) → {Promise.<Instrument>}
-
Loads an existing Instrument object capable of mapping audio data to musical output.
If the
url_or_dataparameter is set tonull, a sine-wave oscillator will be used to generate all audio output.Parameters:
Name Type Description audioContextAudioContext Reference to the global browser AudioContext
namestring Name of the instrument to load
url_or_datastring | Array.<Uint8Array> | null URL pointing to the instrument data to load, the instrument data itself, or
null- See: