User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - SOLVED! Patch Map problem »
Welcome, Guest. Please Login or Register.
May 3rd, 2025, 5:36pm


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Mapping Questions
(Moderator: Jamie OConnell)
   SOLVED! Patch Map problem
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: SOLVED! Patch Map problem  (Read 5233 times)
ersteller
New Member
*



MIDI-OX is the best!

   
Email

Posts: 9
SOLVED! Patch Map problem
« on: Oct 13th, 2013, 5:01am »
Quote Quote Modify Modify

Hallo
 
I've a Silent Piano Yamaha: it sends always on MIDI channel 1.
 
I'd like to switch channels, sending ch1 or ch2 or... so I can play a four keyboard virtual organ, one keyboard responding to ch1, others on ch2, 4, 5 (ch3 is for the pedalboard).
 
I'd like to press the lowest keys of the piano to instruct MidiOX to send to the virtual organ the right MIDI channel:
 
Note played: A0  (21)  ->  MidiOX must send all MIDI data on channel 1
Note played: Bb0 (22)  ->  MidiOX must send all MIDI data on channel 2
Note played: B0  (23)  ->  MidiOX must send all MIDI data on channel 4
Note played: C1  (24)  ->  MidiOX must send all MIDI data on channel 5
 
 
I've setup four MidiOX maps (named "to ch1.oxm", "to ch2.oxm" etc.) that change the input channel as desired and I need to switch between them by pressing one of the sayed notes.
 
To switch between the four maps I've set up  the following Patch Map:
 
PatchMap="F:\dat\musica\MidiOX maps MI\Channels from La0-Do1.pmi"
Version=7.0.2.372
[MapPaths]
Map123="F:\dat\musica\MidiOX maps MI\to ch1.oxm"
Map124="F:\dat\musica\MidiOX maps MI\to ch2.oxm"
Map125="F:\dat\musica\MidiOX maps MI\to ch4.oxm"
Map126="F:\dat\musica\MidiOX maps MI\to ch5.oxm"
 
and for example the map "to ch2.oxm" is:
 
MOXMAP Version 5
 
[Map]
1,NoteOn,21,21,*,*,N,0,*,Discard,*,*,*,*                              -- Note on always discarded
1,NoteOn,22,22,*,*,N,0,*,Discard,*,*,*,*
1,NoteOn,23,23,*,*,N,0,*,Discard,*,*,*,*
1,NoteOn,24,24,*,*,N,0,*,Discard,*,*,*,*
1,NoteOff,21,21,*,*,N,0,*,ProgChg,123,123,*,*             -- Note off 21 sends PC 123, that should change to the map "to ch1.oxm"  
1,NoteOff,22,22,*,*,N,0,*,Discard,*,*,*,*                              -- Note off 22 discarded, I'm yet on Channel 2...
1,NoteOff,23,23,*,*,N,0,*,ProgChg,125,125,*,*                  -- Note off 23 sends PC 125, that should change to the map "to ch4.oxm"  
1,NoteOff,24,24,*,*,N,0,*,ProgChg,126,126,*,*                  -- Note off 24 sends PC 126, that should change to the map "to ch5.oxm"  
1,*,*,*,*,*,N,0,2,*,*,*,*,*                                                                        -- and now, all ch1 are mapped to ch2!
 
[Options]
WaitForFullNRPN=0
MapNRPNDataIncr=0
SendFullNRPN=0
ReverseDataEntry=0
 
 
The others three maps are like this one, with obvious modification.
 
 
PROBLEM:
The maps work well, they send the Program Change. But the Program Change doesn't trigger the change to the new map!
 
 
To clarify: Now I load "to ch2.oxm" in MidiOX an play A0, Bb0, B0 and C1:
 
Here the INPUT:
 
 TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT                
   4164207  1  --    144    21    65    1  A  0 Note On                
   4164341  1  --    128    21    64    1  A  0 Note Off              
   4164643  1  --    144    22    77    1  Bb 0 Note On                
   4164841  1  --    128    22    64    1  Bb 0 Note Off              
   4165092  1  --    144    23    77    1  B  0 Note On                
   4165269  1  --    128    23    64    1  B  0 Note Off              
   4165524  1  --    144    24    73    1  C  1 Note On                
   4165672  1  --    128    24    64    1  C  1 Note Off    
 
and here the OUTPUT:          
 
 TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT                
   4164341  1   3    192   123   ---    1  ---  PC: Bird Tweet        
   4165269  1   3    192   125   ---    1  ---  PC: Helicopter        
   4165672  1   3    192   126   ---    1  ---  PC: Applause          
 
I don't need this as OUTPUT! I need this:
 
 "Loaded Map: to ch1.oxm'"
 "Loaded Map: to ch4.oxm'"
 "Loaded Map: to ch5.oxm'"
 
Where is the error?
 
THANK YOU!
er
 
« Last Edit: Oct 18th, 2013, 9:32am by ersteller » IP Logged
Breath
Administrator
*****





   
WWW

Gender: male
Posts: 1030
Re: Patch Map problem
« Reply #1 on: Oct 17th, 2013, 9:18pm »
Quote Quote Modify Modify

Hi
 
The Patch Mapping is OK
 
MidiOx needs to see a Patch Change message coming in for the Patch Mapping to work.
 
So, set up a new Data map file ChanCtrl.oxm where your NoteOn any channel with a note range (21 to 24) is converted to PC with a range  (123 to 126)
 
[Map]
*,NoteOn,21,24,*,*,N,0,*,ProgChg,123,126,*,*
 
Connect your keyboard to an unused MidiYoke output and it will echo back to MidiOx.  
On the connection line right click on the box in the middle and select this ChanCtrl.oxm file.
 
