Skip to content

Instantly share code, notes, and snippets.

@Chovin
Last active December 7, 2017 23:28
Show Gist options
  • Save Chovin/03ed14e945aa356a74d9e6e6bbee4ba7 to your computer and use it in GitHub Desktop.
Save Chovin/03ed14e945aa356a74d9e6e6bbee4ba7 to your computer and use it in GitHub Desktop.
various startup / setup notes on some live coding environments

What Do, How Do, Live Code

Audio

FoxDot

  1. Open up SuperCollider

  2. cmd+open FoxDot/supercollider.sc

  3. cmd+enter execute each of these separately

     s.options.sampleRate = 48000;
    
     s.reboot;
    
     FoxDot.start
    
  4. from this directory source venv/bin/activate (or activate.fish depending on shell)

  5. cd FoxDot

  6. python -m FoxDot

  7. make sure to deactivate the venv when you're done

TidalCycles

  1. Open up SuperCollider

  2. cmd+open FoxDot/supercollider.sc

  3. cmd+enter execute

     SuperDirt.start
    

Atom

  1. Open up Atom. Open a .tidal file.
  2. cmd+enter away

Sublime

  1. Open 2 panes cmd+k, cmd+right(/down/up/left)
  2. cmd+shift+p > REPL Haskell
  3. write code in the empty pane and cmd+enter

Install

Note, the install didn't go well with cabal so I was told to use stack. The Atom config and Sublime Repl have been edited to stack ghc -- --interactive -XOverloadedStrings instead of ghci. The extramuros client.js was also edited to include this.

Sublime

code block sending was done via Chain of Command
adding this keyconfig to sublime (cmd+shift+p > keyconfig)

{
    {
        "keys": ["super+enter"], 
        "command": "chain", 
        "args": {
          "commands": [
            ["expand_selection_to_paragraph"],
            ["repl_transfer_current"]
          ]
        },
        "context": [{"key": "selector", "operator": "equal", "operand": "source.haskell"}]
    }
}

Overtone

Setup

  1. lein projectname (I chose overtone. that will be the general purpose workbench)
  2. chaned project.clj if needed
  3. lein deps

Refs and likely changes

Starting Overtone REPL

  1. If you wanna use Sublime
    1. subl projectname (or just skip to next step)
    2. open project.clj
    3. cmd+shift+p SublimeREPL: Clojure
  2. or just the terminal: lein repl
  3. (use 'overtone.live) (if you haven't changed core.clj)

Visuals

Overriding Audio-in (VEDA, The Force, maybe even a hint for Fluxus)

Shouldn't need Loopback

  1. Open Audio MIDI Setup
  2. as input, use/create Aggregate device w/ Soundflower (2ch) + Built-in Output
  3. as output, use/create Muilt-Output Device w/ Soundflower (2ch) + Built-in Output
  4. open up the force in Chrome, connect audio-in
  5. open up supercollider, start it w/ defaults
  6. play some music.

You can now switch your output / input to whatever you want now but the force will listen only to SC’s output (

Fluxus

Cyril

Hylogen

Haskell. Possible OSC integration?

The Force

python web server

VEDA

Others

Troop

Updating

if you have your own venv for Troop w/ its own FoxDot install, when you update the FoxDot install via pip install FoxDot --upgrade, make sure to upen FoxDot python -m FoxDot and enable SC3 Plugins from the menu

extramuros

Sharing Text Buffer over network. Built for Live Coding.
Works well with tidal. There is an option for visuals and code can be sent back to be executed in js. I'm not sure if that means a canvas can be opened of if there is a standard tidal visuals package this is refering to.

  1. Read the README.md

Recording SuperCollider w/ OBS

  1. Multi-Output device w/ SoundFlower (2ch) and Built-in Output
  2. Select that as default
  3. Start up SuperCollider (it should have selected that as output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment