13
0

use 4 semitone steps whenever rewind/ffwd is adjusting in the range below 1 octave slower

This commit is contained in:
Paul Davis 2021-05-08 09:43:04 -06:00
parent 57b3df8b22
commit 1c47f0adbe

View File

@ -2049,12 +2049,17 @@ ARDOUR_UI::transport_ffwd_rewind (bool fwd)
if (fwd) {
if (transport_speed < 0.f) {
/* we need to move the speed back towards zero */
if (fabs (transport_speed) < octave_down) {
/* we need to move the speed back towards zero */
semitone_ratio = pow (1.0/semitone_ratio, 4.0);
} else {
semitone_ratio = 1.0/semitone_ratio;
}
} else {
if (fabs (transport_speed) < octave_down) {
/* moving very slowly, use 4 semitone steps */
semitone_ratio = pow (semitone_ratio, 4.0);
}
}
} else {
if (transport_speed > 0.f) {
@ -2065,6 +2070,11 @@ ARDOUR_UI::transport_ffwd_rewind (bool fwd)
} else {
semitone_ratio = 1.0/semitone_ratio;
}
} else {
if (fabs (transport_speed) < octave_down) {
/* moving very slowly, use 4 semitone steps */
semitone_ratio = pow (semitone_ratio, 4.0);
}
}
}