A audio visual performance interface experiment using Quil.
I hope you like the terminal.
- Install Leiningen. See the installation instructions on the Leiningen homepage.
- Navigate to this directory in the terminal.
cd /path/to/this/dir/
- Run Leiningen's Read Eval Print Loop.
lein repl
- Load Reactant.
(use 'reactant.core)
- Play.
You can reload namespaces to modify the application while running.
i.e. (use :reload 'reactant.dynamic)
Maybe you like emacs.
- Install Leiningen as above.
- Configure Leiningen if you haven't done so yet:
- Make sure your
~/.lein/profile.clj
has at least:{:user {:plugins [[cider/cider-nrepl "x.y.z"]]}}
1 - Navigate to this directory in the terminal.
cd /path/to/this/dir/
- Ask Leiningen to install the dependencies.
lein deps
- Make sure your
- Configure emacs if you haven't done so yet:
- Start emacs
- Install clojure-mode.
M-x package-install RET clojure-mode
- Install cider.
M-x package install RET cider
- Add to your emacs config:
(require 'clojure-mode-autoloads)
- Restart emacs (or eval the require above)
Now the fun bit.
- Open in emacs Reactant's
core.clj
- Ask cider to start the Leiningen Repl server and connect to it:
M-x cider-jack-in
- Wait a bit until you see an inspirational quote.
- Hit
C-c C-c
... wow! - Open Reactant's
dynamic.clj
- Change something in
update
ordraw
, hitC-c C-c
... wow! - Play.
Maybe you like vim.
- Install Leiningen as above.
- Add the CIDER nREPL plugin
to your
~/.lein/profile.clj
. - Install tpope's fireplace vim plugin. If you don't have a favourite package manager, I recommend gmarik's Vundle.
- Open the project directory in two terminals.
- Install the leiningen dependencies.
lein deps
- Run Leiningen's Read Eval Print Loop.
lein repl
Now the fun bit.
- Open vim in the other terminal.
- Open
src/reactant/core.clj
. - Run
:Require
... Magic! - Open
src/reactant/dynamic.clj
- Change something in
draw
, run:Require
... Cool, huh? - Play.
I recommend mapping :Require
to something. I like <leader>r
.
Maybe you like Sublime Text
- Consider installing Emacs
- Consider installing Vim
Footnotes
-
currently "x.y.z" is "0.8.2-SNAPSHOT" ↩