Changeset b14107f
- Timestamp:
- Oct 19, 2009, 10:59:32 AM (15 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:
- 59c046d
- Parents:
- ca1abdd
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
rca1abdd rb14107f 25 25 smpl_t curlevel = 0.; 26 26 27 aubio_pitch detection_t *pitchdet;27 aubio_pitch_t *pitchdet; 28 28 29 29 fvec_t *note_buffer = NULL; … … 35 35 unsigned int pos = 0; /*frames%dspblocksize*/ 36 36 37 aubio_pitch detection_t *pitchdet;37 aubio_pitch_t *pitchdet; 38 38 aubio_onset_t *o; 39 39 fvec_t *onset; … … 62 62 aubio_onset_do(o, ibuf, onset); 63 63 64 aubio_pitch detection_do (pitchdet, ibuf, pitch_obuf);64 aubio_pitch_do (pitchdet, ibuf, pitch_obuf); 65 65 pitch = fvec_read_sample(pitch_obuf, 0, 0); 66 66 if(median){ … … 150 150 onset = new_fvec (1, channels); 151 151 152 pitchdet = new_aubio_pitch detection(pitch_mode, buffer_size * 4,152 pitchdet = new_aubio_pitch (pitch_mode, buffer_size * 4, 153 153 overlap_size, channels, samplerate); 154 aubio_pitch detection_set_tolerance (pitchdet, 0.7);154 aubio_pitch_set_tolerance (pitchdet, 0.7); 155 155 pitch_obuf = new_fvec (1, channels); 156 156 if (median) { … … 162 162 163 163 send_noteon (curnote, 0); 164 del_aubio_pitch detection(pitchdet);164 del_aubio_pitch (pitchdet); 165 165 if (median) { 166 166 del_fvec (note_buffer); -
tests/python/src/pitch/pitchdetection.py
rca1abdd rb14107f 95 95 96 96 """ 97 class pitch_yin_test_case(pitch detection_test_case):97 class pitch_yin_test_case(pitch_test_case): 98 98 def setUp(self, type = aubio_pitch_yin): 99 99 self.create(type=type) 100 100 101 class pitch_fcomb_test_case(pitch detection_test_case):101 class pitch_fcomb_test_case(pitch_test_case): 102 102 def setUp(self, type = aubio_pitch_fcomb): 103 103 self.create(type=type) 104 104 105 class pitch_mcomb_test_case(pitch detection_test_case):105 class pitch_mcomb_test_case(pitch_test_case): 106 106 def setUp(self, type = aubio_pitch_mcomb): 107 107 self.create(type=type) 108 108 109 class pitch_schmitt_test_case(pitch detection_test_case):109 class pitch_schmitt_test_case(pitch_test_case): 110 110 def setUp(self, type = aubio_pitch_schmitt): 111 111 self.create(type=type)
Note: See TracChangeset
for help on using the changeset viewer.