Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MIDI Triggers Default Port
#1
I'm using the MIDI triggers successfully (thanks for that!), but the default port listed as MIDI input device is always the first alphabetical port. Is it possible to inject the number/name of the specific port I use? I've been looking at the code but it's quite complex for me. I'm using the 18th device on the list.
#2
MIDI devices are identified by device ID, which is a number 0, 1, 2 and so on. The dialog stores it in the registry. By default it is 0.

This code in function MT_Dialog gets ID from the registry and stores in variable tls1:
Code:
Copy      Help
,rget(tls1 "midiinid" "" 0 -1)
Here 0 is default port, used if it is not found in the registry. You can replace it with 18.

If you need ID to be always 18, replace this line with
tls1=18
#3
As always, you are the Greatest. And you reply fast too. Thank you.
#4
Quote:Here 0 is default port, used if it is not found in the registry. You can replace it with 18.

Mistake. Here -1 is default. If -1, shows dialog.


Forum Jump:


Users browsing this thread: 1 Guest(s)