Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

launchpadder

A library for making the Novation Launchpad incredibly easy to play with.

readme

Launchpadder

A node library for interacting with the Novation Launchpad.

Installing

You can install Launchpadder via npm:

$ npm install launchpadder

Usage

I tried to make usage as straightforward as possible:

var Launchpadder = require("launchpadder");

// The 0 represents the MIDI port to connect with
var pad = new Launchpadder.Launchpad(0)

pad.on("press", function(button) {
    button.light();
    console.log(button + " was pressed");
});

pad.on("release", function(button) {
    button.dark();
    console.log(button + " was released");
});

Documentation

Coming soon. The library is still in its early stages, so I don't want to document everything now just to have it change in the future. Check launchpad.js for the current API, it's a pretty easy read.