Instrument

Object containing all instrument-specific WebAudioAPI functionality.

Members

name

Name of the Instrument.

Methods

getNote(note)

Returns an AudioScheduledSourceNode that can be used to play back the specified MIDI note.

Parameters:
Name Type Description
note number

MIDI note number for which to generate a playable note

See:

getNoteOffline(note)

Returns an AudioScheduledSourceNode that can be used to play back the specified MIDI note from an OfflineAudioContext.

Parameters:
Name Type Description
OfflineAudioContext

Offline audio context whicih will be used to play back the note

note number

MIDI note number for which to generate a playable note

See: