<div dir="ltr">Forgot to reply to all...<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">W W</b> <span dir="ltr"><<a href="mailto:srilyk@gmail.com">srilyk@gmail.com</a>></span><br>
Date: Fri, Sep 5, 2008 at 11:54 AM<br>Subject: Re: [Tutor] "Analyzing" music with Python<br>To: Timo <<a href="mailto:timovwb@gmail.com">timovwb@gmail.com</a>><br><br><br><div dir="ltr"><div class="Ih2E3d">
On Fri, Sep 5, 2008 at 11:26 AM, Timo <span dir="ltr"><<a href="mailto:timovwb@gmail.com" target="_blank">timovwb@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the link, found some of those things already, but not yet a solution.<br>
<br>
I'll try to make myself a bit clearer. What I want is to execute commands when the music changes. So actually a sort of visualization, but instead of drawing weird things on the screen, I want to execute commands.<br>
</blockquote></div><div><br>That's not terribly different, you might just have to hack their code to something else. So instead of:<br><br>if pitch == csharp:<br> drawsomething(blue)<br><br>you would modify it to:<br>
<br>
if pitch == csharp:<br> runmyprogram(now)<br><br>or something to that effect. I'm not sure how they've implemented their visualization, but they're going to have some type of notification. Perhaps it's continuous, so you create a threshold.<br>
<br>HTH,<br>Wayne<br> </div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
<br>
W W schreef:<div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Sep 5, 2008 at 8:34 AM, Timo <<a href="mailto:timovwb@gmail.com" target="_blank">timovwb@gmail.com</a> <mailto:<a href="mailto:timovwb@gmail.com" target="_blank">timovwb@gmail.com</a>>> wrote:<br>
<br>
I'm sorry if I don't use correct names etc.. What I want is to<br>
analyze a music file that is playing. Not sure if analyze is the<br>
good word for it. I just want to get info about the song in<br>
realtime when it is playing. Info about the current pitch and so.<br>
Let's say like most visualisation plugins in music players. The<br>
visualisations move on the music. I don't want to write such a<br>
plugin, but I want to get info to do something similar.<br>
<br>
Damn, hope this makes sense.<br>
<br>
<br>
I'm not sure what the library would be... you probably don't need access to the music file, but the soundcard (that's my guess anyway).<br>
<br>
this link (google: python sound visualization) may be a good place to start<br>
<a href="http://wiki.python.org/moin/Audio/" target="_blank">http://wiki.python.org/moin/Audio/</a><br>
<br>
HTH,<br>
Wayne<br>
</blockquote>
<br>
</div></div></blockquote></div></div><br><br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn't. - Primo Levi<br>
</div>
</div><br><br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn't. - Primo Levi<br>
</div>