op1-drumkit-reader

1.0.1 • Public • Published

op1-drumkit-reader

Extract the JSON drumkit metadata from OP1 drumkit AIF(F) files. Requires Node.js >= 7.6.0 due to use of async functions.

Use it as a CLI tool

npm i -g op1-drumkit-reader
print-drumkit-json Example.aiff > Example.json

Use it programmatically

You can clone this repository and run node example/index.js. It contains roughly the following code:

const readDrumkitAsync = require('op1-drumkit-reader');
const path = require('path');

async function main() {
  try {
    let result = await readDrumkitAsync(path.resolve(__dirname, 'BayLeaf.aif'));
    let obj = JSON.parse(result);
    console.log(obj);
  } catch (e) {
    console.log(e);
  }
}

main();

Thanks to the following resources

Also, be sure to check out the OP-1 Drum Utility.

Readme

Keywords

none

Package Sidebar

Install

npm i op1-drumkit-reader

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • brentvatne