Skip to content

Instantly share code, notes, and snippets.

@arvind-iyer
Created October 19, 2018 09:57
Show Gist options
  • Save arvind-iyer/efea26dd47e4b460eec845c9189f87c1 to your computer and use it in GitHub Desktop.
Save arvind-iyer/efea26dd47e4b460eec845c9189f87c1 to your computer and use it in GitHub Desktop.
TidalCycles workshop
-- Hello!!
-- Making Music in Haskell (feat. TidalCycles)
-- By Arvind Iyer
d1 $ sound "<alphabet:12 alphabet:19 alphabet:18>"
hush
-- Make a drum beat
d1 $ sound "[<bd bd*2> sd, hh*4]"
-- Simple melody loop
import Sound.Tidal.Scales
d2 $ slow 2 $ every 4 (rev ) $ degradeBy 0.125 $ sound "superpiano*8"
# n (toScale minor "2 3 4 5 3 1 2 ~")
# sustain 3
# velocity ("1 2 1 4 1 2 5"/3)
# gain sine
d3 $ sound "bass*2" # n "1 5"
-- I make terrible music and podcast intros
-- https://soundcloud.com/i_y_e_r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment