Question About Variables +1

I’m using Bome to convert Program Change messages to CC messages. I first use Pro Tools to record PC messages (which will be used for triggering lighting scenes in a LanBox controller.) I then convert the PC messages to CC message so that I can send my LanBox controller PC messages from Ableton Live. To do this, I need to use a Max for Live program that converts CC messages to PC messages. This is because Ableton natively only sends PC messages at the beginning of a track.

I’ve been able to use a variable to capture the PC value, but am now finding that even though I send PC messages of the correct value when to Pro Tools when recording, Pro Tools is off by a value of 1. For example, I send Pro Tools PC 21. It displays as though it is correct, but if I click on the value, it shows that it is PC 20.

Using Bome, I’m recording another MIDI controller track that contains only the resulting CC messages, but, due to what I described, the values are off by 1.

Is there a way to have a variable that is the value of the PC message +1? It would sure save a lot of tedious editing.

Thank you!
Bob Charest

Yes, in MIDI PC values are generally 0 based (starting with 0 rather than one). This simple rule in your translator will convert PC 0 to PC1.


Translator : PC to CC+1
Incoming: Program Change on MIDI CH 1 with any value set to variable pp.

Rules:
// Increment the incoming value by one
pp=pp+1
// End of Rules

Outgoing: Control Change on MIDI Channel 1 CC pp value 127
Options: Swallow

Since PC’s are only two bytes long and CC are 3 bytes long (including the value), I added a value of 127 which would be typical of what most DAW’s would look for.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Hi Steve - Thank you so very much! That will do the trick nicely. Bome MIDI Translator has been useful to me in the past as well - Catching a SYSEX string and then pressing the spacebar to start break music playback. Love it!

So great that such targeted help is available here!

Best Regards,
Bob Charest

1 Like