lunchpad

2.4.0 • Public • Published

LUNCHPAD

Lunchpad is a interface for the Novation Launchpad Mini.

Lunchpad runs in the browser and on node.js.

installation

npm install lunchpad

dependencies

If you are running this module on node.js, you'll need the additional midi dependency:

npm install midi

invocation

node / browser

const launchpad = require('lunchpad')
const Color = launchpad.Color
 
launchpad.initialize().then(interface =>  {
    //set the color of the coordinate 0/0 (bottom left) to the color Amber
    interface.setSquare(0, 0, Color.getColor(3, 3))
 
    //register an event handler that will trigger whenever one of the square buttons is pressed
    interface.on('input', (x, y) => console.log(x, y))
}, error => console.log(error))

Dependents (0)

Package Sidebar

Install

npm i lunchpad

Weekly Downloads

2

Version

2.4.0

License

MIT

Unpacked Size

39.5 kB

Total Files

19

Last publish

Collaborators

  • zaphod1984