Ignore:
Timestamp:
Mar 3, 2013, 10:27:17 PM (12 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:
7a6521d
Parents:
6a50b9e
Message:

aubiomodule.c: add unwrap2pi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_mathutils.py

    r6a50b9e r6514bb6  
    44from numpy.testing import assert_equal, assert_almost_equal
    55from aubio import bintomidi, miditobin, freqtobin, bintofreq, freqtomidi, miditofreq
     6from aubio import unwrap2pi
    67
    78class aubio_mathutils(TestCase):
     9
     10    def test_unwrap2pi(self):
     11       a = [ x/100. for x in range(-600,600,100) ]
     12       b = [ unwrap2pi(x) for x in a ]
     13       #print b
    814
    915    def test_miditobin(self):
     
    2531       freqs = [ miditofreq(a) for a in range(128) ]
    2632       midis = [ freqtomidi(a) for a in freqs ]
    27        print midis
    2833
    2934if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.