Changeset b14107f


Ignore:
Timestamp:
Oct 19, 2009, 10:59:32 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
59c046d
Parents:
ca1abdd
Message:

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

Files:
1 added
2 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);
  • tests/python/src/pitch/pitchdetection.py

    rca1abdd rb14107f  
    9595
    9696"""
    97 class pitch_yin_test_case(pitchdetection_test_case):
     97class pitch_yin_test_case(pitch_test_case):
    9898  def setUp(self, type = aubio_pitch_yin):
    9999    self.create(type=type)
    100100
    101 class pitch_fcomb_test_case(pitchdetection_test_case):
     101class pitch_fcomb_test_case(pitch_test_case):
    102102  def setUp(self, type = aubio_pitch_fcomb):
    103103    self.create(type=type)
    104104
    105 class pitch_mcomb_test_case(pitchdetection_test_case):
     105class pitch_mcomb_test_case(pitch_test_case):
    106106  def setUp(self, type = aubio_pitch_mcomb):
    107107    self.create(type=type)
    108108
    109 class pitch_schmitt_test_case(pitchdetection_test_case):
     109class pitch_schmitt_test_case(pitch_test_case):
    110110  def setUp(self, type = aubio_pitch_schmitt):
    111111    self.create(type=type)
Note: See TracChangeset for help on using the changeset viewer.