Creating music with Clojure and Overtone with Chris Ford

Today I'm at ThoughtWorks Manchester learning: Creating music with Clojure and Overtone.

https://www.meetup.com/manchester-geek-nights/events/194155562/

I'd never used Clojure or Overtone before so before and during the talk I tried to get set up, but hit a few frustrations along the way, so I wrote these up and how I fixed them in case it's of help to anyone else who wants to get set up.

Getting Started With Clojure and Overtone.

Thanks to ThoughtWorks for sorting out the event.

Below are my notes from the event:

Chris Ford started off with some music theory, a nice introduction, then went on to demonstrate some of the things you can do with Clojure and Overtone and how writing code can produce music.

familiar with lisp?

https://github.com/ctford

using vim as editor

commands; play, bell, beep, stop, ding, midi-hz, let

comments = ;

Example code

Psycho-acoustics

1
2
3
4
5
(comment
(bell 600 10.0)
(bell 500 10.0 0.0)
(bell 400 10.0 0.0 0.0)
)

In an octave the frequency is doubled:

https://www.angelfire.com/in2/yala/t4scales.htm

scale

1
2
3
4
5
6
7
8
9
10
11
12
13
14
(def major (scale [2 2 1 2 2 2 1]))
(def minor (scale [2 1 2 2 1 2 2]))
(def blues (scale [3 2 1 2 3 2]))
(def pentatonic (scale [3 2 1 2 3 2]))
(def blues (scale [3 2 1 2 3 2]))

(comment
(even-melody
(map
(comp D sharp blues)
(concat (range 08) (reverse (range 0 7)
)
)
)

major is a function

time

1
(where :time (bpm 90))

bpm is a function

pitch

1
(where :pitch (comp C major))

run

can use run to go up and down notes

canon

row row row your boat canone alla quarta, by johann sebastian bach lol, and now in G minor :p

Extra:

This event was also filmed:

Browse by category: