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 )
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)
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)
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 )