0.1.1 • Published 7 years ago

soundfont-parser v0.1.1

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

soundfont-parser

JS parser for SoundFont files.

Usage

const fs = require("fs");
const soundfontParser = require("soundfont-parser");

const file = fs.readFileSync(`${__dirname}/soundfont.sfz`, "utf8");

console.log(soundfontParser(file));
...
pitchlfo_freq: '8.176',
fil_type: 'lpf_2p',
cutoff: '19914' },
{ regions:
 [ [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object],
   [Object] ],
lokey: '0',
hikey: '127',
lovel: '0',
hivel: '127',
loop_mode: 'no_loop',
ampeg_attack: '0.001',
amplfo_freq: '8.176',
fillfo_freq: '8.176',
pitchlfo_freq: '8.176',
fil_type: 'lpf_2p',
cutoff: '19914' } ]