TestAudioWaveform is a test application for generating a waveform image from a particular audio file
- mkdir ../build
- cd ../build
- cmake ../testaudiowaveform
- make -j2
- wget https://ia600402.us.archive.org/29/items/MLKDream/MLKDream_64kb.mp3
- ./TestAudioWaveform
- Check the result in 'result.png'
- We need a waveform like described in http://manual.audacityteam.org/man/audacity_waveform.html
- That is peaks + RMS
- The waveform is generated in
KisWaveformGenertor
on any state change and cache in an internal structure. The result is returned byfetchWaveformImage()
call. KisWaveformGenerator
handles any kind of wave data format, like int, float and etc.- The waveform is normalized by the maximum value of the provided waveform