I have the following code for sending MIDI to my controller when switching rackspaces.
On Activate
byte2=0x7f
m = MakeMidiMessage3(byte0,byte1,byte2)
Print(MidiOutDeviceExists(d))
if MidiOutDeviceExists(d) then SendNowToMidiOutDevice(d, m) End
End
On deactivate
byte2=0
m = MakeMidiMessage3(byte0,byte1,byte2)
if MidiOutDeviceExists(d) then SendNowToMidiOutDevice(d, m) End
End
I have similar in each rackspace. When I execute it I get this.
Note that the “True” is printed, yet gig perform still gives me the error.
On further research, I found that another application had control of my output device (On Windows) so although the port “exists”, it was not accessible from Gig Performer.
Possible things to look at.
- Maybe a new command MidiOutDeviceOpen(d)
- Maybe when viewing MIDI options, if a port is checked but not accessible by Gig Performer, show an error or make the text of the port name show it red.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz