Example #1
0
 def test_bintomidi(self):
     a = list(range(-100, 512))
     b = [ bintomidi(x, 44100, 512) for x in a ]
     #print zip(a, b)
     assert_equal ( isnan(array(b)), False )
     assert_equal ( isinf(array(b)), False )
     assert_equal ( array(b) < 0, False )
Example #2
0
 def test_miditobin(self):
     a = range(-30, 200) + [-100000, 10000]
     b = [bintomidi(x, 44100, 512) for x in a]
     #print zip(a, b)
     assert_equal(isnan(array(b)), False)
     assert_equal(isinf(array(b)), False)
     assert_equal(array(b) < 0, False)
Example #3
0
 def test_bintomidi(self):
     a = range(-100, 512)
     b = [bintomidi(x, 44100, 512) for x in a]
     #print zip(a, b)
     assert_equal(isnan(array(b)), False)
     assert_equal(isinf(array(b)), False)
     assert_equal(array(b) < 0, False)
Example #4
0
 def test_miditobin(self):
     a = list(range(-30, 200)) + [-100000, 10000]
     b = [ bintomidi(x, 44100, 512) for x in a ]
     #print zip(a, b)
     assert_equal ( isnan(array(b)), False )
     assert_equal ( isinf(array(b)), False )
     assert_equal ( array(b) < 0, False )