MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> MIDI Keys trigger mapping config help
(Message started by: orangefx on Nov 7th, 2007, 2:28pm)

Title: MIDI Keys trigger mapping config help
Post by orangefx on Nov 7th, 2007, 2:28pm
:-/
hi everyone.
i read a lot in the forum, googeled for days, downloaded peters pdf, read the manual over and over but cant get a clue. since my native tongue is german i'm limited in understanding english manuals.  :'(
;)

i am trying to do a (should be) simple thing. my usb-midi controller sends on channel 1, i want it to send on channel 2 after hitting any uneven number (1;3;5;7;9) on my laptop keyboard. after pressing any even number (2;4;6;8;0) on my keyboard the rule should be dropped (meaning the controller should be sending on channel 1 again).


latest versions of midi yoke, midi keys (from midi-ox page) and midi-ox 7  all installed

i managed to monitor my keyboard pressing @ midiox output monitor (notes C#1,C-1) and i wrote a rule for routing all incoming on channel 1 to channel 2. i never could glue these rules together working the way i want it. i also have a hard time understanding the connection routing. the output should be routed to a dj software.

midikeys is set to send to "midi yoke 1" on "channel 10". it sends out 1 after pressing any even number (2;4;6;8;0) and it sends out 0 after hitting any uneven number (1;3;5;7;9)

can anyone tell me how to do this?

this is a screenshot of my config:
http://freenet-homepage.de/orangat/midimapping.JPG

greets from berlin
orangefx

Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Nov 7th, 2007, 2:49pm
To do this kind of control, you need to be switching Data Maps.  To switch Data Maps, you need a Patch Map to be controlling MIDI OX, using Program Change ("Patch") messages.  So step one is to turn the Note messages into Program Change messages.

Step zero is to set up the data mappings and save them as .OXM files.

Step two is to set up the patch maps, saying which .OXM file to load for each Program Change message.

Then you need to use MIDI Yoke to wire the incoming MIDI Keys messages into MIDI OX (translating them into Program Change messages), out to MIDI Yoke, back into MIDI OX (processes Program Change and switches Data Map controlled by Patch Map).

Not simple, I'm afraid.  It's covered a few times in more depth already.

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Nov 15th, 2007, 6:59pm
thanx peter for fast reply, but its only half the story (which is help but) i still cant get it together. would be gratefull for some instructions in routing midikeys+usb-device+midiox+software.

if u or anyone can link me to the "more depth" help please?

Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Nov 16th, 2007, 3:43pm
Have you looked at the "Patch Mapping" section in the manual, for a start?

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Nov 20th, 2007, 12:24pm

on 11/16/07 at 15:43:48, Peter L Jones wrote:
Have you looked at the "Patch Mapping" section in the manual, for a start?

yes, i did and it told me not what i need to know. maybe it's b/c i am too stupid. thats why i try to find help here.

i will list my procedure and the errors i receive here again in more detail:

1.
when opening midikeys i have 3 options of routing:
- out to midiyoke1
- midimapper
- all
i send the notes C-1 and C#1 to channel 10.
only when i connect to "ALL" there is something to see in the "output monitor" of midiox. should i leave it like that? shouldnt i connect to midiyoke?


2.
i created a data map saying "change any type message from channel 1 to channel 2" and saved it as "Channel 1to2.oxm" +
turn map on after ok


3.
if i understand ur instructions and the "patch mapping" chapter of the manual correct, i should create a patch map by pressing the "define program change mapping" button. there i need to assign "Channel 1to2.oxm" to a port map, which is to be created in "MIDI Devices dialog". this one is a complete miracle to me. i find "Channel 1to2.oxm" there. and a lot of other stuff. i am lost here. there is nothing listed when i search for "MIDI Devices dialog" in the manual.

see  http://freenet-homepage.de/orangat/MIDI-Devices.JPG

so i need to know what to do here!


4.
u said "Then you need to use MIDI Yoke to wire the incoming MIDI Keys messages into MIDI OX (translating them into Program Change messages), out to MIDI Yoke, back into MIDI OX (processes Program Change and switches Data Map controlled by Patch Map)."
need also help here. HOW do i wire it? everything i tried did not work.

peter if u dont feel like explaining it to me in detail, please link me to some place where i can find an answer. or please tell me at least how to find it.

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Nov 20th, 2007, 9:20pm
some progress
i connected midikeys (appears to be "midi-ox event port") to "all"
after i connect "usb device" and "midi-ox event port" to "out midi yoke 1"
this way i have output @ "out midi yoke 1" when hitting the keyboard and when sending data from usb device.
is that ok?

now i connect "in from midiyoke 1" to "out to midiyoke 2"
looks: http://freenet-homepage.de/orangat/midimapping2.JPG

still ok?

i still dont get the mapping situation. in the translation map i have to put numbers from -1 to 127. so i take 0 and 1 i guess from the midikeys list. [i also have C-1 and C#1 (what the monitor shows) but i cannot use those values in the translation map.] what program change value should i convert those to? and how does it all go together with my "Channel 1to2.oxm"?
???


Title: Re: MIDI Keys trigger mapping config help"
Post by Peter L Jones on Nov 21st, 2007, 1:04pm
The Patch mapping gets triggered by messages arriving on "In from MIDI Yoke 1".  Under "Options->Patch Mapping...", you can set up one Data Map for each possible MIDI Program Change message (i.e. 128 of 'em).

You need two Data Maps.  One with the channel remapping turned on, one with it turned off.  If you can only send Note events, BOTH maps also need to turn a note event into a Program Change event - use one Program Change for "map to channel 1" and a different Program Change for "map to channel 2".

Save both Data Map OXM files.  In the patch mapper, put the "Map to Channel 1.OXM" in the slot for the program change you picked to do that.  Same for the Map to Channel 2 file.

Now... When you iconise MIDI-OX, it should drop to the task tray.  Right-click the icon and make sure "Global Data Map" is ticked.

Title: Re: MIDI Keys trigger mapping config help"
Post by orangefx on Nov 25th, 2007, 3:49pm
The Patch mapping gets triggered by messages arriving on "In from MIDI Yoke 1".

so i deleted midiyoke 2

 Under "Options->Patch Mapping...", you can set up one Data Map for each possible MIDI Program Change message (i.e. 128 of 'em).

You need two Data Maps.  One with the channel remapping turned on, one with it turned off.  If you can only send Note events, BOTH maps also need to turn a note event into a Program Change event - use one Program Change for "map to channel 1" and a different Program Change for "map to channel 2".

Save both Data Map OXM files.  

i did, hopefully correct, see http://freenet-homepage.de/orangat/translationmap.JPG

saved those as "peters die 1 channelmapping.oxm" and "peters die 2 channelmapping.oxm"


In the patch mapper, put the "Map to Channel 1.OXM" in the slot for the program change you picked to do that.  Same for the Map to Channel 2 file.

dont understand what u mean by slots. it looks like this:
http://freenet-homepage.de/orangat/patchmap.JPG

and nothing happens  >:( when i press 1 or 2 @ my keyboard.
whats wrong?


Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Nov 26th, 2007, 1:58pm
The translation map (Data map) you posted translates Note  1 to Program 1 and Note 0 to Program 0.  It doesn't do the Channel mapping you're after, so I hope that's the mapping you want to use for "Map to Channel 1.OXM".  You need another one with an extra row on to do the mapping from Channel 1 to Channel 2 - hopefully that's in the other map you've not shown.

Other than that, it looks okay.  Just make sure you're sending Note 0 and Note 1.  Check the monitors for what's actually being sent.  Change the Data map to match, if required.

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 2nd, 2007, 2:00pm
i keep reading ur answer over and over but dont understand what u mean, or how to do it, sorry. i have made screenshots of what i did. i understand i saved wrongly the same thing twice and just named it differently (peters die 1/2 channelmapping.oxm).

>>>You need another one with an extra row on to do the mapping from Channel 1 to Channel 2<<<

can u tell me in single steps what i have to do know? how exactly has the >>>other map<<< to look like? ???


Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Dec 3rd, 2007, 3:19pm
Maybe I'm not understanding what you want to do.

Write out in single steps what you want MIDI OX to do, then it will be easier for me to explain.

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 4th, 2007, 3:19am
[quote author=orangefx link=board=Mapping;num=1194463723;start=0#0 date=11/07/07 at 14:28:43] :-/

my usb-midi controller sends on channel 1, i want it to send on channel 2 after hitting any uneven number (1;3;5;7;9) on my laptop keyboard. after pressing any even number (2;4;6;8;0) on my keyboard the rule should be dropped (meaning the controller should be sending on channel 1 again).


Title: Re: MIDI Keys trigger mapping config help
Post by Jamie OConnell on Dec 4th, 2007, 12:11pm
I am trying to get ,my head around this...


Quote:
midikeys is set to send to "midi yoke 1" on "channel 10". it sends out 1 after pressing any even number (2;4;6;8;0) and it sends out 0 after hitting any uneven number (1;3;5;7;9)


You are saying when you type '1', '3', '5', '7', '9' on your computer keyboard, you have MIDIKeys send 0 on channel 10.  But 0 what? NoteOn 0?, Program change 0?, CC:0?
The same question applies to even number keys...?

Since you didn't specify, I am going to suggest that you have MIDI Keys send a Program Change of 0 on channel 10 in response to typing '1', '3', '5', '7', '9' on your computer keyboard.  Equivalently, have it send a Program change of 1 on channel 10 in response to '2', '4', '6', '8', '0'.  It doesn't matter, but why so many keys for each action?

OK, before going further, test that part: verify (in MIDI-OX monitor) that you get a program change of 0 on channel 10 for '1', '3', '5', ... and program change of 1 on channel 10 for '2', '4', '6' ...  So that part is working, right?

Now use Patch Mapping to load maps to re-channel your Synth.  The first map will re-channel all data arriving on channel 1 to channel 2.  This map will be assigned to program change 0.  The second map will reverse the operation by re-channeling data from channel 1 to channel 1. It's really a No-Op, but it serves to reverse the first map. This map will be assigned to program change 1

So here are the maps.  Each requires a single entry:


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

; rechannel 1 - 2

MOXMAP Version 5

[Map]
1,*,*,*,*,*,N,0,2,*,*,*,*,*

--------------snip-------------------
; revert channel 1

MOXMAP Version 5

[Map]
1,*,*,*,*,*,N,0,1,*,*,*,*,*

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







Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 4th, 2007, 1:50pm
hi peter
midi keys sends "note on+note off" it shows on some screenshots i posted. made one more with midikeys itself visible, it looks like this:
http://freenet-homepage.de/orangat/midikeys-in-action.jpg

if u tell me how to make midikeys send programm change, i will do. thanx for showing how to do the maps. i still did not get how to assign the maps to the "program change"

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 12th, 2007, 4:50pm
after many more tries...

it still does not work. too bad.

there must be an error. anyone still up to talk about this?

Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Dec 12th, 2007, 6:23pm
http://freenet-homepage.de/orangat/translationmap.JPG

Quote:
saved those as "peters die 1 channelmapping.oxm" and "peters die 2 channelmapping.oxm"

I'll say it again.

Your mapping is wrong.

Saving the wrong mapping to two files will not make it correct.

You need two separate, different mappings.

Both mappings will look like "translationmap.JPG" but
1) there's no point changing the channel number for the Program Change messages.  Leave that unchanged.
2) you need extra lines in each mapping:
2.1) In the first mapping, this will set the channel number on all note (on/off) events to channel 1 (or leave it unchanged, your choice).
2.2) In the second mapping, this will set the channel number on all note (on/off) events to channel 2.

http://freenet-homepage.de/orangat/midimapping.JPG

In the MIDI Devices window --
You should have two inputs selected:
1) Your USB port (input)
2) Input From MIDI Yoke 1
You should have two outputs selected:
1) Output To MIDI Yoke 1
2) Output To MIDI Yoke 2
Port Mappings should be:
+Output To MIDI Yoke 1
|--MIDI OX Events
\--Your USB port (input)
+Output To MIDI Yoke 2
|--MIDI OX Events
\--Input From MIDI Yoke 1

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 12th, 2007, 8:45pm
hi peter....feels like talking to an old friend...or doctor  :P

