Expand description
xil db-profile β peak, average and minimum dBFS per MP3. Port of
XILU010_db_profile.py.
StructsΒ§
ConstantsΒ§
- CHUNK_
MS π - DEFAULT_
PATH π - SILENCE_
FLOOR_ πDB - Below this a chunk counts as silence or dead air and is not a candidate for the quietest-window measurement.
FunctionsΒ§
- command
- The clap definition behind
--help, for man pages. - execute π
- fmt_
fixed π %10.2fon a value that may be infinite β Python prints-inf.- num π
- A silent file profiles as
-inf, whichjson.dumpswrites as the bare token-Infinity;py_floatcarries that through. - pad π
- Pad to
widthby character count (f"{s:<*}"). - profile_
file - Peak, RMS and quietest-500ms-window for one file.
- round2 π
- Pythonβs
round(x, 2): round-half-to-even on the decimal value. - run
- scan_
mp3s π os.walkorder: this directoryβs files sorted, then subdirectories.- walk π