// This produces loudness histogram. #include #include "h.h" int main(){BP bp; note * m = Read("", &bp); {int cnt[bp.trks][256]; {int k=bp.trks; while(k--) {int j=256; while(j--) cnt[k][j]=0;}} void sc(note n){if(n.dur < OpaqueStuff) ++cnt[n.trk-1][(unsigned int)n.o.n.loud];} scan(sc, m, 1); {int k; for(k=0; k