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 notenumber MIDI note number for which to generate a playable note
-
getNoteOffline(note)
-
Returns an AudioScheduledSourceNode that can be used to play back the specified MIDI
notefrom an OfflineAudioContext.Parameters:
Name Type Description OfflineAudioContext Offline audio context whicih will be used to play back the note
notenumber MIDI note number for which to generate a playable note