-
Notifications
You must be signed in to change notification settings - Fork 5
MIDI Devices
Valentin Vago edited this page Apr 4, 2017
·
2 revisions
- Korg
- Akai
- Novation
- fork the repository
- install for development locally
- plug your MIDI device
- open the developer tools console of your browser and enter
navigator .requestMIDIAccess() .then(function(MIDIAccess) { MIDIAccess.inputs.forEach(function(input) { if (input.manufacturer) { console.info('manufacturer: "%s", name: "%s"', input.manufacturer, input.name); } }); });
- create a file in the relevant folder (under src/midi/devices, create one if needed) based on the src/midi/devices/_template.js
- in your new file edit the "prefix" of the mappings object based on the name of the MIDI device (use something short)
- add the reference to your file in the src/midi/state.js using the device manufacturer and name (as they appear in the console)
- start the development server
npm run run:dev
- edit the file you created to map the events (sorry, difficult to be more specific, look at the console output when you play around with your controller and the existing files for direction)
- commit, push and create a pull request
Feature idea? Feedback? Questions? Let's chat!