[Tkinter-discuss] Drawing waveform on a Canvas
Mohammad Tayseer
m_tayseer82 at yahoo.com
Thu Jan 19 09:05:20 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
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20060119/c7a1b02d/attachment-0001.html
More information about the Tkinter-discuss
mailing list