|
Posts: 10
Registered: Jul 27, 2009
|
Posted: 2009-08-14 17:42:13
|
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
|
Posted: 2009-08-14 17:44:09
|
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
|
Posted: 2009-08-14 17:44:32
|
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
|
Posted: 2009-08-14 17:46:50
|
Thanks for the prompt reply, plamere. I'll go back and check it out.
|
|
|
Posts: 10
Registered: Jul 27, 2009
|
Posted: 2009-08-14 17:55:55
|
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
|
Posted: 2009-08-14 17:58:20
|
You're asking for sections, you want segments-- different things. Try audiofile.segments .
|
|
|
Posts: 10
Registered: Jul 27, 2009
|
Posted: 2009-08-14 18:06:59
|
Sorry, I meant to type audiofile.segments. I get a list of AudioQuantum instances like above.
|
|
|
Posts: 20
Registered: Sep 05, 2008
|
Posted: 2009-08-14 18:11:03
|
Awegawef-- are you using pyechonest? I do
>>> audiofile = pyechonest.track.upload("filename.mp3")
>>> audiofile.segments[1]["timbre"]
|
|