UNPKG

read-wasm-sf2

Version:

ports some parts of https://github.com/schellingb/TinySoundFont to wasm.

11 lines (10 loc) 293 B
const { loadSound, initSFReader } = require("."); const assert = require('assert'); initSFReader().then(() => { const t = process.uptime(); for (let i = 0; i < 125; i++) { const buffer = loadSound(i, 52, 100, 1); } console.log(t); console.log(process.update()) });