SoundFont2
Table of Contents
new SoundFont2(buffer)
buffer
<Uint8Array> - The binary SoundFont2 data to parse.
Create a new instance of of the SoundFont2
class. This may throw a ParseError
if the SoundFont2 is invalid.
SoundFont2.chunk
- <SF2Chunk> - The raw, unparsed chunk data.
SoundFont2.metaData
- <MetaData> - The parsed meta data.
SoundFont2.sampleData
- <Uint8Array> - The full, unparsed sample data.
This includes all the samples in the SoundFont as a single buffer.
SoundFont2.samples
- <Sample[]> - An array of all samples with the sample headers.
SoundFont2.presetData
- <PresetData> - The raw, unparsed preset data.
SoundFont2.presets
- <Preset[]> - An array of all presets with the preset zones.
SoundFont2.instruments
- <Instrument[]> - An array of all instruments with the instrument zones.
SoundFont2.banks
- <Bank[]> - An array of all MIDI banks with the presets.
SoundFont2.getKeyData(keyNumber, bankNumber, presetNumber)
keyNumber
<number> - The MIDI key number.bankNumber
<number> - The MIDI bank number.presetNumber
<number> - The MIDI preset number.- Returns: <Key>
The result of this function is memoized.