Page 1 of 1

Create waveforms

Posted: 14 Feb 2023 22:51
by highend
Because of the new image type in columns (since v24.00.0708) I've decided to write a short script for it...

You should use the latest beta version (not necessarily v24.00.0708)...

It takes all audio files from the current folder and creates a waveform (same file name, different extension) for them.

Configure the script as necessary (path to ffmpeg, extension, size, width and color)...

Current version:
Create waveforms_v0.3.xys
(2.69 KiB) Downloaded 134 times
Old version(s):
Create waveforms_v0.2.xys
(2.66 KiB) Downloaded 162 times
Create waveforms_v0.1.xys
(2.48 KiB) Downloaded 143 times

Re: Create waveforms

Posted: 15 Feb 2023 09:28
by highend
Changelog

Code: Select all

v0.2
    Added scaling factor
    Default = 2, to turn it off, set it to 0

v0.1
    Initial release

Re: Create waveforms

Posted: 25 Jun 2024 06:40
by matv
Hi highend thank you for the script
something I have noticed is that with files with diacritics in their names the command fails to create the images.
e.g. Día, Más...
however, using runret with codepage 65001 the script works but blocks xy while its executed
Any idea how to work around it?

Re: Create waveforms

Posted: 25 Jun 2024 07:14
by highend
By changing the .bat file itself (replacing the original $batContent line with):

Code: Select all

$batContent = "@ECHO OFF & COLOR 0F & CLS" . <crlf> . "@CHCP 65001 >NUL 2>NUL" . <crlf 2>;
In other words: Do not use runret here...

v0.3 contains the fix as well

Re: Create waveforms

Posted: 25 Jun 2024 19:06
by matv
thank you very much for the help :D

Re: Create waveforms

Posted: 18 Jul 2024 19:11
by Brano
Me I would set

Code: Select all

$scale = "log";
Since this is how the waveforms are most often used or most useful from my experience. (I am an audio pro)

And this guy

Code: Select all

$color    = trim($color, "#", "L");
removes all the digits.

Other than that a great script, thanks!