[Tutor] Fwd: "Analyzing" music with Python
W W
srilyk at gmail.com
Fri Sep 5 18:56:02 CEST 2008
Forgot to reply to all...
---------- Forwarded message ----------
From: W W <srilyk at gmail.com>
Date: Fri, Sep 5, 2008 at 11:54 AM
Subject: Re: [Tutor] "Analyzing" music with Python
To: Timo <timovwb at gmail.com>
On Fri, Sep 5, 2008 at 11:26 AM, Timo <timovwb at gmail.com> wrote:
> Thanks for the link, found some of those things already, but not yet a
> solution.
>
> 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.
>
That's not terribly different, you might just have to hack their code to
something else. So instead of:
if pitch == csharp:
drawsomething(blue)
you would modify it to:
if pitch == csharp:
runmyprogram(now)
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.
HTH,
Wayne
>
>
>
> W W schreef:
>
> On Fri, Sep 5, 2008 at 8:34 AM, Timo <timovwb at gmail.com <mailto:
>> timovwb at gmail.com>> wrote:
>>
>> I'm sorry if I don't use correct names etc.. What I want is to
>> analyze a music file that is playing. Not sure if analyze is the
>> good word for it. I just want to get info about the song in
>> realtime when it is playing. Info about the current pitch and so.
>> Let's say like most visualisation plugins in music players. The
>> visualisations move on the music. I don't want to write such a
>> plugin, but I want to get info to do something similar.
>>
>> Damn, hope this makes sense.
>>
>>
>> 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).
>>
>> this link (google: python sound visualization) may be a good place to
>> start
>> http://wiki.python.org/moin/Audio/
>>
>> HTH,
>> Wayne
>>
>
>
--
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
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080905/7885c40f/attachment-0001.htm>
More information about the Tutor
mailing list