I have successfully used peaks.js with an AudioContext to generate the peaks dynamically.
I have also successfully installed audiowaveform (v1.2.2) on a Debian 9.
However, when I use audiowaveform to pre-generate the data, the output in peaks.js does not seem right. I have tested with different files, including _TOL_6min_720pdownload.mp3 found in peaks.js's _testdata folder.
Attached are the data for _TOL_6min_720pdownload.mp3 generated with the following command:
audiowaveform -i TOL_6min_720p_download.mp3 -o TOL_6min_720p_download.json
as well as screenshots illustrating the output difference between data from an AudioContext and data from audiowaveform.
I am guessing this is an issue with audiowaveform and not peaks.js.
Any idea where things might be going wrong?
The data files provided in peaks.js's _testdata folder seem to be correctly generated. Do you know which version of audiowaveform was used to generate those files?
Edit:
If I use audiowaveform to generate a png, the output is correct.
audiowaveform -i TOL_6min_720p_download.mp3 -o TOL_6min_720p_download.png --pixels-per-second 5.0 -w 1000 -h 200 gives the following result:
First off, thank you for those great tools.
I have successfully used peaks.js with an AudioContext to generate the peaks dynamically. I have also successfully installed audiowaveform (v1.2.2) on a Debian 9.
However, when I use audiowaveform to pre-generate the data, the output in peaks.js does not seem right. I have tested with different files, including _TOL_6min_720pdownload.mp3 found in peaks.js's _testdata folder.
Attached are the data for _TOL_6min_720pdownload.mp3 generated with the following command:
audiowaveform -i TOL_6min_720p_download.mp3 -o TOL_6min_720p_download.json
as well as screenshots illustrating the output difference between data from an AudioContext and data from audiowaveform.JSON data: TOL_6min_720p_download.zip
Peaks.js with an AudioContext (correct):
Peaks.js with the generated dat file (incorrect):
I am guessing this is an issue with audiowaveform and not peaks.js. Any idea where things might be going wrong? The data files provided in peaks.js's _testdata folder seem to be correctly generated. Do you know which version of audiowaveform was used to generate those files?
Edit: If I use audiowaveform to generate a png, the output is correct.
audiowaveform -i TOL_6min_720p_download.mp3 -o TOL_6min_720p_download.png --pixels-per-second 5.0 -w 1000 -h 200
gives the following result: