Hey there!
This is a bit of a niche question but I’m hoping someone might have a sliver of insight; if any Nuendo developers are in here I would greatly appreciate your feedback!
When Nuendo saves a track archive XML the position of events is stored as:
float name=“Start” value=“3695.9005416666668679681606590747833251953125”
Likewise, the timecode Start in Nuendo itself (for the above entry) is: 01:01:32:05
My question is, “What is being stored? How did we go from 01:01:32:05 to 3695.90–?”
I assume it’s stored as seconds via a 64bit floating point value but I think I’m wrong on that because the math just ain’t mathin’.
What for you ask?
Well, I’ve built an application that takes an ADR script, agnostic of format, and converts it into a track archive of marker tracks with cooresponding cues ready for a record session. To accomplish this, I construct a track archive XML in Nuendo’s format. However, when I bring them into Nuendo, my marker timecodes are always off by roughly 3 seconds give or take. Sadly, I can’t just add the difference and call it a day.
The conversion from timcode to seconds in my program looks like this:
(hours * 3600.0 + minutes * 60.0 + seconds) + ( frames / frame_rate)
If I run my timecode of 01:01:31:05 through the above equation we get:
3692.1666666666665
Which is pretty dang close to Nuendo’s, albeit with less precision:
3695.9005416666668679681606590747833251953125
You’ll notice the key difference is about 3.8 seconds!
The framerate being used is 23.98, which is also what the project is set to in Nuendo, I tried 23.976 but that didn’t work either.
So IF Nuendo is storing the location of events as a floating point number of seconds, then how are they calculating that? Of course there’s floating point precision to consider, but I highly doubt rounding errors would result in a discrepency of multiple seconds.
Now I know what you might be thinking, why not just use the ADR Api? Good question!
Answer is: I would if I could. I can’t find the documentation for such a thing anywhere and it looks like others on the forum havent had much luck either.
Thanks for reading and I appreciate any help I can get!