Go Back   Cockos Incorporated Forums > Projects > Deprecated REAPER issue tracker > Open Bug

API: TimeMap2_timeToBeats and TimeMap2_beatsToTime broken with a lot of tempo markers Issue Tools
issueid=5263 07-06-2014 04:59 AM
Human being with feelings
API: TimeMap2_timeToBeats and TimeMap2_beatsToTime broken with a lot of tempo markers

Here's an example project:

Tempo markers are set at every grid division of 1/256
Before procesing with the report, let me just mention that besides broken API, we can also see broken ruler:

Notice how measure count resumes after that big bunch of tempo markers (measure 3 should be followed by measures 4 and 5, and current measure 4 should be measure 6)

When trying to determine beats and measure location with TimeMap2_timeToBeats, beats since measure will always be something like 0, and measure count will behave the same as ruler (always being 3, when in fact it can also be 4 and 5 in some cases):

TimeMap2_beatsToTime is also broken. For example, if we run this while edit cursor is positioned on the first tempo marker (like seen on the first screenshot):
RPR_TimeMap2_beatsToTime(0, 0, 3)
the return value will be 12.242187500005, and not 6.0 as it should be.

Please fix this, as it leaves some of us dead in water when it comes to writing stuff for SWS :)
Discussion thread: http://forum.cockos.com/showthread.php?t=142449
Issue Details
Issue Type Open Bug
Project Deprecated REAPER issue tracker
Category OSX particulars
Status Unconfirmed
Priority 5 - Medium
Affected Version Unknown
Fixed Version (none)
Users able to reproduce bug 6
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

07-06-2014 10:51 AM
Human being with feelings
For some reason I put this under "OSX particulars" category. Sorry about that...it should have been something like "Arcana"
08-21-2014 01:44 PM
Human being with feelings
It happens the same on Win 7 x64...
11-10-2014 12:46 PM
Human being with feelings
Please stop putting off fixing this! It's pretty important for people that use scripting to deal with tempo maps. It's been 4 months!!!

Issue Tools
Subscribe to this issue

All times are GMT -7. The time now is 12:26 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.