Posts: 11
Threads: 3
Joined: Dec 2009
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.
Posts: 12,147
Threads: 143
Joined: Dec 2002
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:
,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
Posts: 11
Threads: 3
Joined: Dec 2009
As always, you are the Greatest. And you reply fast too. Thank you.
Posts: 12,147
Threads: 143
Joined: Dec 2002
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.