projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix framewalk_to_beats when it traverses more than one
[ardour.git]
/
libs
/
ardour
/
tempo.cc
diff --git
a/libs/ardour/tempo.cc
b/libs/ardour/tempo.cc
index 7a653547da46dfa4411cd7a400521606b49593ac..f0880fed913c1cebafc39999c9ed088a59c22084 100644
(file)
--- a/
libs/ardour/tempo.cc
+++ b/
libs/ardour/tempo.cc
@@
-2182,6
+2182,7
@@
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
double const sub = min (distance, distance_to_end);
/* Update */
+ pos += sub;
distance -= sub;
beats += sub / tempo->frames_per_beat (_frame_rate, *meter);