Last active
May 10, 2018 17:50
-
-
Save kindohm/a7dd1a0c657406bfbd1815f5ffddfdec to your computer and use it in GitHub Desktop.
slice.tidal
This file contains hidden or 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
| d1 $ whenmod 10 8 (|*| speed (scale 1 1.25 $ slow 2 saw)) $ | |
| every 4 (# pan (scale 0 1 $ slow 3 rand)) $ | |
| sometimesBy 0.15 (|+| n "2") $ shift $ | |
| slice ("{0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15}%16" + "<0 0 2 0 1>") 16 $ | |
| sound "1bar" | |
| # n "<0 0 0 2 0 3>" | |
| # unit "c" # speed 1 # shape 0.9 # orbit 0 # delay 0 # delayfb 0 |
This file contains hidden or 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
| let slice :: Pattern Int -> Pattern Int -> ParamPattern -> ParamPattern | |
| slice pi pn p = begin b # end e # p | |
| where b = (\i n -> (div' i n)) <$> pi <*> pn | |
| e = (\i n -> (div' i n) + (div' 1 n)) <$> pi <*> pn | |
| div' a b = fromIntegral (a `mod` b) / fromIntegral b | |
| d1 $ slice ("0 [3 4] 2 1 [4 6] 2 4*4 5" + "<0 0 2 0>") 8 $ sound "breaks125" | |
| # legato 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment