MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> Changing data maps to keyboard keystroke
(Message started by: mydogkeko on Apr 7th, 2007, 3:39pm)

Title: Changing data maps to keyboard keystroke
Post by mydogkeko on Apr 7th, 2007, 3:39pm
I would like to create a series of custom data maps and I would like to change the data map which is currently being used by using the computer keyboard / sending a keystroke.

Currently the f2-f9 function keys change octaves I was thinking one way to get around this issue would be to simply rename those files with the data maps that i would create but I wondered if there was an easier way around that?

I apologize if this question has already been passed and answered

Title: Re: Changing data maps to keyboard keystroke
Post by Peter L Jones on Apr 7th, 2007, 6:57pm
The only thing I can think of is to (again, as in the earlier thread) route MIDI OX's output back (through MIDI Yoke) to its input, translate the note data to a program change, then route that around to the input and effect the patch map...

Title: Re: Changing data maps to keyboard keystroke
Post by mydogkeko on Apr 7th, 2007, 8:48pm
thanks peter,

i'm experimenting.  I will give that a try, apologies if these questions are redundant.  it didn't mention the loop back but I will definitely try it.  I cannot get the program change to trigger a message display indicating the data map change

The help file provides:

================

The Program Change (or Patch) Mapping facility allows you to specify that a certain data-map and/or port-map should be loaded whenever a particular Program Change message is received. This powerful feature allows you to completely change the current mapping state by remote control. You can map each of the 128 Program Change numbers to a different data map and port map. Whenever a Program Change message is received on a channel being mapped, MIDI-OX evaluates whether there is a corresponding data-map or port-map specified. The Program Change is then passed along for further mapping or output. Even when Program Changes are being filtered, MIDI-OX considers them for Patch mapping prior to the filtering.

Data Mapping
The data map is specified in the Patch Map by the .oxm file location. An .oxm file can contain any number of mapping steps: see the Data Mapping topic for more information. After a Program change triggers a data-map change, a message is displayed in the monitor containing the filename of the .oxm file that has been loaded.

=============

This is exactly what I'm interested in but for some reason I can't seem to get work.  I will keep trying.  I wondered if any examples could be posted


Title: Re: Changing data maps to keyboard keystroke
Post by mydogkeko on Apr 7th, 2007, 9:17pm
I can get the program change to be triggered.  But the custom data map which I have assigned to it is not displayed.  Rather, for program change one electric piano midi is displayed.

Title: Re: Changing data maps to keyboard keystroke
Post by Peter L Jones on Apr 8th, 2007, 4:25am
Have you connected the MIDI OX event output to the MIDI Yoke Junction routed loopback into MIDI OX?
Something like:
[Events Out]<-Junction 1->[In MIDIOX]

Title: Re: Changing data maps to keyboard keystroke
Post by mydogkeko on Apr 11th, 2007, 3:56pm
I think I made a mistake in the discussion above.  I was thinking that I could just switch data maps that are in
C:\Program Files\MIDIOX\Map
I was assuming that those data maps correspond to keyboard keys such as the active changing function keys.  Do those maps relate to any specific keys on the keyboard?

Title: Re: Changing data maps to keyboard keystroke
Post by mydogkeko on Apr 11th, 2007, 4:04pm
The midiox event port is an output port.  I can connect that to for example midiyoke number five.  Then I would have to find another program and connect it to another yoke and then send it back into midiox.  Is there an easier way to do this?  I wasn't able to connect directly between the event port and the input port in the above example.

Title: Re: Changing data maps to keyboard keystroke
Post by Peter L Jones on Apr 11th, 2007, 4:58pm
You can connect
[MIDI OX Event port]<-MIDI Yoke Junction->[MIDI OX Input]

Title: Re: Changing data maps to keyboard keystroke
Post by Peter L Jones on Apr 11th, 2007, 4:59pm

on 04/11/07 at 15:56:03, mydogkeko wrote:
I think I made a mistake in the discussion above.  I was thinking that I could just switch data maps that are in
C:\Program Files\MIDIOX\Map
I was assuming that those data maps correspond to keyboard keys such as the active changing function keys.  Do those maps relate to any specific keys on the keyboard?
You need to use Patch Maps to switch Data Maps based on Program Change messages arriving on an input connected to MIDI OX.

To used computer keys, you need to first translate the MIDI Note event to a MIDI Program Change event.

So that's two passes through MIDI OX...



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