What a hi-res file was made from
A hi-res file can hold sound far above what a CD can. Here is one that does, and the same sound made from lesser copies, each saved again as hi-res. Move the slider down the ladder.
The pictures could not be loaded. Please try again later.
How to read it
Time runs left to right. Pitch runs from the bass at the bottom to 96 kHz at the top. A CD cannot go above 22 kHz, the dotted line; a 192 kHz file has room for more than four times that. The brighter the colour, the louder that pitch is at that moment.
A file is only as good as what it was made from. Saving a CD copy or an MP3 as a 192 kHz, 24-bit file makes it bigger and brings nothing back: the top stays black.
The black top says the file holds less than its label, and where the black starts says how much less. It does not say everything: the CD copy and the AAC copy look the same here, and only one of them went through a lossy encoder.
This test signal is lit all the way up, which no real recording is. Real instruments fade above 20 kHz, and a true hi-res recording can be dark at the top for honest reasons. A dark top is a question, not an answer.
What was used
The test signal is 30 seconds made for this page at 192 kHz, 24-bit: kick, clap, hi-hats, crash, a saw-wave chord pad, bass, castanet clicks and a sine sweeping up to 92 kHz. Each lesser copy was made from it with the SoX resampler (libsoxr), and each was saved again at 192 kHz, 24-bit the same way. That resampler leaves the top black; a cruder one can leave a faint mirror image of the music up there, which is still not the sound that was lost. MP3: LAME 3.100, constant bitrate. AAC: Apple’s encoder through qaac 2.88, AAC-LC at constant bitrate. Every file was drawn the same way: a 16,384-point spectrogram of the left and right channels averaged, on the original’s colour scale.
See also
What an encoder takes away: a lossless recording after MP3, AAC, Vorbis and Opus at each bitrate.