IPB

Welcome Guest ( Log In | Register )

Create waveform images from sound files
bernhold
post Mar 22 2013, 16:12
Post #1





Group: Members
Posts: 41
Joined: 22-March 13
Member No.: 107330



Hello,

I have a large set of similar sound clips. To analyze and document them, I'd like to somehow "convert" each clip into a visual representation of its waveform. Like convert .wav to .bmp, you get the idea. Do you have any suggestions how to achieve it? I can't do it manually because it's just too many files! sad.gif

Many thanks in advance

edit: I found this: http://rg42.org/wiki/sndfile-waveform , which looks exactly like what I want. However, it's kind of linux-ish. It's not for windows, and you have to compile it yourself, it seems. Sadly, I don't have the knowledge to do this.

This post has been edited by bernhold: Mar 22 2013, 16:24
Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 7)
phofman
post Mar 22 2013, 17:11
Post #2





Group: Members
Posts: 261
Joined: 14-February 12
Member No.: 97162



Interesting project, thanks for pointing out.

For linux users: official ubuntu package sndfile-tools (any version) does not contain sndfile-waveform yet. I tried compiling the upstream version https://github.com/erikd/sndfile-tools and hit quite a few errors. However, the original version at http://rg42.org/gitweb/?p=sndfile-tools.git;a=summary works perfectly.

Compilation of course requires the devel packages but the configure nicely lists anything missing, the required dev packages are just "apt-get install ..." away.


CODE
git clone git://gareus.org/sndfile-tools
cd sndfile-tools/
./autogen.sh
make



I really like the tool, produces great images. Just like the spectrogram generator.

This post has been edited by phofman: Mar 22 2013, 17:12
Go to the top of the page
+Quote Post
andrew_berge
post Mar 22 2013, 17:27
Post #3





Group: Members
Posts: 101
Joined: 17-November 09
From: Canada
Member No.: 75012



Hmm... I found:
An online solution, which unfortuantely looks like you'd have to do each track individually. Unless you're able to adapt the code.

This post seems to do it with Python, in case you have any knowledge of that...

Yeah, everything i've found so far requires some knowledge of programming. Do you have any, and if so, which language(s)?
Go to the top of the page
+Quote Post
phofman
post Mar 22 2013, 17:58
Post #4





Group: Members
Posts: 261
Joined: 14-February 12
Member No.: 97162



Or you can install ubuntu 12.04 into virtualbox and compile the sndfile tools. It is just several commands
(apt-getting the required packages plus the compilation I listed). Once the binaries are available, it takes just a simple loop in terminal to generate all the images.
Go to the top of the page
+Quote Post
romor
post Mar 22 2013, 18:01
Post #5





Group: Members
Posts: 649
Joined: 16-January 09
Member No.: 65630



Related: http://www.hydrogenaudio.org/forums/index....showtopic=74161

Windows binary for waveform generator (accepts flac, too):
http://db.tt/E08qJQuZ

Waveforms can be generated in Python in many ways. Some nice example here: https://github.com/endolith/freesound-thumbnailer.git, although audiolab overkill as dependancy


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
bernhold
post Mar 23 2013, 22:17
Post #6





Group: Members
Posts: 41
Joined: 22-March 13
Member No.: 107330



Awesome, thank you romor. I will have a look at it as soon as possible. For now, I found a solution using a waveform to PNG visualizer written in PHP, from here:

http://www.rchu.nl/2011/09/creating-a-wave...image-with-php/

I downloaded PHP and ran the script as follows:

php.exe waveform.php infile.wav outfile.png
Go to the top of the page
+Quote Post
flein1sopp
post Aug 28 2013, 17:48
Post #7





Group: Members
Posts: 1
Joined: 28-August 13
Member No.: 109847



QUOTE (romor @ Mar 22 2013, 18:01) *
Windows binary for waveform generator (accepts flac, too):
http://db.tt/E08qJQuZ

I have searched for the same, but it's hard to find good software for the task. Therefore I have developed a program (based on the work in the quote) that supports drag and drop on the programs icon + you can drop multiple files simultaneously. You can download the program here.

This worked for my task and I hope it will work for you/you allready have managed to find another way.
(And yes, I did actually register me on this site just to trying to help you. smile.gif ) Greetings from Norway!
Go to the top of the page
+Quote Post
icee
post Sep 1 2013, 13:41
Post #8





Group: Members
Posts: 4
Joined: 20-August 13
Member No.: 109712



I've compiled the waveform and spectrogram binaries from sndfile-tools under windows for using with foobar2000.
you can get them here
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th April 2014 - 12:25