Skip to content

Instantly share code, notes, and snippets.

leemartin / artwork
Last active Aug 29, 2015
Artwork FM YouTube Embed
View artwork
<iframe frameborder='0' height='320' src='' width='320'></iframe>
View stratus-customization
<script type="text/javascript">
auto_play: true,
download: false,
links: '',
random: true
View stratus-installation
<script type="text/javascript">
links: ''
View callback.html
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Connect with SoundCloud</title>
<body onload="window.opener.setTimeout(window.opener.SC.connectCallback, 1)">
<b style="width: 100%; text-align: center;">This popup should automatically close in a few seconds</b>
leemartin /
Created Mar 7, 2012
Waveform ImageData Node
app.get '/waveform', (req, res) ->
# If URL and Callback present
if req.param("url") && req.param("callback")
# Get the parameters
url = decodeURIComponent(req.param("url"))
callback = req.param("callback")
# Create a Bufferlist
View wave64.js
// Use the SoundCloud JS SDK to grab a track
SC.get("/tracks/38640984", function(track){
// Use jQuery's getJSON call to pass the waveform_url and callback to Wave64
$.getJSON('', { url: track.waveform_url }, function(data){
// Initialize a new image using the returned data
waveform = new Image();
waveform.src =;
leemartin / wave64.html
Created Mar 16, 2012
$.wave64 Example
View wave64.html
<title>SoundCloud $.wave64 Example</title>
<!-- Include jQuery, SoundCloud JS SDK, and the $.wave64 Plugin -->
<script src=''></script>
<script src=''></script>
<script src=''></script>
<script type='text/javascript'>
leemartin / ontimedcomments.js
Created Apr 5, 2012
OnTimedComments Example
View ontimedcomments.js
client_id: "YOUR_CLIENT_ID"
SC.whenStreamingReady(function() {, {
ontimedcomments: function(comments) {
var comment, _i, _len;
for (_i = 0, _len = comments.length; _i < _len; _i++) {
leemartin / topspin_vs_sc.js
Created Apr 12, 2012
TopSpin Purchase on SoundCloud
View topspin_vs_sc.js
// Initialize JS SDK
client_id: "YOUR_CLIENT_ID",
redirect_uri: "",
// Connect to SoundCloud
// Update one of the user's tracks' purchase url
leemartin / widget.html
Created Apr 17, 2012
Email Unlock Widget
View widget.html
<iframe allowtransparency='true' frameborder='0' height='400' scrolling='no' src='YOUR_CAMPAIGN_URL/widget' width='300'></iframe>