asked Oct 05 at 22:48 by Mathiross (11)

Hi folks, I'm trying to write a script but I'm stuck. I would like to detect 2 different controllers on the same script: a midi flute (USB plug) and a midi foot controller (plugged in Midi IN on my Focusrite), in order to have all the automation lanes on the same track and also, to avoid mapping every time.

I've taken the "Generic MIDI Keyboard.control.js" as base, I've modified the name and UUID and the number of midi port like that: host.defineMidiPorts(2,0)



host.defineController("Generic", "TEST Midi flute + Foot controller", "1.0", "6969FAD0-174B-11E9-B56E-0800200C9A66");
host.addDeviceNameBasedDiscoveryPair(["MIDI Wind controller","Focusrite USB MIDI"],[]);

Until here, it works fine, in the settings, it asks 2 controllers IN ans no controller OUT, it's what I want:

My problem is that the script doesn't take the input of both controllers. Only the second one. In this case, only the foot controller plugged on the Focusrite will answer but not the Midi flute.

Do you have any idea to help me?

Thanks a lot, have a nice evening

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 05 at 22:48

Seen: 27 times

Last updated: Oct 05 at 22:48