Changeset 5288874
- Timestamp:
- Jul 13, 2008, 9:53:30 PM (16 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:
- 4d7ced9
- Parents:
- bf9d8a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchschmitt.c
rbf9d8a6 r5288874 29 29 signed short int *schmittBuffer; 30 30 signed short int *schmittPointer; 31 signed short int *buf; 31 32 }; 32 33 … … 36 37 p->blockSize = size; 37 38 p->schmittBuffer = AUBIO_ARRAY(signed short int,p->blockSize); 39 p->buf = AUBIO_ARRAY(signed short int,p->blockSize); 38 40 p->schmittPointer = p->schmittBuffer; 39 41 p->rate = samplerate; … … 43 45 smpl_t aubio_pitchschmitt_detect (aubio_pitchschmitt_t *p, fvec_t * input) 44 46 { 45 signed short int buf[input->length];46 47 uint_t i; 47 48 for (i=0; i<input->length; i++) { 48 buf[i] = input->data[0][i]*32768.;49 p->buf[i] = input->data[0][i]*32768.; 49 50 } 50 return aubio_schmittS16LE(p, input->length, buf);51 return aubio_schmittS16LE(p, input->length, p->buf); 51 52 } 52 53
Note: See TracChangeset
for help on using the changeset viewer.