up
Add song metadata to personal database on echoprint server
Mood Based Catalog Playlists
Hi.
Recently I've been using your static playlist api which has been working great, your machine really gets it right. However I've noticed the API lacks the ability to generate a playlist with a specific mood if it has to come from a specific catalog. This feature would be very helpful in the cases where the end-user has a fixed collection of songs (i.e. iPod) and is looking for a playlist for their mood.
Cheers, tSN
News parsing incomplete
Minor issue with some artist/news results: the summary of certain news sites (music-news.com?) comes with a "printable version" pre-pended. While this doesn't hurt, it's clearly a left over from the html parsing. Eg. in the following results
http://developer.echonest.com/api/v4/artist/news?api_key=xxx&id=AR7J9AP1187FB5BD64&format=json&high_relevance=true
I would get
summary: "Printable version Adele wants to dedicate her ..."
News parsing incomplete
thanks for the report, mherger. -- Paul
Mood Based Catalog Playlists
theSmallNothing - we may be able to do what you want, could you give a bit more detail of what you want to do?
Get analyzer info from not known song
dorien - typical analysis time is about 20 seconds. -- Paul
Mood Based Catalog Playlists
Ok, what I want to do is to be able to create a catalog/taste profile for a user with a specific collection of songs, import them. Then create a static playlist from that collection with only songs in that catalog based on their mood and possibly a seed artist. I might be missing something but when I add the 'mood' parameter on to a playlist/static api call with type 'catalog' it responds with error 5: Invalid Parameter.
Announcing Echowrap, a comprehensive ruby wrapper for Echonest
Echowrap is a Ruby gem that supports 100% of the v4 Echonest API. I put a lot of work into building a nice gem for Ruby that will hopefully help support more audio apps in the Ruby community. This wrapper was built using the Twitter api gem as a reference, so instead of dynamically calling the API each Echonest API method is coded and documented. Also instead of returning responses as data hashes, I created objects which makes it easier and nice to access the data instead of traversing hash trees. Finally, it uses Faraday under the covers so you can use other http client adapters (Excon, Typhoeus, Patron, EventMachine).
Have a look! http://echowrap.com
'Analyze' method from track ID
Hi all (most probably Paul).
Is the 'analyze' method (http://developer.echonest.com/docs/v4/_static/AnalyzeDocumentation.pdf) still available from a track ID query through the API? I'd like to get information such as individual beat times and timbre-like features on the segment level, but I only have access to metadata, not audio so I can't use the remix API.
If this method is available, it seems to have disappeared from the documentation. What is the relevant API call?
Thanks in advance,
Matt
'Analyze' method from track ID
Hi Matt, if you are looking for analysis given a song title and artist name, use the song/search method with the audio_summary bucket. The audio_summary will return a link to the full analysis.
If you have an existing track ID, use track/profile, again with audio_summary.
track/analyze was meant to reanalyze an existing uploaded track, not retrieve the analysis. It had a confusing method name.
Retrieve image for a song using Java library
the codes are working well for me, i also like to share some of my finding on retrieving the image c#. hope it is helpful for you.
'Analyze' method from track ID
Hi Brian.
Works as expected, thanks!
Matt
Search artists by their hometown or current city?
Hi. Since you are constantly adding new features, I am asking again (hopefully it won't hurt ;) if it's possible to get the total number of artists per city. Since the maximum amount of artist that can be obtained with the artist methods is 1000, I cannot calculate such number for cities with more than 1000 artists. And in any case, even if the 1000 limit was not set, I'm not willing to download all your database to obtain the numbers.
I just would like to know if this has changed.
Thanks in advance.
JP
Spotify or Rdio Tracks with Remix API
I've been playing around with the Remix API, very cool stuff. It is possible to use Spotify or Rdio tracks as audio input to the API?
Get analyzer info from not known song
Thanks. That means I am doing something wrong :)
To check the status, I guess I should not be using http://developer.echonest.com/api/v4/track/upload then.
The analyzer url, does not display a status.
Is there another url I should use to check the status?
Thanks so much!
Get analyzer info from not known song
dorien - track/upload gives you a track ID. Use that track ID in track/profile to see the status.
Spotify or Rdio Tracks with Remix API
Not at the moment, no. To use the Python API, you need a local copy of the audio file.
It is possible to point the JavaScript version to a SoundCloud URL, but doing so is not well supported.
Get analyzer info from not known song
Almost there. Got an "unknown error":
array(1) { ["response"]=> array(1) { ["status"]=> array(3) { ["version"]=> string(3) "4.2" ["code"]=> int(-1) ["message"]=> string(13) "Unknown Error" } } }
This works fine: http://developer.echonest.com/api/v4/track/profile?api_key=mykey&format=json&id=TRFDRQO140E432F7DB
But the php query seems off:
$id = TRFDRQO140E432F7DB;
$post = array(
"id"=>$id,
"api_key"=>"myapi",
"format"=>"json"
// "wait"=>"true"
// "bucket"=>"audio_summary",
//
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, "http://developer.echonest.com/api/v4/track/profile");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
$result=json_decode($response,true);
var_dump($result);
Am I missing a sillly thing in this code?
ps: _ is an underscore, it didn't come through well.
Get analyzer info from not known song
Fixed. Thanks for all the help! Figured posting the solution might help somebody else.
$url='http://developer.echonest.com/api/v4/track/profile?api_key=myapi&format=json&id='.$id;
$post = array(
);
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$response = curl_exec($ch);
$result=json_decode($response,true);
var_dump($result);
Looking for a small subset of tracks in SQL
Hello, first of all I would like to thank you for the documentation and release of your API it is great. I have been using your API to make a little program in PHP that uses the analyzer tools to retrieve pitch information and generate new parameters based on my musical theory knowledge to find new patterns within the information. I can now generate a few new parameters from each track and wanted to apply it for data mining. I now need to gather sufficient track information to try out some data mining. I would like to state that as of now I have not saved any information from any track onto a database of my own, concerned that this might be a violation of your policies. I found out about the Million Song Dataset that used your track information and downloaded that to try and implement my parameters but it is in HDF5 format and seems like to manipulate it my whole project needs to be moved to Python. I was wondering whether someone would be kind enough to direct me to a link if someone knows about one of a relational database file (e.g., SQL, CSV. A randomly selected subset of tracks like the 10,000 on the MSD would be more than enough for now)?
Thank you for your time and any help or advice would be greatly appreciated. Also, if it is not against policies to gather a collection of, for example, a thousand track information and add my new parameters to them in an SQL format on my local computer then please let me know. In the meantime I will restrain myself from doing anything of the sort.
Regards
X.A.