Changeset ce3ff2b for src/synth/wavetable.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.