MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> OutputMidiMsg, specifying output port
(Message started by: StepLogik on Aug 28th, 2007, 7:07pm)

Title: OutputMidiMsg, specifying output port
Post by StepLogik on Aug 28th, 2007, 7:07pm
When using the OutputMidiMsg() method, the only way I can get it work is to pass -1 for the port parameter. However, I would like to specify exactly which port I would like to send the data to. If I have 3 output devices open, I would like to be able to only send data to one specific device.

When I pass in the port ID of an open output device, nothing is transmitted and I don't see any data in the output monitor. Passing -1 works, but it sends to all open output devices, which is not acceptable for my application.

Perhaps I am not understanding the correct usage of the port parameter or is there some configuration option I've missed?

Any help is greatly appreciated.

Title: Re: OutputMidiMsg, specifying output port
Post by StepLogik on Aug 28th, 2007, 7:31pm
Figured it out. Got bitten by the old "Off by 1" glitch!




MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.