MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> Copy Midi In to variouse Midi Out
(Message started by: mmoedern on Jan 2nd, 2006, 2:15am)

Title: Copy Midi In to variouse Midi Out
Post by mmoedern on Jan 2nd, 2006, 2:15am
Hi all,

Can anyone help me with a VBS code? I want to use a Midi Expander with 16 Channels on my 4 Channels Organ. Therefor i would need a script / program (in VBS, thus i cannot c++ the whole thing) that does copy the Midi Signals from 2 Midi-In Devices to a single Midi-Out device as follows:

copy Midi-In Dev1 channel 1 to Midi-Out channels 1,5,9+13
copy Midi-In Dev1 channel 2 to Midi-Out channels 2,6,10+14
copy Midi-In Dev1 channel 3 to Midi-Out channels 3,7,11+15
copy Midi-In Dev2  :o channel 4 to Midi-Out channels 4,8,12,16

Is this possible in realtime?

The result should be the possibility to use 4 instruments for the expander for every single midi channel on my organ. the problem is that i am using 2 midi-in devices (Midisport 2x2) and one midi-out

can anyone help me with this?
best regards
Martin

Title: Re: Copy Midi In to variouse Midi Out
Post by Jamie OConnell on Jan 2nd, 2006, 12:06pm
You can do this completely with MIDI-OX Data Mapping.  Scripting is not required.

You need to create two Data maps.  One will do the 1st part:

channel 1 to Midi-Out channels 1,5,9+13
channel 2 to Midi-Out channels 2,6,10+14
channel 3 to Midi-Out channels 3,7,11+15

You can use this if you save it as a .txm map and then import it in the data mapping dialog.  Resave it as a .oxm map:


------------snip-------------------
MOXMAP Version 5

[Map]
1,*,*,*,*,*,Y,0,5,*,*,*,*,*
1,*,*,*,*,*,Y,0,9,*,*,*,*,*
1,*,*,*,*,*,Y,0,13,*,*,*,*,*
2,*,*,*,*,*,Y,0,6,*,*,*,*,*
2,*,*,*,*,*,Y,0,10,*,*,*,*,*
2,*,*,*,*,*,Y,0,14,*,*,*,*,*
3,*,*,*,*,*,Y,0,7,*,*,*,*,*
3,*,*,*,*,*,Y,0,11,*,*,*,*,*
3,*,*,*,*,*,Y,0,15,*,*,*,*,*

-------------snip-----------------


and the other will do the 2nd part:

channel 4 to Midi-Out channels 4,8,12,16

Here:

-----------------------------------
MOXMAP Version 5

[Map]
4,*,*,*,*,*,Y,0,8,*,*,*,*,*
4,*,*,*,*,*,Y,0,12,*,*,*,*,*
4,*,*,*,*,*,Y,0,16,*,*,*,*,*

-----------------------------------


Save each map as a .oxm file.  Then, in the routing view you assign each map to its respective input-output connection.
 

Title: Re: Copy Midi In to variouse Midi Out
Post by mmoedern on Jan 3rd, 2006, 2:59am
Hi,

Well, thank you for the information. What i did not write down and why i want to do it via a script is that is do not want to have this combination stuff done static but dynamic: I want to select stops out of the expander, one time 5 stops for the "Great Organ" Channel 1 + 3 stops for the Pedal (Channel 3), next time i want 4 stops for each channel and so on ->

i want to select the organ's keyboard (and thus midi channel), then the stop i want to assign. after that the selected stop should be available on the selected keyboard -> i have to do the association dynamically.

best regards
Martin

Title: Re: Copy Midi In to variouse Midi Out
Post by Peter L Jones on Jan 3rd, 2006, 4:00pm
If you're going to have the organ stops transmit a MIDI Program Change message, you can use that to pick which mapping - still without scripting.



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