[Tkinter-discuss] Drawing waveform on a Canvas

Mohammad Tayseer m_tayseer82 at yahoo.com
Thu Jan 19 09:04:32 CET 2006

> Michael Lange <klappnase at web.de> wrote:
 > On Wed, 18 Jan 2006 11:41:26 -0800 (PST)
> Mohammad Tayseer  wrote:
>> You have two problems
>>1. Reading a sound file
>> 2. drawing the waveform
>> I solved the 2nd problem only. This is a code that draws a random waveform.
>Thanks Mohammad,
> you are right, the line item looks very good.
> The problem is that I have a real large number of coords here, so my 30-minute > test file
> at a resolution of 100 pixels / second takes more than 20 seconds to draw and > then it sucks up more
> than 20% of my computer's memory (says top).
> I haven't tried zooming yet...
> I think using an image may be a better chance, so I tried to use the canvas to > create a postscript
> that I could then convert into a gif, however the canvas wrote a 10 MB ps 
> file that made convert crash
> when trying to open it.
> Any ideas?
> Michael

What is the relationship you want to draw? frequency vs. time or what?
 frequency/time requires only 1 chart, but other relationships requires more than one, which may suggest using another widget.

Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20060119/5fa90576/attachment.htm 

More information about the Tkinter-discuss mailing list