Skip to content
Valentin Vago edited this page Apr 4, 2017 · 2 revisions

Supported MIDI devices

Adding a device

  1. fork the repository
  2. install for development locally
  3. plug your MIDI device
  4. 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);
           }
         });
       });
  5. create a file in the relevant folder (under src/midi/devices, create one if needed) based on the src/midi/devices/_template.js
  6. in your new file edit the "prefix" of the mappings object based on the name of the MIDI device (use something short)
  7. add the reference to your file in the src/midi/state.js using the device manufacturer and name (as they appear in the console)
  8. start the development server npm run run:dev
  9. 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)
  10. commit, push and create a pull request
Clone this wiki locally