Fix comment. Fix believed erroneous add of ticks to a fractional beats value.
git-svn-id: svn://localhost/ardour2/branches/3.0@8293 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f7763f4d8c
commit
850b7d24a9
@ -2009,9 +2009,7 @@ TempoMap::framepos_plus_bbt (framepos_t pos, BBT_Time op) const
|
||||
return pos;
|
||||
}
|
||||
|
||||
/**
|
||||
* add the BBT interval @param increment to @param start and return the result
|
||||
*/
|
||||
/** Count the number of beats that are equivalent to distance when starting at pos */
|
||||
double
|
||||
TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
|
||||
{
|
||||
@ -2067,7 +2065,7 @@ TempoMap::framewalk_to_beats (framepos_t pos, framecnt_t distance) const
|
||||
*/
|
||||
|
||||
if (ddist < frames_per_beat) {
|
||||
beats += (1.0/BBT_Time::ticks_per_beat) * (ddist/frames_per_beat);
|
||||
beats += ddist / frames_per_beat;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user