Skip to content

Instantly share code, notes, and snippets.

@lvm
Forked from lennart/Default.sublime-commands
Last active January 2, 2019 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lvm/e0943b0d42507af60eee174ed263adde to your computer and use it in GitHub Desktop.
Save lvm/e0943b0d42507af60eee174ed263adde to your computer and use it in GitHub Desktop.
[
{
"caption": "SublimeREPL: Tidal",
"command": "run_existing_window_command", "args":
{
"id": "repl_tidal",
"file": "config/Tidal/Main.sublime-menu"
}
}
]
import Sound.Tidal.Context
(cps, getNow) <- bpsUtils
(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
(d10,t10) <- superDirtSetters getNow
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> "
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{"command": "repl_open",
"caption": "Tidal",
"id": "repl_tidal",
"mnemonic": "t",
"args": {
"type": "sublime_haskell",
"encoding": "utf8",
"cmd": ["ghci", "-XOverloadedStrings", "-ghci-script", "$packages/SublimeREPL/config/Tidal/ghci-tidal.conf"],
"cwd": "$file_path",
"external_id": "haskell",
"syntax": "Packages/Haskell/Haskell.tmLanguage"
}
}
]
}]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment