Interface: WapiInstrument

WapiInstrument

Interface for a MIDI-like instrument.

In order for an instrument to be useful, most instruments will also implement the WapiPlugin interface.

Source:

Methods

noteOff(time, note)

A note off event for the instrument.

Parameters:
Name Type Description
time number

The time that the note is turned on.

note string | number

Either a MIDI note or a string representing a note.

Source:

noteOn(time, note)

A note on event for the instrument.

Parameters:
Name Type Description
time number

The time that the note is turned on.

note string | number

Either a MIDI note or a string representing a note.

Source: