korg-nano-kontrol
Node.js/Browser library for KORG nanoKONTROL and nanoKONTROL2.
Install
% npm install korg-nano-kontrol -save
- On Node.js, This library depends on midi npm to handle MIDI messages. Please install ALSA libs after run npm install.
- On Browser, require WebMIDI API support.
Samples
Usage
Connect
find nanoKONTROL
or nanoKONTROL2
var nanoKONTROL = ; nanoKONTROL;
specify device name
nanoKONTROL;
Register Events
// register specific slider/knob/button eventsdevice; device; device; // catch all slider/knob/button eventsdevice; device; device;
Close
device;
Scene
nanoKONTROL has a scene
button
console; // => return 1~4 device;
Debug
enable debug npm
for node.js
% export DEBUG="korg-nano-kontrol:*"
for browser
localStorage.debug = "korg-nano-kontrol:*";
Build
% npm run build
% npm run buildSample
% npm run watch
Test
% npm install
% npm test
# or
% npm run watch