MIDI Remote API: bug in getVersionString() method [solved: a user error]

This getter does not work:

midiremote_api.mDefaults.mAppVersion.getVersionString()

It always returns “NaN”, at least for me on Windows with Cubase 14.0.10 as well as Nuendo 13.0.51

Maybe this is a small problem, but it could be important to know the application version if a MIDI Remote script should be compatible with several versions.

Not a problem here, it correctly logs the version either in CB13.0.51 or CB14.0.10.

Using this code:

const api = require("midiremote_api_v1");

var appVersion=api.mDefaults.mAppVersion.getVersionString()

console.log("App version="+appVersion)
1 Like

Oh, you are right, I was so blind that I overlooked my own mistake :face_with_peeking_eye: So, thank you very much and sorry for the false alarm!

Although I am new to MIDI Remote API, I must say it is fantastic! In just two days, I was able to write a script for my Foot Controller (Roland FC-300) which now works exactly as I need, including the display text (which is the name of the selected track).

1 Like

That’s a nice script, properly implementing Roland’s sysex messages for the pedal!
I would recommend uploading it to this forum, under the tag shared-midi-remote. There are always users who can benefit from script(s) we create initially for private use!

1 Like

Okay, done! :grin: :+1:t2:

1 Like