Changeset 7a5f963c
- Timestamp:
- Sep 19, 2016, 8:14:21 PM (8 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch
- Children:
- 36e9cfeb
- Parents:
- a6ba2ed1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/effects/pitchshift.c
ra6ba2ed1 r7a5f963c 57 57 58 58 p->rboptions = RubberBandOptionProcessRealTime; 59 60 if ( strcmp(mode,"crispness:0") == 0 ) { 61 p->rboptions |= RubberBandOptionTransientsSmooth; 62 p->rboptions |= RubberBandOptionWindowLong; 63 p->rboptions |= RubberBandOptionPhaseIndependent; 64 } else if ( strcmp(mode, "crispness:1") == 0 ) { 65 p->rboptions |= RubberBandOptionDetectorSoft; 66 p->rboptions |= RubberBandOptionTransientsSmooth; 67 p->rboptions |= RubberBandOptionWindowLong; 68 p->rboptions |= RubberBandOptionPhaseIndependent; 69 } else if ( strcmp(mode, "crispness:2") == 0 ) { 70 p->rboptions |= RubberBandOptionTransientsSmooth; 71 p->rboptions |= RubberBandOptionPhaseIndependent; 72 } else if ( strcmp(mode, "crispness:3") == 0 ) { 73 p->rboptions |= RubberBandOptionTransientsSmooth; 74 } else if ( strcmp(mode, "crispness:4") == 0 ) { 75 // same as "default" 76 } else if ( strcmp(mode, "crispness:5") == 0 ) { 77 p->rboptions |= RubberBandOptionTransientsCrisp; 78 } else if ( strcmp(mode, "crispness:6") == 0 ) { 79 p->rboptions |= RubberBandOptionTransientsCrisp; 80 p->rboptions |= RubberBandOptionWindowShort; 81 p->rboptions |= RubberBandOptionPhaseIndependent; 82 } else if ( strcmp(mode, "default") == 0 ) { 83 // nothing to do 84 } else { 85 AUBIO_ERR("pitchshift: unknown pitch shifting method %s\n", mode); 86 goto beach; 87 } 88 //AUBIO_MSG("pitchshift: using pitch shifting method %s\n", mode); 89 59 90 //p->rboptions |= RubberBandOptionTransientsCrisp; 60 91 //p->rboptions |= RubberBandOptionWindowStandard;
Note: See TracChangeset
for help on using the changeset viewer.