@pohy/ableton
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

Ableton Build Status

Parser for Ableton Live's .als file format.

Intro

Ableton project files are just XML underneath, so the parser returns a Cheerio object for the project file. You can then use all the normal jQuery commands to get the data out.

Install

$ npm install --save ableton

Use

Initialise

var Ableton = require('ableton');
var ableton = new Ableton('/path/to/project.als');

Read

ableton.read(function(error, $) {
  if (error) {
    console.error(error);
  }
  else {
    // `$` is the Cheerio root object.
    console.log($('ableton').attr('creator'));
  }
});

Write

var xml = ... // An XML string representing an Ableton project file.
ableton.write(xml, function(error) {
  if (error) {
    console.log(error);
  }
  else {
    console.log('Written successfully to ' + ableton.path);
  }
});

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @pohy/ableton

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

240 kB

Total Files

15

Last publish

Collaborators

  • pohy