Re: Dynamic Channel Names #UnO2


Jack Fenton
 

    It is  requested primarily for code reuse. I  want to be able to use the same code preset to send to a different MIDI channel depending on the device I have selected.

Instead of

switch($device)
{
case "Hammond":
 SendMidi HAMMOND ProgChange 1
 break
case "Nord"
 SendMIDI NORD ProgChange 1
 break
default:
 break
}

I would like to do this:

SendMidi $Device ProgChange 1

You don't think this adds value?  No switch statements and just 1 line of code.

Join uno@fcb1010.groups.io to automatically receive all group messages.