spessasynth_lib
Version:
MIDI and SoundFont2/DLS library with no compromises
17 lines (16 loc) • 593 B
JavaScript
import { readRIFFChunk } from "../basic_soundfont/riff_chunk.js";
import { SpessaSynthGroupCollapsed, SpessaSynthGroupEnd } from "../../utils/loggin.js";
import { consoleColors } from "../../utils/other.js";
/**
* @this {DLSSoundFont}
* @param instrumentListChunk {RiffChunk}
*/
export function readDLSInstrumentList(instrumentListChunk)
{
SpessaSynthGroupCollapsed("%cLoading instruments...", consoleColors.info);
for (let i = 0; i < this.instrumentAmount; i++)
{
this.readDLSInstrument(readRIFFChunk(instrumentListChunk.chunkData));
}
SpessaSynthGroupEnd();
}