there is an external in pd-extended called [wavinfo] that does most of that i think.