#!/usr/bin/env python3 import struct, os, sys, math SR = 44100 def read24(path): d = open(path, 'rb').read() i = 12 ch = bps = None data_off = data_sz = None while i + 8 <= len(d): cid = d[i:i+4]; sz = struct.unpack('7} {'IN':>8}" + ''.join(f" {os.path.basename(p):>18}" for _,p in outs)) print("LOG2-ish band graph") # print compact dB difference dbin = profile_db(pi) for b in range(2, 64, 2): row = f"{freqs[b]:7.0f} {dbin[b]:8.1f}" for _, p in outs: pp = pids[p] d = 20*math.log10(pp[b]+1e-12) - dbin[b] row += f" {d:18.2f}" print(row)