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
  • Select an option

  • Save lvm/e0943b0d42507af60eee174ed263adde to your computer and use it in GitHub Desktop.

Select an option

Save lvm/e0943b0d42507af60eee174ed263adde to your computer and use it in GitHub Desktop.

Revisions

  1. lvm revised this gist Nov 19, 2016. 1 changed file with 11 additions and 10 deletions.
    21 changes: 11 additions & 10 deletions ghci-tidal.conf
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,17 @@
    import Sound.Tidal.Context
    (cps, getNow) <- bpsUtils

    d1 <- dirtStream
    d2 <- dirtStream
    d3 <- dirtStream
    d4 <- dirtStream
    d5 <- dirtStream
    d6 <- dirtStream
    d7 <- dirtStream
    d8 <- dirtStream
    d9 <- dirtStream
    (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

    (cps, getNow) <- bpsUtils
    let bps x = cps (x/2)
    let hush = mapM_ ($ silence) [d1,d2,d3,d4,d5,d6,d7,d8,d9]
    let solo = (>>) hush
  2. @lennart lennart created this gist Nov 13, 2014.
    10 changes: 10 additions & 0 deletions Default.sublime-commands
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    [
    {
    "caption": "SublimeREPL: Tidal",
    "command": "run_existing_window_command", "args":
    {
    "id": "repl_tidal",
    "file": "config/Tidal/Main.sublime-menu"
    }
    }
    ]
    27 changes: 27 additions & 0 deletions Main.sublime-menu
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    [
    {
    "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"
    }
    }
    ]
    }]
    }
    ]
    18 changes: 18 additions & 0 deletions ghci-tidal.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    import Sound.Tidal.Context

    d1 <- dirtStream
    d2 <- dirtStream
    d3 <- dirtStream
    d4 <- dirtStream
    d5 <- dirtStream
    d6 <- dirtStream
    d7 <- dirtStream
    d8 <- dirtStream
    d9 <- dirtStream

    (cps, getNow) <- bpsUtils
    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> "