{"id":5413,"date":"2013-02-10T01:21:09","date_gmt":"2013-02-10T01:21:09","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=5413"},"modified":"2014-05-20T15:34:15","modified_gmt":"2014-05-20T19:34:15","slug":"soundcloud-api-in-max","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=5413","title":{"rendered":"Soundcloud API in Max"},"content":{"rendered":"<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM.png\"><img loading=\"lazy\" decoding=\"async\" title=\"Screen Shot 2013-02-12 at 9.12.45 PM\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png\" alt=\"\" width=\"300\" height=\"161\" \/><\/a><\/p>\n<p>In this patch, Max uses the Soundcloud API to find available tracks for a user and then stream or download one of the tracks.<\/p>\n<h5>Features:<\/h5>\n<ul>\n<li>Resolve the user-id for a given Soundcloud user name &#8211; in this case &#8220;dannyzic&#8221;<\/li>\n<li>Process the JSON response to get a track list<\/li>\n<li>Request the first track as either a download or streaming file<\/li>\n<li>Play the track in Max using [jit.qt.movie]<\/li>\n<\/ul>\n<p><span style=\"line-height: 1;\">The Soundcloud API reference provides examples using curl. <\/span><\/p>\n<p><a style=\"line-height: 1;\" href=\"http:\/\/developers.soundcloud.com\/docs\/api\/reference\">http:\/\/developers.soundcloud.com\/docs\/api\/reference<\/a><\/p>\n<h3>download<\/h3>\n<p><a href=\"https:\/\/github.com\/tkzic\/internet-sensors\">https:\/\/github.com\/tkzic\/internet-sensors<\/a><\/p>\n<p>folder: soundcloud<\/p>\n<h3>files<\/h3>\n<h5>main Max patch<\/h5>\n<div>\n<ul>\n<li>soundcloud2.maxpat<\/li>\n<\/ul>\n<h5><span style=\"line-height: 22px;\">abstractions and other files<\/span><\/h5>\n<ul>\n<li>sc-process-user-data.js<\/li>\n<li>sc-process-track-data.js<\/li>\n<\/ul>\n<h4>authorization<\/h4>\n<\/div>\n<div>\n<ul>\n<li>The Soundcloud client-id is embedded in the Max patch. To get a client ID you will first need a Soundcloud account. Then register an app at:\u00a0<a href=\"http:\/\/soundcloud.com\/you\/apps\">http:\/\/soundcloud.com\/you\/apps<\/a><\/li>\n<\/ul>\n<\/div>\n<h3>instructions<\/h3>\n<div>\n<ul>\n<li>Open the Max patch: soundcloud2<\/li>\n<li>Unlock the patch and enter your client-id in the yellow [message] object in the upper right corner. Lock and save the patch.<\/li>\n<li>Click the green button to resolve the Username: &#8216;dannyzic&#8217;<\/li>\n<li>Click the blue button retrieve &#8216;tracks&#8217; for this user<\/li>\n<li>Click the yellow button to begin streaming the first available track<\/li>\n<li>Optional: click the red button to download the track.<\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this patch, Max uses the Soundcloud API to find available tracks for a user and then stream or download one of the tracks. Features: Resolve the user-id for a given Soundcloud user name &#8211; in this case &#8220;dannyzic&#8221; Process the JSON response to get a track list Request the first track as either a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=5413\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Soundcloud API in Max&#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":[143,275],"tags":[161,6,345,190,27],"class_list":["post-5413","post","type-post","status-publish","format-standard","hentry","category-interactive-media-art","category-internet-sensors","tag-api","tag-interactive-media","tag-maxmsp","tag-portfolio","tag-soundcloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Soundcloud API in Max - 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=5413\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Soundcloud API in Max - reactive music\" \/>\n<meta property=\"og:description\" content=\"In this patch, Max uses the Soundcloud API to find available tracks for a user and then stream or download one of the tracks. Features: Resolve the user-id for a given Soundcloud user name &#8211; in this case &#8220;dannyzic&#8221; Process the JSON response to get a track list Request the first track as either a &hellip; Continue reading &quot;Soundcloud API in Max&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=5413\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-10T01:21:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-20T19:34:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Soundcloud API in Max\",\"datePublished\":\"2013-02-10T01:21:09+00:00\",\"dateModified\":\"2014-05-20T19:34:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413\"},\"wordCount\":207,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png\",\"keywords\":[\"API\",\"interactive media\",\"Max\\\/MSP\",\"portfolio\",\"Soundcloud\"],\"articleSection\":[\"interactive media art\",\"internet-sensors\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413\",\"name\":\"Soundcloud API in Max - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png\",\"datePublished\":\"2013-02-10T01:21:09+00:00\",\"dateModified\":\"2014-05-20T19:34:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=5413\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-12-at-9.12.45-PM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-12-at-9.12.45-PM.png\",\"width\":\"1168\",\"height\":\"628\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5413#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Soundcloud API in Max\"}]},{\"@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":"Soundcloud API in Max - 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=5413","og_locale":"en_US","og_type":"article","og_title":"Soundcloud API in Max - reactive music","og_description":"In this patch, Max uses the Soundcloud API to find available tracks for a user and then stream or download one of the tracks. Features: Resolve the user-id for a given Soundcloud user name &#8211; in this case &#8220;dannyzic&#8221; Process the JSON response to get a track list Request the first track as either a &hellip; Continue reading \"Soundcloud API in Max\"","og_url":"https:\/\/reactivemusic.net\/?p=5413","og_site_name":"reactive music","article_published_time":"2013-02-10T01:21:09+00:00","article_modified_time":"2014-05-20T19:34:15+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png","type":"","width":"","height":""}],"author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=5413#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=5413"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Soundcloud API in Max","datePublished":"2013-02-10T01:21:09+00:00","dateModified":"2014-05-20T19:34:15+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=5413"},"wordCount":207,"image":{"@id":"https:\/\/reactivemusic.net\/?p=5413#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png","keywords":["API","interactive media","Max\/MSP","portfolio","Soundcloud"],"articleSection":["interactive media art","internet-sensors"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=5413","url":"https:\/\/reactivemusic.net\/?p=5413","name":"Soundcloud API in Max - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=5413#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=5413#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM-300x161.png","datePublished":"2013-02-10T01:21:09+00:00","dateModified":"2014-05-20T19:34:15+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=5413#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=5413"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=5413#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-12-at-9.12.45-PM.png","width":"1168","height":"628"},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=5413#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Soundcloud API in Max"}]},{"@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\/5413","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=5413"}],"version-history":[{"count":18,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/5413\/revisions"}],"predecessor-version":[{"id":5417,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/5413\/revisions\/5417"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}