SendNowToMidiOutDevice

Hi, I have the following code in one of my rackspaces. I would like to use the alias rather than the physical device name, but I don’t think it is possible.

Is there a function to SendNowToMidiOutAlias? Or a way to send different MIDI depending on what the device alias points to. The idea is for different rigs, to send different MIDI messages as you move from one rackspace to another. That way the MIDI controller has a visual showing which rackspace you are on.

// only if using APCKeys

Var 
byte0 : Integer =0x90
byte1 : Integer =0
byte2 : Integer 
m:  MidiMessage
//d: String = "My KeyBoard" This doesn't work for my Alias
d: String = "APC Key 25"

On Activate
    byte2=0x7f
    m = MakeMidiMessage3(byte0,byte1,byte2)
    SendNowToMidiOutDevice(d, m)

End // OnActivate

On deactivate
    byte2=0
    m = MakeMidiMessage3(byte0,byte1,byte2)
    SendNowToMidiOutDevice(d, m)
End

SteveC

Aliases are generally not supported for MIDI Outputs.

OK. That is what I figured.

It would probably be better to tie Rackspaces to widgets and then have the widgets convert to MIDI update my controller. I could then use Rig Manager to tell what note messages to send in case I’m using a different controller for LED indicators.

Unfortunately, you are right…