Forums » General Discussion Search

Get timbre? New Reply

Author Post
Posts: 10
Registered: Jul 27, 2009

Through various places I have seen references to the echonest calculating timbre, but I don't see that in the current API. What gives?

Posts: 10
Registered: Jul 27, 2009

EDIT: see here to see a lot of variables that I don't see in the current API http://www.cookinrelaxin.com/2008/04/processing-library-for-echonest.html

Posts: 259
Registered: Sep 08, 2008

awegawef:

The timbre coefficients are part of each segment. Look at the result in the get_segment call and you'll see an array of timbre coefficents.

Hope this helps.

Paul

Posts: 10
Registered: Jul 27, 2009

Thanks for the prompt reply, plamere. I'll go back and check it out.

Posts: 10
Registered: Jul 27, 2009

Ok, I'm sorry, but I don't follow. When I run audiofile.sections, I get a list of AudioQuantum instances similar to this: AudioQuantum(kind='segment', start=0.000000, duration=0.148030) Could you specify how I can get the timbre coefficients?

Posts: 20
Registered: Sep 05, 2008

You're asking for sections, you want segments-- different things. Try audiofile.segments .

Posts: 10
Registered: Jul 27, 2009

Sorry, I meant to type audiofile.segments. I get a list of AudioQuantum instances like above.

Posts: 20
Registered: Sep 05, 2008

Awegawef-- are you using pyechonest? I do

>>> audiofile = pyechonest.track.upload("filename.mp3")
>>> audiofile.segments[1]["timbre"]

Reply to this Thread

You must log in to post a reply.