I decided to try converting MBT time to samples, and my result is a little different from what i'm seeing in Sonar X2.
My project is sampled at 44.1k and is in 4/4 time.
According to Sonar, the audio is 7229088 samples long and ends exactly at MBT 95:01:000
There are two tempos. 122 starting at MBT 01:01:000, and 140 and starting at 12:01:000.
If I'm correct the math should be:
First tempo segment: (60 * 44100) / (122 / 4) = 86754.09 samples per measure
86754.09 * 11 = 954295.08 samples in the 11 measures at 122
Second tempo segment: (60 * 44100) / (140 / 4) = 75600 samples per measure
75600 * 83 = 6274800 samples in the 83 measures at 140
Add them together for the total samples: 954295.08 + 6274800 = 7229095.08
Why is this off by about 7 samples? Its not significant in terms of music, but it seems like a pretty significant coding error.