MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> Increment Program Change
(Message started by: jimenez on Jul 29th, 2024, 5:47pm)

Title: Increment Program Change
Post by jimenez on Jul 29th, 2024, 5:47pm
Hello,

I'm using MidiOX to drive a visual synth from my edrums. The visual synth has presets, and can be selected with CC midi message. Is there a way to increment (or decrement) output here:
http://fusion101radio.com/wp-content/uploads/2024/07/Screenshot-2024-07-29-174355.png

thanks,
Luis

Title: Re: Increment Program Change
Post by Breath on Jul 30th, 2024, 9:25pm
Hi
What you need to turn on and off or increment and decrement is the ability for the program to remember what messages you have sent.

In your case, it can't increment to 4 if it doesn't know you are at 3 now.
The datamap function in MidiOx has no memory of the Midi messages sent, BUT you can use scripting instead to do this.

There is a script example of mine that uses MS JScript to remember the last state the switch was in (On or Off) and reverses it when it receives the message again (toggle switch).
It should be a fairly simple thing to change it to increment instead of swapping states, then copy that woring code code and make it decrement the value when it received a certain different CC message.

The example is here
http://www.midiox.com/cgi-bin/yabb/YaBB.pl?board=MOXScript;action=display;num=1657511134;start=0#0

I hope that helps
Royce



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