
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
launchpad-s-reader
Advanced tools
read input from Launchpad S MIDI controller
$ npm install --save launchpad-s-reader
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()
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
| column | button |
|---|---|
| 0 | up |
| 1 | down |
| 2 | left |
| 3 | right |
| 4 | session |
| 5 | user1 |
| 6 | user2 |
| 7 | mixer |
the round buttons down the far right column are as follows
| row | button |
|---|---|
| 0 | vol |
| 1 | pan |
| 2 | sndA |
| 3 | sndB |
| 4 | stop |
| 5 | trkOn |
| 6 | solo |
| 7 | arm |
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
FAQs
read input from Launchpad S MIDI controller
We found that launchpad-s-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.