summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-26 22:52:24 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-26 22:52:24 +0000
commitd74d488cd4e2e5d6e0d340cea8b99fc880459244 (patch)
treeace79e953ae253309846f9a0205e5aabe881a13a /libs/ardour/tempo.cc
parent9d540e62157c556b797f6469f7b4a7932584a62a (diff)
Add comment about some inaccuracies in framepos_plus_bbt.
git-svn-id: svn://localhost/ardour2/branches/3.0@8972 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index c5c60b948e..396caad46b 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -1906,6 +1906,12 @@ TempoMap::bbt_subtract (const BBT_Time& start, const BBT_Time& decrement) const
framepos_t
TempoMap::framepos_plus_bbt (framepos_t pos, BBT_Time op) const
{
+ /* XXX: this is a little inaccurate as small errors are introduced
+ every time a probably-fractional product of something and
+ frames_per_beat is rounded. Other errors can be introduced
+ by op.ticks' integer nature.
+ */
+
Metrics::const_iterator i;
const MeterSection* meter;
const MeterSection* m;