- double frames_to_beats(framepos_t) const;
-
- void goto_previous_note ();
- void goto_next_note ();
+ double region_frames_to_region_beats(framepos_t) const;
+
+ /** Convert a timestamp in beats measured from source start into absolute frames */
+ framepos_t source_beats_to_absolute_frames(double beats) const;
+ /** Convert a timestamp in beats measured from source start into region-relative frames */
+ framepos_t source_beats_to_region_frames(double beats) const {
+ return source_beats_to_absolute_frames (beats) - _region->position();
+ }
+ /** Convert a timestamp in absolute frames to beats measured from source start*/
+ double absolute_frames_to_source_beats(framepos_t) const;
+
+ void goto_previous_note (bool add_to_selection);
+ void goto_next_note (bool add_to_selection);