<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">&lt;<a href="mailto:srilyk@gmail.com">srilyk@gmail.com</a>&gt;</span><br>
Date: Fri, Sep 5, 2008 at 11:54 AM<br>Subject: Re: [Tutor] &quot;Analyzing&quot; music with Python<br>To: Timo &lt;<a href="mailto:timovwb@gmail.com">timovwb@gmail.com</a>&gt;<br><br><br><div dir="ltr"><div class="Ih2E3d">
On Fri, Sep 5, 2008 at 11:26 AM, Timo <span dir="ltr">&lt;<a href="mailto:timovwb@gmail.com" target="_blank">timovwb@gmail.com</a>&gt;</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&#39;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&#39;s not terribly different, you might just have to hack their code to something else. So instead of:<br><br>if pitch == csharp:<br>&nbsp;&nbsp;&nbsp; drawsomething(blue)<br><br>you would modify it to:<br>
<br>
if pitch == csharp:<br>&nbsp;&nbsp;&nbsp; runmyprogram(now)<br><br>or something to that effect. I&#39;m not sure how they&#39;ve implemented their visualization, but they&#39;re going to have some type of notification. Perhaps it&#39;s continuous, so you create a threshold.<br>

<br>HTH,<br>Wayne<br>&nbsp;</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 &lt;<a href="mailto:timovwb@gmail.com" target="_blank">timovwb@gmail.com</a> &lt;mailto:<a href="mailto:timovwb@gmail.com" target="_blank">timovwb@gmail.com</a>&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp;I&#39;m sorry if I don&#39;t use correct names etc.. What I want is to<br>
 &nbsp; &nbsp;analyze a music file that is playing. Not sure if analyze is the<br>
 &nbsp; &nbsp;good word for it. I just want to get info about the song in<br>
 &nbsp; &nbsp;realtime when it is playing. Info about the current pitch and so.<br>
 &nbsp; &nbsp;Let&#39;s say like most visualisation plugins in music players. The<br>
 &nbsp; &nbsp;visualisations move on the music. I don&#39;t want to write such a<br>
 &nbsp; &nbsp;plugin, but I want to get info to do something similar.<br>
<br>
 &nbsp; &nbsp;Damn, hope this makes sense.<br>
<br>
<br>
I&#39;m not sure what the library would be... you probably don&#39;t need access to the music file, but the soundcard (that&#39;s my guess anyway).<br>
<br>
this link (google: python sound visualization) may be a good place to start<br>
&nbsp;<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&#39;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>