- Timestamp:
- Aug 9, 2005, 12:09:36 PM (19 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:
- 5e9c68a
- Parents:
- ea865c9
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tests/test-fft.c
rea865c9 r28d8c4a 20 20 spec[i] = AUBIO_ARRAY(fft_data_t,win_s); 21 21 /* initialize the window (see mathutils.c) */ 22 window(w,win_s,aubio_win_hanningz);22 aubio_window(w,win_s,aubio_win_hanningz); 23 23 24 24 /* fill input with some data */ … … 35 35 for (i=0; i < channels; i++) { 36 36 for (j=0; j<win_s/2+1; j++) { 37 spec[i][j] = CEXPC(I* unwrap2pi(fftgrain->phas[i][j]));37 spec[i][j] = CEXPC(I*aubio_unwrap2pi(fftgrain->phas[i][j])); 38 38 spec[i][j] *= fftgrain->norm[i][j]; 39 39 } -
examples/utils.c
rea865c9 r28d8c4a 330 330 void send_noteon(int pitch, int velo) 331 331 { 332 smpl_t mpitch = (FLOOR)( freqtomidi(pitch)+.5);332 smpl_t mpitch = (FLOOR)(aubio_freqtomidi(pitch)+.5); 333 333 /* we should check if we use midi here, not jack */ 334 334 #if ALSA_SUPPORT
Note: See TracChangeset
for help on using the changeset viewer.