Instrument constructor.
Path to the instrument directory.
Loads instrument configuration from an instrument.json file in the base
URL directory. Does not load any of the samples.
Load samples necessary to play a set of pitch/velocity pairs. This must be called before any notes can be played.
Array of pitch/velocity pairs.
Play a note using one of the samples.
Pitch of the note.
Velocity of the note.
Time at which to start playing the note.
Length of the note in seconds.
Output AudioNode.
Generated using TypeDoc
Sampled instrument. Must be initialized and samples must be pre-loaded using the
loadSamplesmethod before any notes can be played.