Ignore:
Timestamp:
Dec 31, 2013, 12:17:37 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
c21acb9
Parents:
0546c1f3
Message:

examples/: build with -Wdeclaration-after-statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    r0546c1f3 rfe87823  
    4848void process_block (fvec_t *ibuf, fvec_t *obuf)
    4949{
     50  smpl_t new_pitch, curlevel;
    5051  fvec_zeros(obuf);
    5152  aubio_onset_do(o, ibuf, onset);
    5253
    5354  aubio_pitch_do (pitch, ibuf, pitch_obuf);
    54   smpl_t new_pitch = fvec_get_sample(pitch_obuf, 0);
     55  new_pitch = fvec_get_sample(pitch_obuf, 0);
    5556  if(median){
    5657    note_append(note_buffer, new_pitch);
     
    5859
    5960  /* curlevel is negatif or 1 if silence */
    60   smpl_t curlevel = aubio_level_detection(ibuf, silence_threshold);
     61  curlevel = aubio_level_detection(ibuf, silence_threshold);
    6162  if (fvec_get_sample(onset, 0)) {
    6263    /* test for silence */
Note: See TracChangeset for help on using the changeset viewer.