{"id":20120,"date":"2021-02-13T11:52:32","date_gmt":"2021-02-13T16:52:32","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=20120"},"modified":"2024-02-12T10:11:52","modified_gmt":"2024-02-12T15:11:52","slug":"soundcloud-api-in-max8","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=20120","title":{"rendered":"Soundcloud API in Max8"},"content":{"rendered":"<p>This post describes an updated project.<\/p>\n<p>The earlier version can be found here\u00a0 <a href=\"https:\/\/reactivemusic.net\/?p=5413\">https:\/\/reactivemusic.net\/?p=5413<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-20121\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png\" alt=\"\" width=\"300\" height=\"147\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png 300w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-1024x502.png 1024w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-768x377.png 768w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-1536x753.png 1536w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM.png 1542w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>This project is part of the internet-sensors project:\u00a0<a href=\"https:\/\/reactivemusic.net\/?p=5859\">https:\/\/reactivemusic.net\/?p=5859<\/a><\/p>\n<h2>Note<\/h2>\n<p>2024\/01\/21: not working:<\/p>\n<p>Soundcloud deleted my API credentials and is not accepting new requests. So there is really no point to using this project unless you have active credentials.<\/p>\n<p>console.error() function crashes node. -fixed locally<\/p>\n<h2>Overview<\/h2>\n<p>In this patch, Max uses the Soundcloud API to search tracks and then select a result to download and play.\u00a0It uses the node.js soundcloud-api-client\u00a0<a href=\"https:\/\/github.com\/iammordaty\/soundcloud-api-client\">https:\/\/github.com\/iammordaty\/soundcloud-api-client<\/a><\/p>\n<p>For information on the soundcloud API\u00a0<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>sc.maxpat<\/li>\n<\/ul>\n<h5><span style=\"line-height: 22px;\">node.js files<\/span><\/h5>\n<ul>\n<li>scnode.js<\/li>\n<\/ul>\n<h4>authorization<\/h4>\n<\/div>\n<div>\n<ul>\n<li>The Soundcloud client-id is embedded in scnode.js &#8211; you will need to edit this file to replace the worthless client-id with your own. To get a client ID you will first need a Soundcloud account. Then register an app at: <a href=\"http:\/\/soundcloud.com\/you\/apps\">http:\/\/soundcloud.com\/you\/apps<\/a><\/li>\n<\/ul>\n<\/div>\n<h3>first time instructions<\/h3>\n<div>\n<ul>\n<li>Open the Max patch: sc.maxpat<\/li>\n<li>In the green panel, click on [script npm init]<\/li>\n<li>In the green panel , click on [script install soundcloud-api-client]<\/li>\n<\/ul>\n<h3>instructions<\/h3>\n<ul>\n<li>Open the Max patch sc.maxpat<\/li>\n<li>open the max.console window so you can see the API data<\/li>\n<li>click [script start]<\/li>\n<li>click the speaker icon to start audio<\/li>\n<li>type something into the search box and press &lt;enter&gt; or click the button to the left to search for what is already in the box.<\/li>\n<li>select a track from the result menu, wait for it to start playing<\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This post describes an updated project. The earlier version can be found here\u00a0 https:\/\/reactivemusic.net\/?p=5413 This project is part of the internet-sensors project:\u00a0https:\/\/reactivemusic.net\/?p=5859 Note 2024\/01\/21: not working: Soundcloud deleted my API credentials and is not accepting new requests. So there is really no point to using this project unless you have active credentials. console.error() function crashes &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=20120\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Soundcloud API in Max8&#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,275,28],"tags":[161,6,345,12],"class_list":["post-20120","post","type-post","status-publish","format-standard","hentry","category-development","category-internet-sensors","category-maxmsp","tag-api","tag-interactive-media","tag-maxmsp","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Soundcloud API in Max8 - 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=20120\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Soundcloud API in Max8 - reactive music\" \/>\n<meta property=\"og:description\" content=\"This post describes an updated project. The earlier version can be found here\u00a0 https:\/\/reactivemusic.net\/?p=5413 This project is part of the internet-sensors project:\u00a0https:\/\/reactivemusic.net\/?p=5859 Note 2024\/01\/21: not working: Soundcloud deleted my API credentials and is not accepting new requests. So there is really no point to using this project unless you have active credentials. console.error() function crashes &hellip; Continue reading &quot;Soundcloud API in Max8&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=20120\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-13T16:52:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-12T15:11:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Soundcloud API in Max8\",\"datePublished\":\"2021-02-13T16:52:32+00:00\",\"dateModified\":\"2024-02-12T15:11:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120\"},\"wordCount\":276,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png\",\"keywords\":[\"API\",\"interactive media\",\"Max\\\/MSP\",\"web development\"],\"articleSection\":[\"development\",\"internet-sensors\",\"Max\\\/MSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120\",\"name\":\"Soundcloud API in Max8 - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png\",\"datePublished\":\"2021-02-13T16:52:32+00:00\",\"dateModified\":\"2024-02-12T15:11:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=20120\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Screen-Shot-2021-02-13-at-11.35.34-AM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/Screen-Shot-2021-02-13-at-11.35.34-AM.png\",\"width\":1542,\"height\":756},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20120#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Soundcloud API in Max8\"}]},{\"@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 Max8 - 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=20120","og_locale":"en_US","og_type":"article","og_title":"Soundcloud API in Max8 - reactive music","og_description":"This post describes an updated project. The earlier version can be found here\u00a0 https:\/\/reactivemusic.net\/?p=5413 This project is part of the internet-sensors project:\u00a0https:\/\/reactivemusic.net\/?p=5859 Note 2024\/01\/21: not working: Soundcloud deleted my API credentials and is not accepting new requests. So there is really no point to using this project unless you have active credentials. console.error() function crashes &hellip; Continue reading \"Soundcloud API in Max8\"","og_url":"https:\/\/reactivemusic.net\/?p=20120","og_site_name":"reactive music","article_published_time":"2021-02-13T16:52:32+00:00","article_modified_time":"2024-02-12T15:11:52+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png","type":"","width":"","height":""}],"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=20120#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=20120"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Soundcloud API in Max8","datePublished":"2021-02-13T16:52:32+00:00","dateModified":"2024-02-12T15:11:52+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20120"},"wordCount":276,"image":{"@id":"https:\/\/reactivemusic.net\/?p=20120#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png","keywords":["API","interactive media","Max\/MSP","web development"],"articleSection":["development","internet-sensors","Max\/MSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=20120","url":"https:\/\/reactivemusic.net\/?p=20120","name":"Soundcloud API in Max8 - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20120#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=20120#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM-300x147.png","datePublished":"2021-02-13T16:52:32+00:00","dateModified":"2024-02-12T15:11:52+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=20120#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=20120"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=20120#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-13-at-11.35.34-AM.png","width":1542,"height":756},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=20120#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Soundcloud API in Max8"}]},{"@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\/20120","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=20120"}],"version-history":[{"count":8,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20120\/revisions"}],"predecessor-version":[{"id":20926,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20120\/revisions\/20926"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}