diff options
author | John Glover <john@87-198-53-226.ptr.magnet.ie> | 2010-11-11 11:00:28 +0000 |
---|---|---|
committer | John Glover <john@87-198-53-226.ptr.magnet.ie> | 2010-11-11 11:00:28 +0000 |
commit | 432b5d2378cf80d2bf69edd2cf96b7bd861484a1 (patch) | |
tree | 4bd3edd25df49a973ebc68b2c91f502ad020ef7b /tests/debug.py | |
parent | 4591b4f5e4d0f3d128baffb77d32616b212d9c88 (diff) | |
parent | 8ffd29c8b8b9ee417f90e89d99458ff177e09e10 (diff) | |
download | simpl-432b5d2378cf80d2bf69edd2cf96b7bd861484a1.tar.gz simpl-432b5d2378cf80d2bf69edd2cf96b7bd861484a1.tar.bz2 simpl-432b5d2378cf80d2bf69edd2cf96b7bd861484a1.zip |
Merge branch 'master' of /Users/john/Dropbox/projects/simpl
Diffstat (limited to 'tests/debug.py')
-rw-r--r-- | tests/debug.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/debug.py b/tests/debug.py new file mode 100644 index 0000000..9e6d1b8 --- /dev/null +++ b/tests/debug.py @@ -0,0 +1,15 @@ + +def print_peaks(frames): + for n, f in enumerate(frames): + for p in f: + print str(n) + ":", p.frequency + +def print_partials(partials): + for partial_num, partial in enumerate(partials): + print partial_num, + print "(" + str(partial.starting_frame) + " to", + print str(partial.starting_frame + len(partial.peaks)) + "):", + for peak_number, peak in enumerate(partial.peaks): + print peak.frequency, + print + |