Now your keyboard input will have this map file just applied to the data flowing to the MidiYoke output and your low notes will load the map files into the general map.
These newly loaded maps will be applied to all connections without a special map.
 
It loads it twice as MidiOx uses the Note Off message as well, but it shouldn't be a problem.
 
All the best
Royce
 
 
« Last Edit: Oct 17th, 2013, 9:42pm by Breath » IP Logged
ersteller
New Member
*



MIDI-OX is the best!

   
Email

Posts: 9
Re: SOLVED! Patch Map problem
« Reply #2 on: Oct 18th, 2013, 9:36am »
Quote Quote Modify Modify

THANK YOU Royce!
 
Now it's all working OK!  
 
I only added an unused Port in/out to obtain what I need, without selecting the ChanCtrl.oxm in the Properties of the connection line....
 
THANKS AGAIN!
er
IP Logged
krav_magan
Member
**



The Mox Script Master

   


Gender: male
Posts: 46
Re: SOLVED! Patch Map problem
« Reply #3 on: Oct 29th, 2013, 9:06am »
Quote Quote Modify Modify

Hey I'm trying to do a very similar thing and I'm having the same problem - no .oxm file loaded, instead I just see "fretless bass" or "seashore" etc.  I read over all the posts in this thread many times and I couldn't figure it out.
 
Breath, what is "the connection line" you talk about?
 
Thanks for any help in advance.
IP Logged
Breath
Administrator
*****





   
WWW

Gender: male
Posts: 1030
Re: SOLVED! Patch Map problem
« Reply #4 on: Oct 30th, 2013, 7:56am »
Quote Quote Modify Modify

In the Midi Port Routing window (View/Port Routing...) you connect Midi input devices to Midi output devices by left clicking and dragging In to Out or Out to In.
 
A line, like a patch chord, is drawn between the In and Out and there is a shaded square in the middle of the line.
Left click the square to bring up the properties window for that line.
 
On the right of the window there is a drop down list called 'Map File'. This allows you to have a mapping file just for this connection and multiple data maps active at one time.
 
When you select a map file and press OK the square gets a coloured mark to remind you that there is a data mapping attached to this connection.
 
All the best
Royce
IP Logged
krav_magan
Member
**



The Mox Script Master

   


Gender: male
Posts: 46
Re: SOLVED! Patch Map problem
« Reply #5 on: Oct 31st, 2013, 10:58am »
Quote Quote Modify Modify

I'm still getting "breath" and "seashore" instead of loading the oxm files but I'm really tired and I might be overlooking something obvious.  Thanks for the help regardless.
IP Logged
krav_magan
Member
**



The Mox Script Master

   


Gender: male
Posts: 46
Re: SOLVED! Patch Map problem
« Reply #6 on: Oct 31st, 2013, 8:34pm »
Quote Quote Modify Modify

I created the mapping file "NanoPatchChange.oxm" that just has data maps and program maps and have it loaded in the connection line.  I'm also running that file - not the files I want to be able to switch to.  Is this all correct?
IP Logged
krav_magan
Member
**



The Mox Script Master

   


Gender: male
Posts: 46
Re: SOLVED! Patch Map problem
« Reply #7 on: Oct 31st, 2013, 10:24pm »
Quote Quote Modify Modify

I just realized that the port routing dialog box is used to load the map you want to use for each connection.  I have the proper map for the connection line I'm using (the one with the program changes).  It's still not loading other data maps via the pc messages though.  Hmm...
IP Logged
Breath
Administrator
*****





   
WWW

Gender: male
Posts: 1030
Re: SOLVED! Patch Map problem
« Reply #8 on: Nov 1st, 2013, 1:32am »
Quote Quote Modify Modify

Have you set up the Patch Mapping?  
 
Options/Patch Mapping...
Select the Patch number on the left and the oxm in Map Location.
 
Don't forget to turn it on.  
The check box next to the OK button
 
All the best
Royce
« Last Edit: Nov 1st, 2013, 1:32am by Breath » IP Logged
krav_magan
Member
**



The Mox Script Master

   


Gender: male
Posts: 46
Re: SOLVED! Patch Map problem
« Reply #9 on: Nov 1st, 2013, 4:40am »
Quote Quote Modify Modify

Yah it's all set up.  Do I have to do anything with the port preset?
 
Breath, if it's not asking too much, would you make a set of files that can accomplish this in a really basic way so I can see a working version of this to see what I'm doing wrong?
 
Thanks for all your help.
IP Logged
ersteller
New Member
*



MIDI-OX is the best!

   
Email

Posts: 9
Re: SOLVED! Patch Map problem
« Reply #10 on: Nov 1st, 2013, 6:15am »
Quote Quote Modify Modify

I think that the most important thing to keep in mind is the following note by Breath:
 
"MidiOx needs to see a Patch Change message coming in for the Patch Mapping to work".  
 
As I understand it, this means that the Patch Map works BEFORE the Data Map.  
To have all running, what I've done was ONLY to connect my keyboard to an unused (newly defined in my setup) MidiYoke port so it echoes back to MidiOx, as Breath suggested in his first reply to this thread.
 
Hope that this can be of some help...
 
Ciao
er
IP Logged
krav_magan
Member
**



The Mox Script Master

   


Gender: male
Posts: 46
Re: SOLVED! Patch Map problem
« Reply #11 on: Nov 1st, 2013, 10:12am »
Quote Quote Modify Modify

I GOT IT!!!  Grin
 
Thanks ersteller!!!!!!!!  And thanks Breath for all the help!!!!!!!!!
 
 Grin Cheesy Grin
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


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