From b5e67536a348ea820a612e8120ed82bbd12e11f7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 23 Jul 2018 17:20:13 +0200 Subject: Fix timestretch "resample without preserving pitch" --- gtk2_ardour/editor_timefx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc index a38e61a437..9ecf6cf150 100644 --- a/gtk2_ardour/editor_timefx.cc +++ b/gtk2_ardour/editor_timefx.cc @@ -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; -- cgit v1.2.3