MIDI Remotet API to send QC parameter and value to OLED Screen?

Hi mates!

I’m making a 8 encoder DIY controller with Arduino to control the 8 QC’s of the selected track. So far encoders are working with this script I attach (They have pushbutton as well, but haven’t assigned them to anything yet). I have included 8 mini Oled screens, with the intention to show in each of them which parameter each QC is controlling and its value, but I can’t find out a way to do it just by reading the API documentation. The intention is to show something like the pic attached.

Is there anybody could help me with to achieve it?

Thanks in advance!

Take care

Arduino_QC Minimal Test.zip (1.3 KB)

1 Like

Hi,

Sending Quick Control Values
To send out a Quick Control value, you need to understand that Quick Control values are bidirectional - they can both receive input from your controller and send output feedback to it.

Basic Structure:


// 1. Access Quick Controls for a track
var hostSelectedTrackChannel = page.mHostAccess.mTrackSelection.mMixerChannel;
var quickControl = hostSelectedTrackChannel.mQuickControls.getByIndex(0); // QC slot 0-7

// 2. Create a value binding between surface and Quick Control
page.makeValueBinding(knob.mSurfaceValue, quickControl);

Sending Values via Callbacks:
The key to sending values out to your hardware is using the callback functions on the QuickControlValue object:


quickControl.mOnProcessValueChange = function(activeDevice, activeMapping, value) {
    // value is normalized 0.0 to 1.0
    // Send this value to your MIDI controller
    // This callback fires when the Quick Control value changes in Cubase
};

quickControl.mOnDisplayValueChange = function(activeDevice, activeMapping, valueString, units) {
    // valueString contains the formatted display value (e.g., "-6.0 dB")
    // Use this to update displays on your controller
};
2 Likes

Thank you Martin!

I will try it this evening. Thanks a lot for your time explaining this.

Have a nice day

Txema