[Tkinter-discuss] Python with Snack
chao.albert at gmail.com
Fri Dec 4 07:42:48 CET 2009
Hi everyone. Thanks for your responses!
So I did manage to get Snack installed. It turned out to be a very simple
process (arg...). As Russell points out, the binaries stopped at python
2.3. However, as suggested by Michael, I was able to copy the snacklib into
the Tcl folder. I then copied the tkSnack.py into the Lib folder.
Problem is, as Russell points out, Snack is out of date. I was trying to
use it to do audio event analysis. I wanted to use sound to detect when
heaters in a building would turn on. With the help of Snack (the Wavesurfer
extension of snack), I have identified the frequencies produced when the
heaters turn on. However, there seems to be no way of getting the actual
values of frequencies (at least, none that I could figure out)!
What I need still is a way to tell the computer: Listen (as computers can
do this non-stop) until you hear the heaters turn on. At this moment,
record the time and date.
I will take a look at pygame.
Thanks again for everyone's responses!
Russell E. Owen-4 wrote:
> In article <4B17DF49.4030906 at codebykevin.com>,
> Kevin Walzer <kw at codebykevin.com> wrote:
>> On 12/3/09 10:40 AM, Michael Lange wrote:
>> > I don't know what's going wrong here, but I think it should be fine to
>> > simply copy the tkSnack module into Python's site-packages folder.
>> Will distutils/setuptools actually build the binary Snack library? It's
>> a Tcl/Tk library, not a Python library. tkSnack.py is just a wrapper.
>> The OP is probably better off downloading the Windows binary, installing
>> it in the appropriate directory (wherever the other Tcl/Tk libs are on
>> his system), and then trying to install tkSnack.py.
> I agree. I am pretty sure distutils will not build the snack library.
> I used to install it on Windows by downloading the binary release for
> windows with python (but it only goes up to Python 2.3). Then follow the
> instructions on the web site: "Installation (with Python)".
> But...I recommend not using snack at all. It appears to have been
> I used to use it, but switched to pygame. I chose pygame because (like
> snack, except snack is no longer maintained):
> - It is fully cross-platform (Mac, unix and windows)
> - It plays sounds asynchronously
> - It is released and well maintained
> - It is easy to use and easy to install
> Note that pygame does much more than play sounds. But you can ignore the
> extra capabilities if you don't need them.
> There are a number of sound packages, but I found none that were
> cross-platform, fully released (version 1.0 or later) and still actively
> -- Russell
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
View this message in context: http://old.nabble.com/Python-with-Snack-tp26620448p26635787.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
More information about the Tkinter-discuss