summaryrefslogtreecommitdiff
path: root/tests/debug.py
blob: 9e6d1b8f6be7ad40965fbda4594661c876486896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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