Author |
Topic: Increment Program Change (Read 276 times) |
|
jimenez
New Member

 MIDI-OX Rules!
Posts: 1
|
 |
Increment Program Change
« on: Jul 29th, 2024, 5:47pm » |
Quote Modify
|
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: thanks, Luis
|
|
IP Logged |
|
|
|
Breath
Administrator
    

Gender: 
Posts: 1029
|
 |
Re: Increment Program Change
« Reply #1 on: Jul 30th, 2024, 9:25pm » |
Quote Modify
|
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=displa y;num=1657511134;start=0#0 I hope that helps Royce
|
|
IP Logged |
|
|
|
|