tempo map editing: re-enable stretch tempo drag

This commit is contained in:
Paul Davis 2022-05-12 12:15:08 -06:00
parent 45de3694cc
commit a60412373a

View file

@ -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;