MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> Minor bug in scripting engine ?
(Message started by: chkk on Aug 23rd, 2001, 2:56am)

Title: Minor bug in scripting engine ?
Post by chkk on Aug 23rd, 2001, 2:56am
I started to implement a master keyboard controller for my P-80 with Visual Basic based on the MIDI-OX COM component.

When initializing, I map the name of my configured input port to its id and get a 2 from MIDI-OX. For my output port, I get a 4.

BUT, when receiving data in the event handler from the configured port, I will always get 1 as the port number ... is this by design (why) or a bug ?

Sending to port 4 works fine ...

Anyway, a VERY COOL program, very usefull.

Greetings from Germany,
Christian

Title: Re: Minor bug in scripting engine ?
Post by JamieOConnell on Aug 24th, 2001, 8:24am
Thanks for the report...  I'll have to take a look.

The reason for this is that Port numbers are really numbered from 0 ... N-1, but we want to display them for humans so we add one before we display the port number in the monitor -- they are displayed 1 ... N



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