Ignore:
Timestamp:
Oct 19, 2009, 10:59:32 AM (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:
59c046d
Parents:
ca1abdd
Message:

examples/aubiopitch.c: added c version of aubiopitch, more renaming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubionotes.c

    rca1abdd rb14107f  
    2525smpl_t curlevel = 0.;
    2626
    27 aubio_pitchdetection_t *pitchdet;
     27aubio_pitch_t *pitchdet;
    2828
    2929fvec_t *note_buffer = NULL;
     
    3535unsigned int pos = 0; /*frames%dspblocksize*/
    3636
    37 aubio_pitchdetection_t *pitchdet;
     37aubio_pitch_t *pitchdet;
    3838aubio_onset_t *o;
    3939fvec_t *onset;
     
    6262      aubio_onset_do(o, ibuf, onset);
    6363     
    64       aubio_pitchdetection_do (pitchdet, ibuf, pitch_obuf);
     64      aubio_pitch_do (pitchdet, ibuf, pitch_obuf);
    6565      pitch = fvec_read_sample(pitch_obuf, 0, 0);
    6666      if(median){
     
    150150  onset = new_fvec (1, channels);
    151151
    152   pitchdet = new_aubio_pitchdetection (pitch_mode, buffer_size * 4,
     152  pitchdet = new_aubio_pitch (pitch_mode, buffer_size * 4,
    153153          overlap_size, channels, samplerate);
    154   aubio_pitchdetection_set_tolerance (pitchdet, 0.7);
     154  aubio_pitch_set_tolerance (pitchdet, 0.7);
    155155  pitch_obuf = new_fvec (1, channels);
    156156  if (median) {
     
    162162
    163163  send_noteon (curnote, 0);
    164   del_aubio_pitchdetection (pitchdet);
     164  del_aubio_pitch (pitchdet);
    165165  if (median) {
    166166      del_fvec (note_buffer);
Note: See TracChangeset for help on using the changeset viewer.