Changeset e5ddc32 for tests


Ignore:
Timestamp:
Oct 8, 2009, 2:42:21 AM (10 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:
70dd55c
Parents:
c9ca5a6e
Message:

tests/python/src/pitch/pitchdetection.py: update prototypes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/python/src/pitch/pitchdetection.py

    rc9ca5a6e re5ddc32  
    2929    vec = new_fvec(buf_size, channels)
    3030    for i in range(100):
    31       self.assertEqual(aubio_pitchdetection(self.o,vec),0.)
     31      self.assertEqual(aubio_pitchdetection_do(self.o,vec),0.)
    3232    del vec
    3333
     
    4141    frequency = samplerate/2*4/buf_size
    4242    for i in range(100):
    43       self.assertEqual(aubio_pitchdetection(self.o,vec),frequency)
     43      self.assertEqual(aubio_pitchdetection_do(self.o,vec),frequency)
    4444    del vec
    4545
     
    5353      fvec_write_sample(vec, 2.-.01*i,0,  buf_size/2)
    5454      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)
    5656    del vec
    5757
     
    6565      fvec_write_sample(vec,-.01*i,0,  buf_size/2)
    6666      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)
    6868    del vec
    6969
     
    8080    fvec_write_sample(vec,-1.,0,7*buf_size/8)
    8181    for i in range(100):
    82       self.assertAlmostEqual(aubio_pitchdetection(self.o,vec),
     82      self.assertAlmostEqual(aubio_pitchdetection_do(self.o,vec),
    8383        samplerate/2/buf_size*8, 1)
    8484    del vec
Note: See TracChangeset for help on using the changeset viewer.