Skip to content

Commit

Permalink
expanded contour test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Aug 30, 2016
1 parent 4268c6d commit a3dffe7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jams/tests/sonify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,14 @@ def test_contour():
'index': 0,
'voiced': (t < 3 or t > 4)})

y = jams.sonify.sonify(ann, sr=8000, duration=duration)

eq_(len(y), 8000 * duration)
def __test(ann, duration):
y = jams.sonify.sonify(ann, sr=8000, duration=duration)
if duration is not None:
eq_(len(y), 8000 * duration)

for duration in [None, 5.0, 10.0]:
yield __test, ann, duration


def test_chord():
Expand Down

0 comments on commit a3dffe7

Please sign in to comment.