- /** Snap a region relative pixel coordinate to frame units.
- * @param x a pixel coordinate relative to region start
- * @return the snapped framepos_t coordinate relative to region start
- */
- framepos_t snap_pixel_to_sample(double x);
-
- /** Explicitly snap a region relative pixel coordinate to frame units (no magnetic snap).
- * @param x a pixel coordinate relative to region start
- * @return the explicitly snapped framepos_t coordinate relative to region start
- */
- framepos_t snap_pixel_to_sample_no_magnets (double x);
-
- /** Convert a timestamp in beats into frames (both relative to region position) */
- framepos_t region_beats_to_region_frames(Evoral::Beats beats) const;
- /** Convert a timestamp in beats into absolute frames */
- framepos_t region_beats_to_absolute_frames(Evoral::Beats beats) const {
- return _region->position() + region_beats_to_region_frames (beats);
+ /** Convert a timestamp in beats into samples (both relative to region position) */
+ samplepos_t region_beats_to_region_samples(Temporal::Beats beats) const;
+ /** Convert a timestamp in beats into absolute samples */
+ samplepos_t region_beats_to_absolute_samples(Temporal::Beats beats) const {
+ return _region->position() + region_beats_to_region_samples (beats);