diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-12-04 20:17:28 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-12-04 20:17:28 +0000 |
commit | fac1a3776495f18b3b4b5d9a704fdd92477c6e53 (patch) | |
tree | 4c0ddb24f1046ed3693ec21c13ca42cb3f184284 /libs/ardour/st_stretch.cc | |
parent | f99b84489888725485c537245191c3b45e18b677 (diff) |
add pitch shifting; minor fixes elsewhere
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2740 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/st_stretch.cc')
-rw-r--r-- | libs/ardour/st_stretch.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/st_stretch.cc b/libs/ardour/st_stretch.cc index 4cabfa79df..3c804e5549 100644 --- a/libs/ardour/st_stretch.cc +++ b/libs/ardour/st_stretch.cc @@ -35,7 +35,7 @@ using namespace ARDOUR; using namespace PBD; using namespace soundtouch; -Stretch::Stretch (Session& s, TimeStretchRequest& req) +Stretch::Stretch (Session& s, TimeFXRequest& req) : AudioFilter (s) , tsr (req) { @@ -45,7 +45,7 @@ Stretch::Stretch (Session& s, TimeStretchRequest& req) of opposite sign to the length change. */ - percentage = -tsr.fraction; + percentage = -tsr.time_fraction; st.setSampleRate (s.frame_rate()); st.setChannels (1); @@ -185,7 +185,7 @@ Stretch::run (boost::shared_ptr<AudioRegion> region) start = (nframes_t) floor (astart + ((astart - (*x)->start()) / stretch)); length = (nframes_t) floor (alength / stretch); - (*x)->set_ancestral_data (start, length, stretch); + (*x)->set_ancestral_data (start, length, stretch, (*x)->shift()); } out: |