A tiny tool to display the volume (loudness) curve of an .mp3
music file and count the number of volume peaks in it. Written in four different languages just for fun (C99, Rust, Go, Python).
Available on Linux or OS X platforms.
First, clone this git repo:
$ git clone [email protected]:josehu07/volume-peak-counter.git
$ cd volume-peak-counter/
Then, prepare the prerequisites:
loudness-scanner
is a git submodule byjiixyj
(repo) and should be pulled automatically. Follow its installation guide to build aloudness
binary atloudness-scaner/build/loudness
. Please make sure one of its input plugins is working.gnuplot_i
is a gnuplot C interface by Devillard (page). This projects contains a slightly modified version ofgnuplot_i
which adds anoptions
argument tognuplot_plot_xy
. No pre-building is required.
Finally, build the counter by:
$ make counter-[c|rs|go|py] # Choose whatever language version you prefer.
Run from command line:
$ ./counter MP3_FILENAME
This tool is licensed under the GNU GPL license. See COPYING file for details.