I am trying to create Companion buttons to (sort of) emulate midi fader behaviour, i.e for a given cc, create 2 buttons, the top button will increase the cc value by a small increment for each press, and the bottom decrease the cc value.
I am using Windows 11, and have Companion v5.0.2, and generic-midi module v1.4.0. I am technical with experience of scripting and creating midi surface controller pages on apps such as TouchOSC, but I am certainly no expert. Within Companion, I can create midi buttons to send midi note, pc, or cc messages to a stand alone VST or Reaper running on the same PC via a loopMidi virtual midi port, so my basic setup and basic understanding is ok.
For the fader emulation, I have created a test button for cc7 (volume), defined a variable with a start value of, for example 64, and configured the button to add 2 each time it is pressed then to send the updated cc7 value to the receiving VST synth and to displays the cc value on the button itself. So far so good, and it works as described.
However, this obviously causes jumps on the VST instrument, and instead of defining a start value, I need to read the current cc value from the VST synth. My questions are
- How do I best read the current version to set the start value,
- If possible, can I update the Companion button display if the cc value is changed directly on the VST instrument (i.e. 2-way synch). If so, how?
I’m sure this is achievable as TouchOSC can do this as long it has matching input/output midi ports, and that other devices such as those with motorised faders, or LED indicators on the 16knob Midi Fighter Twister can stay in sync.
I’m struggling to find any more detailed information, any links to help, thoughts, advice, or guidance would be appreciated
Thanks
