From c72359b431b3e5df1bc946ed084c4a046c0bd7bb Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 22 Jun 2021 12:29:45 -0500 Subject: [PATCH] Default_Play_Speed: when transport is stopped, we want to run the engine at the varispeed setting. * PRO: you can audition synths at the varispeed tuning; you can use x42 guitar tuner when stopped * CON: this is NOT like a tape machine ... a tape machine has no 'speed' when stopped ToDo: if we find that this is contentious, we could make a config var for it --- libs/ardour/session_process.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 5a135bd25a..16a6512dbb 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -1255,7 +1255,11 @@ Session::plan_master_strategy (pframes_t nframes, double master_speed, samplepos */ if (!config.get_external_sync()) { - return actual_speed (); + float desired = actual_speed (); + if (desired==0.0) { + return _transport_fsm->default_speed(); + } + return desired; } /* When calling TransportMasterStart, sould aim for