How can I visualize sound through BASS.dll in Delphi?
Using ordinary canvas at least for drawing (without any spectrum, etc.)
I want to do something like this (instantaneous distribution of sound by frequency):
Do the Fourier transform to get the frequency spectrum. Perhaps, the means for this is in this very bass.dll
Then get the amplitude of the frequency spectrum as the root of the sum of the squares of the imaginary and real parts
Then add the amplitudes in several frequency bands — usually using a logarithmic frequency scale — for example, from 20 to 40 Hz, from 40 to 80, from 80 to 160, etc.
Print the resulting array in the form of rectangles, the height of which when outputting the level in decibels is proportional to the logarithm of the array element.
Source: https://ru.stackoverflow.com/questions/893178/
All Articles
BASS_ChannelGetDatafor a given audio file . Maybe something will do. - DimaBASS_ChannelGetDatafunction, whichBASS_ChannelGetDatasample channel . I advise you to read this (there is an example of use there). Help the library is powerful. - Dima