korg-nano-kontrol
nanoKONTROL1と2両方に対応している
code:sample.js
var nanoKONTROL = require('korg-nano-kontrol');
nanoKONTROL.connect()
.then(function(device){
console.log('connected!' + device.name);
// catch all slider/knob/button events
device.on('slider:*', function(value){
console.log(this.event+' => '+value);
});
device.on('knob:*', function(value){
console.log(this.event+' => '+value);
});
device.on('button:**', function(value){
console.log(this.event+' => '+value);
});
})
.catch(function(err){
console.error(err);
});