Changeset fb5bd55


Ignore:
Timestamp:
Sep 29, 2016, 2:23:58 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler, timestretch
Children:
b4ad853
Parents:
0d4228d
Message:

src/effects/timestretch_rubberband.c: invert stretch ratio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch_rubberband.c

    r0d4228d rfb5bd55  
    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.