summaryrefslogtreecommitdiff
path: root/libs/ardour/st_stretch.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-12-04 20:33:35 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-12-04 20:33:35 +0000
commit5e17e6221f5b93f352b64b1acc64b9496a3f284a (patch)
tree2991e7f6a6c07a37c943250e454ed0711b582cc5 /libs/ardour/st_stretch.cc
parente05d80a583616411a575719fcf600aa9b2f913f1 (diff)
fix up st_pitch.cc to use time_fraction
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2742 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/st_stretch.cc')
-rw-r--r--libs/ardour/st_stretch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/st_stretch.cc b/libs/ardour/st_stretch.cc
index 3c804e5549..fd15aa8985 100644
--- a/libs/ardour/st_stretch.cc
+++ b/libs/ardour/st_stretch.cc
@@ -87,7 +87,7 @@ Stretch::run (boost::shared_ptr<AudioRegion> region)
digits just to disambiguate close but not identical stretches.
*/
- snprintf (suffix, sizeof (suffix), "@%d", (int) floor (tsr.fraction * 100.0f));
+ snprintf (suffix, sizeof (suffix), "@%d", (int) floor (tsr.time_fraction * 100.0f));
/* create new sources */
@@ -180,7 +180,7 @@ Stretch::run (boost::shared_ptr<AudioRegion> region)
// note: tsr.fraction is a percentage of original length. 100 = no change,
// 50 is half as long, 200 is twice as long, etc.
- float stretch = (*x)->stretch() * (tsr.fraction/100.0);
+ float stretch = (*x)->stretch() * (tsr.time_fraction/100.0);
start = (nframes_t) floor (astart + ((astart - (*x)->start()) / stretch));
length = (nframes_t) floor (alength / stretch);