tkSnack or other sound tool
Russell E. Owen
no at spam.invalid
Wed Feb 11 14:18:44 EST 2004
I'm not sure exactly what you mean by "can't control the duration...".
If you just want to call s.stop() at some specified time after starting
the sound, then use "after", as in:
def play():
s.play
...
root.after(1000, stop)
If it's something more complicated, please explain.
I'll be curious to see how this discussion goes. I'm using snack to play
simple sound files. On the whole it works, but sometimes I get snaps,
pops and other oddities.
-- Russell
In article <3d06fae9.0402110759.108e5b41 at posting.google.com>,
jmdeschamps at cvm.qc.ca (jmdeschamps) wrote:
>I'm trying to play programmed music by iteratively applying filter
>changes to a playing Sound object.
>
>It almost seem to work but i can't control duration of sounds???
>
>...
>s = Sound()
>
>filt = Filter('generator', 440.0)
>filt.configure(440, 1000, 00.7, "rectangle", 5000)
>
>def play():
> s.play(filter=filt)
> for i in range(100):
> filt.configure(i+440)
>
>def stop():
> s.stop()
>...
More information about the Python-list
mailing list