BUG? - C14 Midi Remote Scripting mTimeDisplay.mSecondary Logs Only Primary

Hi,

I’ve encountered an issue with my remote driver script that worked perfectly in C13 but seems to behave differently in C14. Here’s what’s happening:

The mTimeDisplay.mSecondary function is only logging the primary time value, regardless of the secondary setting. I tested the script to ensure it logs both the time value and its type (e.g., Bars & Beats, Timecode, etc.), but the results are inconsistent:

  • Scenario 1: Primary set to Bars & Beats, Secondary set to Timecode
    • Logged result: The secondary value shows the primary Bars & Beats value, but the type is logged as “Timecode.”
  • Scenario 2: Primary set to Timecode, Secondary set to Bars & Beats
    • Logged result: The secondary value logs the primary Timecode value, but the type is logged as “Bars & Beats.”

This behavior seems to suggest that mTimeDisplay.mSecondary is not correctly referencing its assigned value, but instead mirrors the primary value with the secondary type.

Has anyone else experienced this? Is this a bug, or could there have been changes to remote MIDI scripting that weren’t reflected in the documentation?

Cheers,
DMDComposer

// Secondary Transport Value
transport.mTimeDisplay.mSecondary.mTransportLocator.mOnChange = function (
  activeDevice,
  activeMapping,
  time, // time value
  time2 // type of time value (bars-beats, timecode, etc.)
) {
  console.log(time.toString())
  console.log(time2.toString())
}

Sure it worked in CB13?

I see this older post:

1 Like

Hi @m.c ,

Wow, I have egg on my face. You’re right, I even posted about this bug before. I guess it was just never fixed.

Now I have to solve a puzzle, of how I was getting timecode out of Cubase in the first place. I only noticed this bug again because my timecode stopped working from C13 to C14… but I guess I was grabbing the timecode an alternate way because of this bug.

Apologies for confusion, maybe I need more rest before posting bugs that I originally posted about before, haha!

Cheers,
DMDComposer

1 Like

Maybe you had used the command Transport→Exchange Time Formats?

It have never worked.

1 Like

That was a good guess!

Took me 15 minutes to remember what I was doing. Because it was broken, I ended up just creating another midi port, and sending the “timecode” out from Cubase using the midi port in the Project Synchronization Setup menu.