Forgot to reply to all...

---------- Forwarded message ----------
From: W W <[EMAIL PROTECTED]>
Date: Fri, Sep 5, 2008 at 11:54 AM
Subject: Re: [Tutor] "Analyzing" music with Python
To: Timo <[EMAIL PROTECTED]>


On Fri, Sep 5, 2008 at 11:26 AM, Timo <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED] <mailto:
>> [EMAIL PROTECTED]>> 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
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to