1.0.0 • Published 9 years ago

launchpad-s-reader v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Launchpad S Reader

read input from Launchpad S MIDI controller

$ npm install --save launchpad-s-reader

usage

var LaunchpadSReader = require('launchpad-s-reader')
var launchpad = new LaunchpadSReader()

launchpad.on('press', function (e) {
  console.log('press', e)
})

launchpad.on('release', function (e) {
  console.log('release', e)
})

launchpad.on('error', function (e) {
  console.log('error', e)
})

launchpad.connect()

buttons

when a 'press' or 'release' is fired, the e will look something like this

{
  button: '',
  deltaTime: 1, // seconds since last press or release
  message: []   // raw midi values
}

the button values tell you which button was pressed. i used the labels on the launchpad, so they should be straight forward, but i'll break it down anyway

the round buttons across the top row are as follows

columnbutton
0up
1down
2left
3right
4session
5user1
6user2
7mixer

the round buttons down the far right column are as follows

rowbutton
0vol
1pan
2sndA
3sndB
4stop
5trkOn
6solo
7arm

all the other buttons are called 'block's which will also come with x and y values corresponding to the column and row of that block