In connection with the preparation of a full rare discography of one music group known in narrow circles, exclusive not only for Russian, but for the world Internet in general, it became necessary to create high-quality frequency spectra of audio files. Several well-known tools were tried for such purposes, but they were either unnecessarily cumbersome for such a procedure, or did not have the necessary settings for this.
As a result, quite unexpectedly, a narrowly known utility for working with SoX audio files (
http://sox.sourceforge.net/ ) came across to me.

She was long forgotten by me, but as it turned out, unjustifiably. This is a console utility that has great opportunities to work with sound and allows you to perform with it almost any operation. A kind of Swiss army knife for audiophiles. The
official site has a very impressive list of its capabilities. As already mentioned, the console utility, and therefore supported by almost any device. Even in the repositories of my geek nix Nokia N900, I found a package for working with it (!). Some supporters are on Androyd. This is already very interesting! But the most important thing is that an excellent
spectrogram tool was found in it, the main purpose of which is to create graphic spectra of audio files in PNG format. Despite the very spartan interface, or rather its complete absence, it has a number of settings that can be specified as keys when performing this action. Fine! Now the only thing that remains is to write a small bat-file for it that would perform the procedure of creating audio spectra with ease for the user. This process did not cause any special problems, but suddenly a difficulty arose: by default, the tool only works with WAV. What a twist! We'll have to build SoX with libmad libraries (for FLAC) and libmp3lame (for mp3). Compiling is relatively simple, but its description is beyond the scope of this article. Perhaps in the future I will describe this process. All is ready! Branch created on Gitkhab from work. All changes and new versions will appear only there. While the utility only supports mp3 and FLAC, in the future may add a monkey (APE) ...
Examples of the spectra obtained:')
FLAC:
mp3:
Small installation instructions:1) Download the current version of the SoX package here:
http://sourceforge.net/projects/sox/files/latest/download and install.
2) Download the current version of SoX Spectrum here:
https://github.com/ointeractive-russia/sox-spectrum and unpack it into the folder with the installed SoX (by default
C: \ Program Files \ sox-14-4-1 ).
Installation completed!Now simply move the desired music file to the “SoX Spectrum” shortcut on the desktop. The utility itself will start on the command line and perform the necessary actions. A picture with a spectrum in PNG format will appear in the folder with this audio file.
PS By default, the utility creates spectra in the normal color mode, but it is also possible to activate the enhanced color mode, which will allow obtaining clearer and more visible spectra. To do this, open the sox-spectrum.bat file with any text editor and in the "Settings" section, correct the value of the HIGHT_COLOR variable to 1.