summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_timefx.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-05-16 20:12:45 +0000
committerCarl Hetherington <carl@carlh.net>2011-05-16 20:12:45 +0000
commit95b83295b29352a4d837dec912be8315c42e7488 (patch)
tree60e71aff22b9cb894bca0f07d1d42b0fcc417a16 /gtk2_ardour/editor_timefx.cc
parent7fea58a3ad174a4037f8ee443f1289b503936516 (diff)
Minor coding style fix and comment addition.
git-svn-id: svn://localhost/ardour2/branches/3.0@9526 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_timefx.cc')
-rw-r--r--gtk2_ardour/editor_timefx.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc
index d40299a0a3..0a1d3cb495 100644
--- a/gtk2_ardour/editor_timefx.cc
+++ b/gtk2_ardour/editor_timefx.cc
@@ -74,10 +74,9 @@ Editor::time_stretch (RegionSelection& regions, float fraction)
if (!rtv)
return -1;
- boost::shared_ptr<Playlist> playlist
- = rtv->track()->playlist();
-
- ARDOUR::TimeFXRequest request;
+ boost::shared_ptr<Playlist> playlist = rtv->track()->playlist();
+
+ ARDOUR::TimeFXRequest request;
request.time_fraction = fraction;
MidiStretch stretch(*_session, request);
begin_reversible_command ("midi stretch");
@@ -98,7 +97,9 @@ Editor::pitch_shift (RegionSelection& regions, float fraction)
return time_fx (regions, fraction, true);
}
-/** @return -1 in case of error, 1 if operation was cancelled by the user, 0 if everything went ok */
+/** @param val Percentage to time stretch by; ignored if pitch-shifting.
+ * @param pitching true to pitch shift, false to time stretch.
+ * @return -1 in case of error, 1 if operation was cancelled by the user, 0 if everything went ok */
int
Editor::time_fx (RegionSelection& regions, float val, bool pitching)
{