{"id":18026,"date":"2015-01-08T20:31:30","date_gmt":"2015-01-09T01:31:30","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=18026"},"modified":"2015-01-10T02:59:15","modified_gmt":"2015-01-10T07:59:15","slug":"uploading-tracks-for-echonest-analysis","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=18026","title":{"rendered":"Uploading tracks for Echonest analysis"},"content":{"rendered":"<p class=\"lead\">Get track analysis data for your music using the Echonest API.<\/p>\n<p>The track analysis includes summary information about a track including tempo, key signature, time signature mode, danceability, loudness, liveness, speechinesss, acousticness and energy along with detailed information about the song structure (sections) beat structure (bars, beats tatums) and detailed info about timbre, pitch and loudness envelope (segment).<\/p>\n<p>track API documentation:\u00a0<a href=\"http:\/\/developer.echonest.com\/docs\/v4\/track.html\">http:\/\/developer.echonest.com\/docs\/v4\/track.html<\/a><\/p>\n<p>Its a two (or three) step process. Here&#8217;s an example of how to upload your track and get an audio summary, using curl from the command line in Mac OS. Note, you will need to register with Echonest to get a developer API key here:\u00a0<a href=\"http:\/\/developer.echonest.com\/raw_tutorials\/register.html\">http:\/\/developer.echonest.com\/raw_tutorials\/register.html<\/a><\/p>\n<h4>upload<\/h4>\n<p>Note that the path to the filename needs to be complete or relative to the working directory.\u00a0Also, in this example there was no metadata identifying the title of the song. You may want to change this before uploading. Replace the API key with your key.<\/p>\n<div class=\"panel\">\n<p>curl -F &#8220;api_key=TV2C30KWEJDKVIT9P&#8221; -F &#8220;filetype=mp3&#8221; -F &#8220;track=@\/Users\/tkzic\/internetsensors\/echo-nest\/bowlingnight.mp3&#8221; &#8220;http:\/\/developer.echonest.com\/api\/v4\/track\/upload&#8221;<\/p>\n<\/div>\n<p>Here is the response returned:<\/p>\n<div class=\"panel\">\n<p>{&#8220;response&#8221;: {&#8220;status&#8221;: {&#8220;version&#8221;: &#8220;4.2&#8221;, &#8220;code&#8221;: 0, &#8220;message&#8221;: &#8220;Success&#8221;}, &#8220;track&#8221;: {&#8220;status&#8221;: &#8220;pending&#8221;, &#8220;artist&#8221;: &#8220;Tom Zicarelli&#8221;, &#8220;title&#8221;: &#8220;&#8221;, &#8220;release&#8221;: &#8220;&#8221;, &#8220;audio_md5&#8221;: &#8220;7edc05a505c4aa4b8ff87ba40b8d7624&#8221;, &#8220;bitrate&#8221;: 128, &#8220;id&#8221;: &#8220;TRLFXWY14ACC02F24C&#8221;, &#8220;samplerate&#8221;: 44100, &#8220;md5&#8221;: &#8220;78ccac72a2b6c1aed1c8e059983ce7c7&#8221;}}}<\/p>\n<\/div>\n<h4>track profile<\/h4>\n<p>Here&#8217;s the query to get the analysis &#8211; using the ID returned by the previous call.\u00a0\u00a0Replace the API key with your key.<\/p>\n<div class=\"panel\">\n<p>curl &#8220;http:\/\/developer.echonest.com\/api\/v4\/track\/profile?api_key=TV2C30KYGHTUVIT9P&amp;format=json&amp;id=TRLFXWY14ACC02F24C&amp;bucket=audio_summary&#8221;<\/p>\n<\/div>\n<p>Here is the response &#8211; which also contains a URL that you can use to get more detailed segment based acoustic analysis of the track.<\/p>\n<div class=\"panel\">\n<p>{<\/p>\n<p>&#8220;response&#8221;: { &#8220;status&#8221;: { &#8220;code&#8221;: 0, &#8220;message&#8221;: &#8220;Success&#8221;, &#8220;version&#8221;: &#8220;4.2&#8221; }, &#8220;track&#8221;: { &#8220;analyzer_version&#8221;: &#8220;3.2.2&#8221;, &#8220;artist&#8221;: &#8220;Tom Zicarelli&#8221;, &#8220;audio_md5&#8221;: &#8220;7edc05a505c4aa4b8ff87ba40b8d7624&#8221;, &#8220;audio_summary&#8221;: { &#8220;acousticness&#8221;: 0.64550727753299, &#8220;analysis_url&#8221;: &#8220;http:\/\/echonest-analysis.s3.amazonaws.com\/TR\/TRLFXWY14ACC02F24C\/3\/full.json?AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ&amp;Expires=1420763215&amp;Signature=OLqYwvuzVmAqp1xLTi5x4CsYJuE%3D&#8221;, &#8220;danceability&#8221;: 0.5680872294350238, &#8220;duration&#8221;: 245.91673, &#8220;energy&#8221;: 0.19974462311717034, &#8220;instrumentalness&#8221;: 0.8089125726216321, &#8220;key&#8221;: 11, &#8220;liveness&#8221;: 0.10906007889455183, &#8220;loudness&#8221;: -25.331, &#8220;mode&#8221;: 1, &#8220;speechiness&#8221;: 0.03294587631927559, &#8220;tempo&#8221;: 93.689, &#8220;time_signature&#8221;: 4, &#8220;valence&#8221;: 0.43565861274829504 }, &#8220;bitrate&#8221;: 128, &#8220;id&#8221;: &#8220;TRLFXWY14ACC02F24C&#8221;, &#8220;md5&#8221;: &#8220;78ccac72a2b6c1aed1c8e059983ce7c7&#8221;, &#8220;samplerate&#8221;: 44100, &#8220;status&#8221;: &#8220;complete&#8221; } } }<\/p>\n<\/div>\n<h3>analysis<\/h3>\n<p>Use the analysis_url returned by the previous request. Note that it expires a few minutes after the request. But you can always re-run the audio_profile request to get a new analysis_url<\/p>\n<div class=\"panel\">\n<p>curl\u00a0&#8220;http:\/\/echonest-analysis.s3.amazonaws.com\/TR\/TRLFXWY14ACC02F24C\/3\/full.json?AWSAccessKeyId=AKIASVIFEY23UEGE42BQ&amp;Expires=1420763215&amp;Signature=OLqYwvuzVmAqp1xLTi5x4CsYJuE%3D&#8221;<\/p>\n<\/div>\n<p>The analysis result is too large to display here. For more information, get the Echonest Analyze Documentation:\u00a0<a href=\"http:\/\/developer.echonest.com\/docs\/v4\/_static\/AnalyzeDocumentation.pdf\">http:\/\/developer.echonest.com\/docs\/v4\/_static\/AnalyzeDocumentation.pdf<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get track analysis data for your music using the Echonest API. The track analysis includes summary information about a track including tempo, key signature, time signature mode, danceability, loudness, liveness, speechinesss, acousticness and energy along with detailed information about the song structure (sections) beat structure (bars, beats tatums) and detailed info about timbre, pitch and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=18026\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Uploading tracks for Echonest analysis&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[230,21],"tags":[161,212,305,321,12],"class_list":["post-18026","post","type-post","status-publish","format-standard","hentry","category-development","category-dsp","tag-api","tag-echonest","tag-feature-detection","tag-internet","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Uploading tracks for Echonest analysis - reactive music<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/reactivemusic.net\/?p=18026\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Uploading tracks for Echonest analysis - reactive music\" \/>\n<meta property=\"og:description\" content=\"Get track analysis data for your music using the Echonest API. The track analysis includes summary information about a track including tempo, key signature, time signature mode, danceability, loudness, liveness, speechinesss, acousticness and energy along with detailed information about the song structure (sections) beat structure (bars, beats tatums) and detailed info about timbre, pitch and &hellip; Continue reading &quot;Uploading tracks for Echonest analysis&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=18026\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-09T01:31:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-01-10T07:59:15+00:00\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Uploading tracks for Echonest analysis\",\"datePublished\":\"2015-01-09T01:31:30+00:00\",\"dateModified\":\"2015-01-10T07:59:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026\"},\"wordCount\":502,\"keywords\":[\"API\",\"echonest\",\"feature detection\",\"internet\",\"web development\"],\"articleSection\":[\"development\",\"DSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026\",\"name\":\"Uploading tracks for Echonest analysis - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2015-01-09T01:31:30+00:00\",\"dateModified\":\"2015-01-10T07:59:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=18026\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18026#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Uploading tracks for Echonest analysis\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Uploading tracks for Echonest analysis - reactive music","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/reactivemusic.net\/?p=18026","og_locale":"en_US","og_type":"article","og_title":"Uploading tracks for Echonest analysis - reactive music","og_description":"Get track analysis data for your music using the Echonest API. The track analysis includes summary information about a track including tempo, key signature, time signature mode, danceability, loudness, liveness, speechinesss, acousticness and energy along with detailed information about the song structure (sections) beat structure (bars, beats tatums) and detailed info about timbre, pitch and &hellip; Continue reading \"Uploading tracks for Echonest analysis\"","og_url":"https:\/\/reactivemusic.net\/?p=18026","og_site_name":"reactive music","article_published_time":"2015-01-09T01:31:30+00:00","article_modified_time":"2015-01-10T07:59:15+00:00","author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=18026#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=18026"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Uploading tracks for Echonest analysis","datePublished":"2015-01-09T01:31:30+00:00","dateModified":"2015-01-10T07:59:15+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=18026"},"wordCount":502,"keywords":["API","echonest","feature detection","internet","web development"],"articleSection":["development","DSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=18026","url":"https:\/\/reactivemusic.net\/?p=18026","name":"Uploading tracks for Echonest analysis - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2015-01-09T01:31:30+00:00","dateModified":"2015-01-10T07:59:15+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=18026#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=18026"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=18026#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Uploading tracks for Echonest analysis"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/18026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18026"}],"version-history":[{"count":6,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/18026\/revisions"}],"predecessor-version":[{"id":18104,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/18026\/revisions\/18104"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}