summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_timefx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor_timefx.cc')
-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;