Created
October 19, 2018 09:57
-
-
Save arvind-iyer/efea26dd47e4b460eec845c9189f87c1 to your computer and use it in GitHub Desktop.
TidalCycles workshop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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