Changeset e5ddc32 for tests/python/src
- Timestamp:
- Oct 8, 2009, 2:42:21 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:
- 70dd55c
- Parents:
- c9ca5a6e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/python/src/pitch/pitchdetection.py
rc9ca5a6e re5ddc32 29 29 vec = new_fvec(buf_size, channels) 30 30 for i in range(100): 31 self.assertEqual(aubio_pitchdetection (self.o,vec),0.)31 self.assertEqual(aubio_pitchdetection_do(self.o,vec),0.) 32 32 del vec 33 33 … … 41 41 frequency = samplerate/2*4/buf_size 42 42 for i in range(100): 43 self.assertEqual(aubio_pitchdetection (self.o,vec),frequency)43 self.assertEqual(aubio_pitchdetection_do(self.o,vec),frequency) 44 44 del vec 45 45 … … 53 53 fvec_write_sample(vec, 2.-.01*i,0, buf_size/2) 54 54 fvec_write_sample(vec, 2.-.01*i,0,3*buf_size/4) 55 self.assertAlmostEqual(aubio_pitchdetection (self.o,vec),frequency,1)55 self.assertAlmostEqual(aubio_pitchdetection_do(self.o,vec),frequency,1) 56 56 del vec 57 57 … … 65 65 fvec_write_sample(vec,-.01*i,0, buf_size/2) 66 66 fvec_write_sample(vec,-.01*i,0,3*buf_size/4) 67 self.assertAlmostEqual(aubio_pitchdetection (self.o,vec),frequency,1)67 self.assertAlmostEqual(aubio_pitchdetection_do(self.o,vec),frequency,1) 68 68 del vec 69 69 … … 80 80 fvec_write_sample(vec,-1.,0,7*buf_size/8) 81 81 for i in range(100): 82 self.assertAlmostEqual(aubio_pitchdetection (self.o,vec),82 self.assertAlmostEqual(aubio_pitchdetection_do(self.o,vec), 83 83 samplerate/2/buf_size*8, 1) 84 84 del vec
Note: See TracChangeset
for help on using the changeset viewer.