Skip to content

Instantly share code, notes, and snippets.

@rm-hull
Last active December 17, 2015 00:38
Show Gist options
  • Select an option

  • Save rm-hull/5522378 to your computer and use it in GitHub Desktop.

Select an option

Save rm-hull/5522378 to your computer and use it in GitHub Desktop.
Experimental music from very short /ClojureScript/ programs. See http://www.youtube.com/watch?v=GtQdIYUtAHg
(ns soundflower-vic20.demo
(:use-macros [dommy.macros :only [sel1 node]])
(:use [jayq.core :only [show hide]]
[enchilada :only [canvas svg]]
[dommy.core :only [insert-after!]]
[dommy.template :only [->node-like]]))
(hide canvas)
(hide svg)
(defn base64-encode [s]
(js/btoa s))

RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 8000 Hz: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/

http://chimera.labs.oreilly.com/books/1234000001552

https://www.youtube.com/watch?v=Pgw_nVqSTLw

https://www.youtube.com/watch?v=GtQdIYUtAHg

https://www.youtube.com/watch?v=tCRPUv8V22o

http://devslovebacon.com/conferences/bacon-2013/talks/defining-music-recreational-programming-and-pure-data

t*((t>>9|t>>13)&25&t>>6)

<audio id="A" controls="" src="data:audio/wav;base64,UklGRl9vT19XQVZFZm10IBAAAAABAAEAQQKEBYcIiguNDoABgwSGB4kKjA2PAIIDhQaICYsMjg..."></audio>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment