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
This commit is contained in:
Ben Loftis 2021-06-22 12:29:45 -05:00 committed by Robin Gareus
parent 50c555f1a1
commit c72359b431
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 5 additions and 1 deletions

View File

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