diff options
Diffstat (limited to 'libs/ardour/beats_frames_converter.cc')
-rw-r--r-- | libs/ardour/beats_frames_converter.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/ardour/beats_frames_converter.cc b/libs/ardour/beats_frames_converter.cc index 4cda4173b3..c2c54eb9cd 100644 --- a/libs/ardour/beats_frames_converter.cc +++ b/libs/ardour/beats_frames_converter.cc @@ -27,13 +27,7 @@ namespace ARDOUR { framecnt_t BeatsFramesConverter::to(double beats) const { - Timecode::BBT_Time delta; - - delta.bars = 0; - delta.beats = rint (floor (beats)); - delta.ticks = rint (floor (Meter::ticks_per_beat * fmod (beats, 1.0))); - - return _tempo_map.framepos_plus_bbt (_origin_b, delta); + return _tempo_map.framepos_plus_bbt (_origin_b, Timecode::BBT_Time(beats)); } double |