Hi Blender enthusiasts.
I've been trying to understand how the ffmpeg shoswpectrumpic function works. It allows you to generate a spectrogram from an audio file using either a linear, or logarithmic scale for the frequency.
I've generated a tone getting higher at a constant rate, and generated 2 spectrograms from it :
- one using a linear scale for the frequency
- and another with a log scale
I want to understand what kind of operation ffmpeg applies when using the "log" option.
My idea is to distort the Y axis on the UVmap so I can 'morph' the linear image to the log image. But I don't know what operation I should apply to go from linear to log ?
If you have any idea of how to approach this problem please share, I've been at it for hours...
edit : ok I've found an operation that seems to work, but I don't understand why...
The operation goes like this :
y = 10^(-3*(1-y))
Anybody knows why this particular operation works ?