MIDI Button is a simple way to interface with MIDI Controllers.
$ npm install midibutton -SconstMIDIButton=require('midibutton')letpad=newMIDIButton(0)pad.on('discoverKey',key=>{key.on('down',()=>{console.log('Key down',key)})})pad.on('discoverKnob',knob=>{knob.on('change',()=>{console.log('Knob change',knob)})})Further documentation can be found in the documentation directory in the repo.
MIT