Skip to content

Instantly share code, notes, and snippets.

@kindohm
Last active September 15, 2017 13:21
Show Gist options
  • Save kindohm/f162ce7428574e6b485cde62b765c1da to your computer and use it in GitHub Desktop.
Save kindohm/f162ce7428574e6b485cde62b765c1da to your computer and use it in GitHub Desktop.
Tidal Sample Bank Approach
let sprefix p = with s_p (liftA2 (++) (p::Pattern String))
d1 $ sprefix "track1 track2" $ s "bd sn*2"
d1 $ s (fmap ("track1"++) "bd sn" )
d1 $ s (flip (++) <$> "bd sn*2" <*> "track1 track2")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment