summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-07-23 17:20:13 +0200
committerRobin Gareus <robin@gareus.org>2018-07-23 17:20:13 +0200
commitb5e67536a348ea820a612e8120ed82bbd12e11f7 (patch)
treebd7a59ae8f926531ec19d9cc9f713c29e89fd518 /gtk2_ardour
parentc2e520fab056834a7181e08a1cd0fa3e14796b1e (diff)
Fix timestretch "resample without preserving pitch"
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_timefx.cc2
1 files changed, 1 insertions, 1 deletions
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;