Lunchpad is a interface for the Novation Launchpad Mini.
Lunchpad runs in the browser and on node.js.
npm install lunchpad
If you are running this module on node.js, you'll need the additional midi dependency:
npm install midi
This module also runs on the browser and bring with it a shim for the hardware module that uses React to show a virtual copy of the actual Launchpad in the browser. If you want to use the shim, you additionally have to install react and react-dom:
npm install react react-dom
node / browser
const launchpad =const Color = launchpadColorlaunchpad
const launchpad =const Color = launchpadColor//use the function "initializeShim" instead of "initialize"//the id of the root node the shim should be displayed in has to be assignedlaunchpad
the bridge is a wrapper around the browserShim and the actual hardware interface which mirrors every action on the hardware interface and the browser
const launchpad =const Color = launchpadColorconst initialize = launchpadinitializeconst initializeShim = launchpadinitializeShimconst Bridge = launchpadBridgePromiseall