Create waveforms

Discuss and share scripts and script files...
Post Reply
highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Create waveforms

Post 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 126 times
Old version(s):
Create waveforms_v0.2.xys
(2.66 KiB) Downloaded 150 times
Create waveforms_v0.1.xys
(2.48 KiB) Downloaded 134 times
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Create waveforms

Post 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
One of my scripts helped you out? Please donate via Paypal

matv
Posts: 6
Joined: 23 Apr 2024 20:25

Re: Create waveforms

Post 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?

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Create waveforms

Post 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
One of my scripts helped you out? Please donate via Paypal

matv
Posts: 6
Joined: 23 Apr 2024 20:25

Re: Create waveforms

Post by matv »

thank you very much for the help :D

Brano
Posts: 38
Joined: 08 Jul 2024 11:52

Re: Create waveforms

Post 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!

Post Reply