Launchpad Node Module: midi-launchpad
Docs
Docs are available at: http://sydlawrence.github.io/node-midi-launchpad/
Installation
npm install midi-launchpad
Usage
var midiConnector = ; // wait for the connector to be readymidiConnector;
Colors
- launchpad.colors.off;
- launchpad.colors.red.low;
- launchpad.colors.red.medium;
- launchpad.colors.red.high;
- launchpad.colors.green.low;
- launchpad.colors.green.medium;
- launchpad.colors.green.high;
- launchpad.colors.orange.low;
- launchpad.colors.orange.medium;
- launchpad.colors.orange.high;
- launchpad.colors.yellow.low;
- launchpad.colors.yellow.medium;
- launchpad.colors.yellow.high;
Functions
turn off all the lights
launchpadclear;
light up all buttons
launchpad;
display a chatacter on the launchpad
launchpad;
display a string by flashing between the characters
launchpad;
use the launchpad as a scrolling display
launchpad;
render specific colors in specific buttons all at once
- 0 or " " for "off"
- y for yellow
- r for red
- g for green
- o for orange
launchpad;
Buttons
get a button
var button = launchpad;
light up a button
button;
get the current color
button;
buttonx; // the x co-ordbuttony; // the y co-ordbuttonspecial; // if the button is "special"
Events
button;button;
launchpad;launchpad;
Credits
© 2013 Syd Lawrence, We Make Awesome Sh
/\___/\
( o o )
( =^= )
( )
( )
( )))))))))))
e e e eeee eeeeeee eeeee eeeee eeee eeeee e e e eeeee
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 "
8e 8 8 8eee 8e 8 8 8eee8 8e 8 8eee 8e 8eee8 8e 8eeee
88 8 8 88 88 8 8 88 8 88 8 88 88 88 8 88 88
88ee8ee8 88ee 88 8 8 88 8 88ee8 88ee 88 88 8 88 8ee88