- Timestamp:
- Apr 21, 2016, 7:32:58 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- feb694b
- Parents:
- eaee767
- Location:
- src/synth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/synth/sampler.h
reaee767 rce3ff2b 60 60 61 61 */ 62 uint_t aubio_sampler_load( aubio_sampler_t * o, c har_t * uri );62 uint_t aubio_sampler_load( aubio_sampler_t * o, const char_t * uri ); 63 63 64 64 /** process sampler function … … 74 74 75 75 */ 76 void aubio_sampler_do ( aubio_sampler_t * o, fvec_t * input, fvec_t * output);76 void aubio_sampler_do ( aubio_sampler_t * o, const fvec_t * input, fvec_t * output); 77 77 78 78 /** process sampler function, multiple channels … … 88 88 89 89 */ 90 void aubio_sampler_do_multi ( aubio_sampler_t * o, fmat_t * input, fmat_t * output);90 void aubio_sampler_do_multi ( aubio_sampler_t * o, const fmat_t * input, fmat_t * output); 91 91 92 92 /** get current playing state … … 97 97 98 98 */ 99 uint_t aubio_sampler_get_playing ( aubio_sampler_t * o );99 uint_t aubio_sampler_get_playing ( const aubio_sampler_t * o ); 100 100 101 101 /** set current playing state -
src/synth/wavetable.c
reaee767 rce3ff2b 69 69 } 70 70 71 static smpl_t interp_2( fvec_t *input, smpl_t pos) {71 static smpl_t interp_2(const fvec_t *input, smpl_t pos) { 72 72 uint_t idx = (uint_t)FLOOR(pos); 73 73 smpl_t frac = pos - (smpl_t)idx; … … 77 77 } 78 78 79 void aubio_wavetable_do ( aubio_wavetable_t * s, fvec_t * input, fvec_t * output)79 void aubio_wavetable_do ( aubio_wavetable_t * s, const fvec_t * input, fvec_t * output) 80 80 { 81 81 uint_t i; … … 108 108 } 109 109 110 void aubio_wavetable_do_multi ( aubio_wavetable_t * s, fmat_t * input, fmat_t * output)110 void aubio_wavetable_do_multi ( aubio_wavetable_t * s, const fmat_t * input, fmat_t * output) 111 111 { 112 112 uint_t i, j; … … 143 143 } 144 144 145 uint_t aubio_wavetable_get_playing ( aubio_wavetable_t * s )145 uint_t aubio_wavetable_get_playing ( const aubio_wavetable_t * s ) 146 146 { 147 147 return s->playing; … … 173 173 } 174 174 175 smpl_t aubio_wavetable_get_freq ( aubio_wavetable_t * s) {175 smpl_t aubio_wavetable_get_freq ( const aubio_wavetable_t * s) { 176 176 return aubio_parameter_get_current_value ( s->freq); 177 177 } … … 182 182 } 183 183 184 smpl_t aubio_wavetable_get_amp ( aubio_wavetable_t * s) {184 smpl_t aubio_wavetable_get_amp ( const aubio_wavetable_t * s) { 185 185 return aubio_parameter_get_current_value ( s->amp ); 186 186 } -
src/synth/wavetable.h
reaee767 rce3ff2b 60 60 61 61 */ 62 uint_t aubio_wavetable_load( aubio_wavetable_t * o, c har_t * uri );62 uint_t aubio_wavetable_load( aubio_wavetable_t * o, const char_t * uri ); 63 63 64 64 /** process wavetable function … … 74 74 75 75 */ 76 void aubio_wavetable_do ( aubio_wavetable_t * o, fvec_t * input, fvec_t * output);76 void aubio_wavetable_do ( aubio_wavetable_t * o, const fvec_t * input, fvec_t * output); 77 77 78 78 /** process wavetable function, multiple channels … … 88 88 89 89 */ 90 void aubio_wavetable_do_multi ( aubio_wavetable_t * o, fmat_t * input, fmat_t * output);90 void aubio_wavetable_do_multi ( aubio_wavetable_t * o, const fmat_t * input, fmat_t * output); 91 91 92 92 /** get current playing state … … 97 97 98 98 */ 99 uint_t aubio_wavetable_get_playing ( aubio_wavetable_t * o );99 uint_t aubio_wavetable_get_playing ( const aubio_wavetable_t * o ); 100 100 101 101 /** set current playing state … … 144 144 145 145 */ 146 smpl_t aubio_wavetable_get_freq ( aubio_wavetable_t * o);146 smpl_t aubio_wavetable_get_freq ( const aubio_wavetable_t * o); 147 147 148 148 /** set wavetable amplitude … … 163 163 164 164 */ 165 smpl_t aubio_wavetable_get_amp ( aubio_wavetable_t * o);165 smpl_t aubio_wavetable_get_amp ( const aubio_wavetable_t * o); 166 166 167 167 /** destroy aubio_wavetable_t object
Note: See TracChangeset
for help on using the changeset viewer.