1// this script converts a soundfont into a json file, it has not been not used yet 2import fetch from 'node-fetch'; 3 4const name = '0000_JCLive'; 5 6const js = await fetch(`https://felixroos.github.io/webaudiofontdata/sound/${name}_sf2_file.js`).then((res) => 7 res.text(), 8); 9// console.log(js); 10 11let [_, data] = js.split('_sf2_file='); 12data = eval(data); 13console.log(JSON.stringify(data));