2.4.0 • Published 5 years ago

lunchpad v2.4.0

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

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))
2.4.0

5 years ago

2.3.0

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago