[linux-audio-dev] Waveform

Chris Cannam cannam at all-day-breakfast.com
Mon May 9 17:21:19 EDT 2005


On Monday 09 May 2005 21:19, Fisher, Michael R wrote:
> Hi, I'm extremely new to audio programming.  I have a million
> questions, but the one burning my brain now is how do I get a program
> written with the qt widget library to display an audio waveform. 

You could look at the trivial_sampler example plugin in the DSSI plugin 
API distribution.  That's a pretty simple bit of code that does (IMHO) 
tolerable waveforms in a Qt window.  The only problem is it's not 
standalone so you'd need the plugin host as well.

  http://dssi.sf.net/

Download it and have a look at examples/trivial_sampler_qt_gui.cpp.
It's the plugin in the front of the screenshot here:

  http://dssi.sourceforge.net/plong.png

The black in the waveforms shows peaks, the grey averages.

And trivial_sampler is public domain, so it's legal to do anything you 
want with the code.  It's even legal to pretend you wrote it.  Not that 
anyone will believe you for long, after this discussion.


Chris


More information about the linux-audio-dev mailing list