mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
rename Region pulse to pos_beats. use new beat distance api where required.
- add more debugging output detecting regions whose beat and frame position do not align on a playlist. this is required as a check as we have never used frame rounding on constant tempi before 8884a5723dc
This commit is contained in:
parent
ac23496b40
commit
dca96d8b5d
8 changed files with 56 additions and 46 deletions
|
|
@ -5592,7 +5592,7 @@ NoteDrag::total_dx (const guint state) const
|
|||
frameoffset_t const dx = _editor->pixel_to_sample (_drags->current_pointer_x() - grab_x());
|
||||
|
||||
/* primary note time */
|
||||
double const quarter_note_start = (_region->region()->pulse() * 4.0) - _region->midi_region()->start_beats();
|
||||
double const quarter_note_start = _region->region()->pos_beats() - _region->midi_region()->start_beats();
|
||||
frameoffset_t const n = map.frame_at_quarter_note (quarter_note_start + _primary->note()->time().to_double());
|
||||
|
||||
/* new time of the primary note in session frames */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue