mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
NoteCreateDrag::grid_frames works over a tempo change.
This commit is contained in:
parent
0e0ef41ed4
commit
0e0b7667ed
1 changed files with 4 additions and 1 deletions
|
|
@ -6208,8 +6208,11 @@ NoteCreateDrag::grid_frames (framepos_t t) const
|
|||
if (!success) {
|
||||
grid_beats = Evoral::Beats(1);
|
||||
}
|
||||
const Evoral::Beats t_beats = _region_view->region_frames_to_region_beats (t);
|
||||
|
||||
return _region_view->region_beats_to_region_frames (t_beats + grid_beats)
|
||||
- _region_view->region_beats_to_region_frames (t_beats);
|
||||
|
||||
return _region_view->region_beats_to_region_frames (grid_beats);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue