+/** Takes a duration in frames and considers it as a distance from the origin
+ * supplied to the constructor. Returns the equivalent number of quarter-note beats,
+ * taking tempo changes into account.
+ */
+Evoral::Beats
+BeatsFramesConverter::from (framepos_t frames) const
+{
+ return _tempo_map.framewalk_to_qn (_origin_b, frames);