Fix timestretch "resample without preserving pitch"
[ardour.git] / gtk2_ardour / editor_timefx.cc
index a38e61a437ab13d5b811179d078791270b85b615..9ecf6cf1508e30fc1e7518ef9faecf1a02fa1eb6 100644 (file)
@@ -235,7 +235,7 @@ Editor::time_fx (RegionList& regions, float val, bool pitching)
                        transients = NoTransients;
                        precise = true;
                        preserve_formants = false;
-                       current_timefx->request.pitch_fraction = 1/val;
+                       current_timefx->request.pitch_fraction = 1.0 / current_timefx->request.time_fraction;
                        shortwin = true;
                        // peaklock = false;
                        break;