fbpx
Skip to main content

MIDI Forum

Increment and decre...
 
Notifications
Clear all

Increment and decrement midi

2 Posts
2 Users
0 Reactions
2,887 Views
Larry
Posts: 5
Active Member
Topic starter
 

Is it possible to increment/decrement Program change messages within a set range? I want to create 2 buttons to inc/Dec the example below.
For example:
If one of these Program change messages are loaded, then I will be able to inc or decrement to the next value-
83, 84, 85, 86

 
Posted : 28/06/2023 6:15 am
Geoff
Posts: 1043
Noble Member
 

You do not say what sort of device you're talking about. This will depend on the degree of programability of the device.

There is nothing within midi that will do this as you describe. The PC command (Program Change) will always need at least three explicit bytes, one of which will be the program number (0 to 127). However, a device might remember the current PC data, and change the relevant single byte by one and reapply the whole command.

I have a piece of software that amongst other things (for testing a sound module) does just this so one key press will do as you ask, so it's fairly simple to do, but my software still needs to send a complete PC command each time.

Geoff

 
Posted : 28/06/2023 7:03 am
Share: