Setting a button color based on value sent from Cubase

Hi all!

I've just started to create a control surface for Cubase, as the noob I am I started with creating the transport controls, and I have a couple of questions;

  • What is the easiest way of setting button colors (or css class) based on the response from Cubase? Since I might press stop inside of Cubase I would like to have the control surface correspond to what ever actions I made in the DAW?

  • In relation to the above, I tried to check what ever data is sent back from Cubase for the STOP button using this script:

console.log("Button " + getProp("this", "id") + ": " + value)

then I get two entries in the log when I click the STOP button, both having the value 1, is that because my click trigers one entry and the second one is because CUBASE sends back a value?

B.R.
Tom

This is a bigger question then you may think!

You have to get Cubase to respond to a trigger from OSC. The way that people tend to do this is through a combination of generic remote and MIDI channel or using a quick controls.

The messages are then interpreted using a custom module which you can use to send messages to OSC which spect the correct custom class.

If I’ve got time later on I’ll post a more detailed breakdown on how I have got it to work.