Changeset 85755eb for src


Ignore:
Timestamp:
Dec 7, 2018, 1:28:54 AM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/timestretch
Children:
456a784
Parents:
a0a4d01
git-author:
Paul Brossier <piem@piem.org> (09/29/16 14:23:58)
git-committer:
Paul Brossier <piem@piem.org> (12/07/18 01:28:54)
Message:

src/effects/timestretch_rubberband.c: invert stretch ratio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch_rubberband.c

    ra0a4d01 r85755eb  
    3232
    3333#define MIN_STRETCH_RATIO 0.025
    34 #define MAX_STRETCH_RATIO 10.
     34#define MAX_STRETCH_RATIO 40.
    3535
    3636/** generic time stretching structure */
     
    134134  if (stretch >= MIN_STRETCH_RATIO && stretch <= MAX_STRETCH_RATIO) {
    135135    p->stretchratio = stretch;
    136     rubberband_set_time_ratio(p->rb, p->stretchratio);
     136    rubberband_set_time_ratio(p->rb, 1./p->stretchratio);
    137137    return AUBIO_OK;
    138138  } else {
Note: See TracChangeset for help on using the changeset viewer.