Creates an Sound object with the specified path and an optional options object. Paths can be absolute or relative to the JavaScript file being executed.
Throws an exception if the file does not exist at the specified path.
The amp velocity tracking for this sound. Range -1.0 - 1.0 Defaults to 1.0.
The attack in seconds for this sound. Defaults to 0.0.
The decay in seconds for this sound. Defaults to 0.0.
The end sample for this sound.
The file path for this sound.
The high key for this sound. Defaults to 127.
The high velocity for this sound. Defaults to 127.
The hold in seconds for this sound. Defaults to 0.0.
The identifier of this object.
The total number of samples in this sound.
The low key for this sound. Defaults to 0.
The low velocity for this sound. Defaults to 0.
The release in seconds for this sound. Defaults to 1.0.
The root key for this sound. Defaults to 60.
The start sample for this sound.
The sustain for this sound. Defaults to 1.0.
Splits this sound into equal parts or "slices".
The sounds will be mapped starting from this sound's "rootKey" property onward retaining the sound's high/low velocity values. So if you have a sound with a root key of 1 and call slice(10) you will get back 10 sounds mapped from rootKey 1 through rootKey 10. The maximum number of slices is 128 (one for each midi note).
If you have a sound with a root key of 126 and call slice(10) the root key will wrap around to 0 and you will get back 10 sounds mapped from rootKey 126 through rootKey 7.
The number of slices to create.
Generated using TypeDoc
Represents a sampler sound.