i do it all again, step by step plus screenshots for u to understand exactly what i am doing. (i will later use capital letters for my questions)

1.  i start midi-keys and conifigure it like this:
http://people.freenet.de/orangat/midi-keys-configured.jpg
as i said before, it needs to send to "ALL" or wont work.

2. midi devices setup:
http://people.freenet.de/orangat/midi-devices.jpg

3. midi port routing:
http://people.freenet.de/orangat/midi-port-routing.jpg

4.1. make 2 translation maps for the channel change:
http://people.freenet.de/orangat/translation-map-1.1.jpg and save it as "channelchange1.oxm"
http://people.freenet.de/orangat/translation-map-1.2.jpg and save it as "channelchange2.oxm"

IS THAT CORRECT?

4.2. now  :o  the exiting part.
so i guess i clear the translation map  ???  and create this:
one translation map to chanche midi-keys note-on into program change (and i am trying to also kill the note-off here, doesnt work. WHY?

http://people.freenet.de/orangat/translation-map-2.jpg

the following is shown at the monitors when i press 1 and  2 on my keyboard:
http://people.freenet.de/orangat/monitor-input.jpg
http://people.freenet.de/orangat/monitor-output.jpg

i will save that, as u see it as "progchange.oxm"
IS THAT CORRECT?


if it is ok untill here, i can dump the other 16 saved presets.  ;D

now WHAT OXM-FILE SHOULD REMAIN IN THE TRANSLATION MAP WINDOW? before pressing ok and turning the map on? "progchange.oxm" RIGHT?

5. finally the misterious patch map. looks like this
http://people.freenet.de/orangat/patch-map.jpg

and does not work. output monitor shows any note of the usb-midi device 3 times in a row, but no channel change.

http://people.freenet.de/orangat/monitor-output-final.jpg

WHAT - PLEASE - AM I DOING WRONG?

Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Dec 13th, 2007, 1:24pm

on 12/12/07 at 20:45:34, orangefx wrote:
2. midi devices setup:
http://people.freenet.de/orangat/midi-devices.jpg
Add MIDI-OX events to Out to Yoke 2.
Remove the USB port from Out to Yoke 2.

http://people.freenet.de/orangat/translation-map-1.1.jpg
http://people.freenet.de/orangat/translation-map-1.2.jpg
http://freenet-homepage.de/orangat/translation-map-2.jpg

Still wrong.  You only want two translation maps.  You've created three.

You need BOTH maps to map Note messages to Program Change messages.

In addition, one will map all notes to Channel 1 and the other will map all notes to Channel 2.

(If you want to strip Note Off, you'll also need to strip Note On with velocity 0.  Again, put that in both of the TWO maps you create.)

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 15th, 2007, 5:31am
it's quite confusing. without trying to strip any notes off yet, here is what i did (as u said):

http://people.freenet.de/orangat/midi-devices-new.jpg

the routing u said i dont need to change, then u said
"need BOTH maps to map Note messages to Program Change messages.

In addition, one will map all notes to Channel 1 and the other will map all notes to Channel 2."

so it looks like this:

http://people.freenet.de/orangat/translation-map-new-1.1.jpg

saved as :"15.12.07 - channel 1.oxm"

http://people.freenet.de/orangat/translation-map-new-1.2.jpg

saved as :"15.12.07 - channel 2.oxm"

then mapping in patch map, right?

http://people.freenet.de/orangat/patch-map-new.jpg

NOT WORKING
it does not even send the program change to input nor output anymore. meanwhile i get quite good in doing sceenshots and uploading stuff.

if u want the two .oxm files to have one line only each like this:


http://people.freenet.de/orangat/translation-map-new-1.1-single-line.jpg

http://people.freenet.de/orangat/translation-map-new-1.2-single-line.jpg

it wont work either.

Title: Re: MIDI Keys trigger mapping config help
Post by Peter L Jones on Dec 16th, 2007, 2:33pm

Quote:
http://people.freenet.de/orangat/midi-devices-new.jpg
That looks okay.


Quote:
http://people.freenet.de/orangat/translation-map-new-1.1.jpg
http://people.freenet.de/orangat/translation-map-new-1.2.jpg
Neither of these is right.  I said

Quote:
one will map all notes to Channel 1 and the other will map all notes to Channel 2.
You've set the low and high note numbers on the translation from Note to Program Change.  Why did you do that?
You've then changed Program Change messages into Note messages.  Why did you do that?


Quote:
http://people.freenet.de/orangat/patch-map-new.jpg
That's a start.  But you said you wanted keys 1, 3, 5, 7, 9 to map to Ch 1 and 0, 2, 4, 6, 8 to map to Ch 2, so why have you only covered keys 0 and 1?

Title: Re: MIDI Keys trigger mapping config help
Post by orangefx on Dec 16th, 2007, 7:59pm
???
i dont get it.
thanx for dealing with this, peter. its too much of a hassle, since i have done it over and over again, trying to follow ur instructions, thats why i did what i did.
i talked to florian bome yesterday, who made a program called midi translator. in their forum he simply told me step by step what to do (in english) and i did it and it works. no screenshots for me to do, but also no freeware. after all this time i spent with midi-ox, i will go another way now.
:-/
have a good time and happy x-mas
orangefx



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