Changeset a9eb93e
- Timestamp:
- Sep 21, 2016, 3:55:21 PM (8 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch
- Children:
- 4292013
- Parents:
- e2645cb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_code.py
re2645cb ra9eb93e 20 20 'method': '"default"', 21 21 'uri': '"none"', 22 ' pitchscale': '1.',22 'transpose': '0.', 23 23 } 24 24 -
src/effects/pitchshift.c
re2645cb ra9eb93e 49 49 aubio_pitchshift_t * 50 50 new_aubio_pitchshift (const char_t * mode, 51 smpl_t pitchscale, uint_t hopsize, uint_t samplerate)51 smpl_t transpose, uint_t hopsize, uint_t samplerate) 52 52 { 53 53 aubio_pitchshift_t *p = AUBIO_NEW (aubio_pitchshift_t); 54 54 p->samplerate = samplerate; 55 55 p->hopsize = hopsize; 56 p->timeratio = 1.; 57 p->pitchscale = pitchscale; 56 p->pitchscale = 1.; 57 if (transpose >= -24. && transpose <= 24.) { 58 p->pitchscale = POW(2., transpose / 12.); 59 } else { 60 AUBIO_ERR("pitchshift: transpose should be in the range [-24, 24], got %f\n", transpose); 61 goto beach; 62 } 58 63 59 64 p->rboptions = RubberBandOptionProcessRealTime; -
src/effects/pitchshift.h
re2645cb ra9eb93e 58 58 59 59 \param method set pitch shifting algorithm ("default") 60 \param pitchscale initial pitch scaling factor60 \param transpose initial pitch transposition 61 61 \param hop_size step size between two consecutive analysis instant 62 62 \param samplerate sampling rate of the signal … … 66 66 */ 67 67 aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method, 68 smpl_t pitchscale, uint_t hop_size, uint_t samplerate);68 smpl_t transpose, uint_t hop_size, uint_t samplerate); 69 69 70 70 /** get the latency of the pitch shifting object, in samples
Note: See TracChangeset
for help on using the changeset viewer.