Skip to content

Instantly share code, notes, and snippets.

@moxuse
Last active May 10, 2018 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moxuse/e3a7a7edc58027000aa3f8bd7b9eec42 to your computer and use it in GitHub Desktop.
Save moxuse/e3a7a7edc58027000aa3f8bd7b9eec42 to your computer and use it in GitHub Desktop.
Boot Tidal Code
:show paths
:set prompt ""
:module Sound.Tidal.Context
:load your/path/to/UnityOsc.hs -- <- maybe ~/UnityOsc
(cps, nudger, getNow) <- cpsUtils'
(d1,t1) <- superDirtSetters getNow
(d2,t2) <- superDirtSetters getNow
(d3,t3) <- superDirtSetters getNow
(d4,t4) <- superDirtSetters getNow
(d5,t5) <- superDirtSetters getNow
(d6,t6) <- superDirtSetters getNow
(d7,t7) <- superDirtSetters getNow
(d8,t8) <- superDirtSetters getNow
(d9,t9) <- superDirtSetters getNow
(d10,t10) <- superDirtSetters getNow
(c1,ct1) <- dirtSetters getNow
(c2,ct2) <- dirtSetters getNow
(c3,ct3) <- dirtSetters getNow
(c4,ct4) <- dirtSetters getNow
(c5,ct5) <- dirtSetters getNow
(c6,ct6) <- dirtSetters getNow
(c7,ct7) <- dirtSetters getNow
(c8,ct8) <- dirtSetters getNow
(c9,ct9) <- dirtSetters getNow
(c10,ct10) <- dirtSetters getNow
let bps x = cps (x/2)
let hush = mapM_ ($ silence) [c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10]
let solo = (>>) hush
v1 <- unityStream
:set prompt "tidal> "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment