(This is a clone of the original repo at https://bitbucket.org/postspectacular/resonate-2013, but now is the new master branch since I moved all repos from learn.postspectacular.com to GH)
This repo contains a collection of examples created for and during the Clojure & Overtone workshop on 21 March 2013 in Belgrade as part of Resonate 2013 festival.
All examples are fully documented and meant to be executed interactively in the REPL:
- ex01_phrasestudy: generating patterns using clojure sequence API
- ex02_bday: defining a scale-free melody and manipulating it
- ex03_graph: using Incanter to explain harmonics and their impact on waveforms
- ex04_midi: building a simple MIDI controllable drumkit w/ samples from Freesound.org
- ex05_synthesis: a closer look at Overtone's & Supercollider's synthesis building blocks
- ex06_quilstep: using Quil (Clojure wrapper for Processing) to create a simple GUI for the dubstep synth from ex05
Clojure can be integrated with may different tools, but if you're completely new to Clojure, I recommend using Eclipse with the Counterclockwise (CCW) plugin:
- Download Eclipse (e.g. Classic or Eclipse for Java developers)
- Launch Eclipse
- Choose/confirm workspace folder (only on 1st start)
- Choose
Help > Install new software...
- In the dialog, press
Add...
to create a new plugin update site and use these details:- Name: CCW
- URL: http://ccw.cgrand.net/updatesite/
- Tick the box for "Clojure Programming", then click
Next
and follow instructions - Restart Eclipse
- Choose
File > Import... > General > Existing project
- Browse to folder where you checked out/downloaded this project
- Tick box next to "resonate-2013"
- Click
Finish
- Open one of the examples in the project's
src
folder - Right click in the editor and choose
Clojure > Load File in REPL
or press (Alt+Command+L)
Alternatively...
- Right click on "resonate-2013" project name in Package Explorer
- Choose
Run As > Clojure Application
Leiningen is the de-facto standard build tool for Clojure (It's also included in the Eclipse CCW plugin). If you prefer running a REPL directly via the command line, simply:
- Clone or download this repo
cd
into the project directorylein repl
to start the REPL
Copyright © 2013 Karsten Schmidt
Distributed under the MIT License, the same as Overtone.