🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

launchpad-s-reader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launchpad-s-reader

read input from Launchpad S MIDI controller

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

launchpad

FAQs

Package last updated on 27 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts