UNPKG

spessasynth_lib

Version:

MIDI and SoundFont2/DLS library for the browsers with no compromises

18 lines (15 loc) 534 B
import { rbCompressed } from "./rb_compressed.min.js"; import { SpessaSynthCoreUtils } from "spessasynth_core"; // convert the base64 string to array buffer const binaryString = atob(rbCompressed); const binary = new Uint8Array(binaryString.length); for (let i = 0; i < binaryString.length; i++) { binary[i] = binaryString.charCodeAt(i); } /** * the reverb is zlib compressed, decompress here * @type {ArrayBuffer} */ const reverbBufferBinary = SpessaSynthCoreUtils.inflateSync(binary).buffer; export { reverbBufferBinary };