mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
tempo map editing: re-enable stretch tempo drag
This commit is contained in:
parent
45de3694cc
commit
a60412373a
1 changed files with 3 additions and 3 deletions
|
|
@ -3658,7 +3658,7 @@ BBTRulerDrag::BBTRulerDrag (Editor* e, ArdourCanvas::Item* i)
|
||||||
void
|
void
|
||||||
BBTRulerDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
|
BBTRulerDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
|
||||||
{
|
{
|
||||||
map = TempoMap::fetch_writable ();
|
map = _editor->begin_tempo_map_edit ();
|
||||||
|
|
||||||
Drag::start_grab (event, cursor);
|
Drag::start_grab (event, cursor);
|
||||||
|
|
||||||
|
|
@ -3722,8 +3722,8 @@ BBTRulerDrag::motion (GdkEvent* event, bool first_move)
|
||||||
|
|
||||||
if (ArdourKeyboard::indicates_constraint (event->button.state)) {
|
if (ArdourKeyboard::indicates_constraint (event->button.state)) {
|
||||||
/* adjust previous tempo to match pointer sample */
|
/* adjust previous tempo to match pointer sample */
|
||||||
#warning NUTEMPO need to implement this
|
map->stretch_tempo (_tempo, timepos_t (_grab_qn).samples(), pf.samples(), _grab_qn, pf.beats());
|
||||||
// _editor->session()->tempo_map().gui_stretch_tempo (_tempo, map.sample_at (_grab_qn), pf, _grab_qn, map.quarters_at_sample (pf));
|
_editor->mid_tempo_change ();
|
||||||
}
|
}
|
||||||
|
|
||||||
ostringstream sstr;
|
ostringstream sstr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue