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

SoundFont2.metaData

SoundFont2.sampleData

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

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.

results matching ""

    No results matching ""