Re: [linux-audio-dev] Algorithm for displaying waveforms

2005-06-06 Thread Them
Richard Spindler wrote: On 6/6/05, Them <[EMAIL PROTECTED]> wrote: Ok, thanks, I'll take a look. I'm actually doing this in FLTK, but may be able to create a custom widget based on the one for Specimen. Are you aware of this Waveform viewer widget in FLTK? http://sp

Re: [linux-audio-dev] Algorithm for displaying waveforms

2005-06-06 Thread Them
Olivier Guilyardi wrote: For a small application I am developing, I need to display waveforms (read-only) from audio data loaded into my application using libsndfile. I personally recommend you to look at the Specimen source code, at http://www.gazuga.net The file src/gui/waveform.c is an

Re: [linux-audio-dev] Algorithm for displaying waveforms

2005-06-06 Thread Them
vanDongen/Gilcher wrote: As I recently found out, this can be very messy :) The basic algorithm is this: Each horizontal pixel represents n samples. Usually n is pretty big. Of those n samples you take the min and the max, and then you draw a vertical line between them. Obviously this has to

[linux-audio-dev] Algorithm for displaying waveforms

2005-06-05 Thread Them
For a small application I am developing, I need to display waveforms (read-only) from audio data loaded into my application using libsndfile. My question is about displaying a waveform in a GUI window -- I have searched around the net looking for general algorithms but haven't seen anything that