mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Tempo ramps - fix changing from const to ramp in the gui.
- also fixes some midi mouse over problems - start using replacements for frames_per_bar() frames_per_beat() etc.
This commit is contained in:
parent
0d0e458dde
commit
dbfe991cd8
8 changed files with 121 additions and 25 deletions
|
|
@ -519,7 +519,7 @@ Drag::add_midi_region (MidiTimeAxisView* view, bool commit)
|
|||
/* not that the frame rate used here can be affected by pull up/down which
|
||||
might be wrong.
|
||||
*/
|
||||
framecnt_t len = m.frames_per_bar (map.tempo_at (pos), _editor->session()->frame_rate());
|
||||
framecnt_t len = map.frame_at_beat (map.beat_at_frame (pos) + 1.0) - pos;
|
||||
return view->add_region (grab_frame(), len, commit);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue