Skip to content
oulrich1 edited this page Feb 18, 2012 · 7 revisions

Overtone

Feel free to make additions, changes, etc.

Before using clojure and overtone, be sure you install the following:

sudo apt-get install **jack-tools ant fftw3 qjackctl leiningen**

leiningen is also available on github

wget http://github.com/technomancy/leiningen/raw/stable/bin/lein

Also you will need to install the JAVA JDK:

  1. (might not work) sudo apt-get install sun-java6-jdk
  2. (will work) sudo apt-get install openjdk-7-jdk

The following directions are from the readme.

Getting Overtone:

$ git clone git://github.com/rosejn/overtone.git

$ cd overtone
$ lein deps

; In Linux you can create a .jackdrc file with this command
; to automatically start the jack server on boot, or you will need
; to run it manually to start the Jack audio server.
$ jackd -r -d alsa -r 44100 ; or use qjackctl for a gui

$ lein repl

user=> (use 'overtone.live)
user=> (synth (out 0 (pan2 (sin-osc 440))))

; Defining a new synthesizer with the synth macro will return a function.

user=> (*1)
5

; Call the function to trigger the synth and set its control parameters.
; It will return an ID that can be used to kill or adjust parameters for
; the synth instance.

user=> (kill 5)

user=> (quit)

If you need a starting point i recommend checking out Installing Overtone.

These links also seem interesting:

Clone this wiki locally