Created
December 30, 2018 16:58
-
-
Save digitalohm/38abc076d4e497a13565dae47782808c to your computer and use it in GitHub Desktop.
old tidal.boot file with options, clearly breaking everything
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
:set -XOverloadedStrings | |
:set prompt "" | |
:module Sound.Tidal.Context | |
(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 | |
(midicmd, midicmd_p) = pS "midicmd" (Nothing) | |
(midichan, midichan_p) = pF "midichan" (Nothing) | |
(progNum, progNum_p) = pF "progNum" (Nothing) | |
(val, val_p) = pF "val" (Nothing) | |
(uid, uid_p) = pF "uid" (Nothing) | |
(array, array_p) = pF "array" (Nothing) | |
(frames, frames_p) = pF "frames" (Nothing) | |
(seconds, seconds_p) = pF "seconds" (Nothing) | |
(minutes, minutes_p) = pF "minutes" (Nothing) | |
(hours, hours_p) = pF "hours" (Nothing) | |
(frameRate, frameRate_p) = pF "frameRate" (Nothing) | |
(songPtr, songPtr_p) = pF "songPtr" (Nothing) | |
(ctlNum, ctlNum_p) = pF "ctlNum" (Nothing) | |
(control, control_p) = pF "control" (Nothing) | |
let startclock d p = do {now <- getNow; d $ (pure (nextSam now)) ~> p} | |
let oneshot d p = startclock d $ seqP [(0, 1, p)] | |
let bps x = cps (x/2) | |
let hush = mapM_ ($ silence) [d1,d2,d3,d4,d5,d6,d7,d8,d9] | |
let solo = (>>) hush | |
:set prompt "tidal> " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment