Changeset 61316a6 for examples


Ignore:
Timestamp:
Oct 8, 2009, 8:54:49 PM (15 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:
3027c6e
Parents:
05773a2c
Message:

examples plugins: update to latest pitch prototypes

Location:
examples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    r05773a2c r61316a6  
    4646      isonset = aubio_peakpicker_do(parms, onset);
    4747     
    48       pitch = aubio_pitchdetection_do (pitchdet,ibuf);
     48      aubio_pitchdetection_do (pitchdet, ibuf, pitch_obuf);
     49      pitch = fvec_read_sample(pitch_obuf, 0, 0);
    4950      if(median){
    5051              note_append(note_buffer, pitch);
  • examples/utils.c

    r05773a2c r61316a6  
    6262fvec_t *ibuf;
    6363fvec_t *obuf;
     64fvec_t *pitch_obuf;
    6465cvec_t *fftgrain;
    6566fvec_t *woodblock;
     
    319320    pitchdet = new_aubio_pitchdetection (buffer_size * 4,
    320321        overlap_size, channels, samplerate, type_pitch, mode_pitch);
    321     aubio_pitchdetection_set_yinthresh (pitchdet, 0.7);
     322    aubio_pitchdetection_set_tolerance (pitchdet, 0.7);
     323    pitch_obuf = new_fvec (1, channels);
    322324
    323325    if (median) {
     
    350352      del_fvec (note_buffer2);
    351353    }
     354    del_fvec (pitch_obuf);
    352355  }
    353356  if (usedoubled) {
  • examples/utils.h

    r05773a2c r61316a6  
    9595extern fvec_t *ibuf;
    9696extern fvec_t *obuf;
     97extern fvec_t *pitch_obuf;
    9798extern cvec_t *fftgrain;
    9899extern fvec_t *woodblock;
Note: See TracChangeset for help on using the changeset viewer.