Today I'm at ThoughtWorks Manchester learning: Creating music with Clojure and Overtone.
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.
Thanks to ThoughtWorks for sorting out the event.
Learning about harmonics with… A slinky of course :) pic.twitter.com/9TZuheuHoa— Simon Owen (@s10wen) July 23, 2014
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?
using vim as editor
commands; play, bell, beep, stop, ding, midi-hz, let
comments = ;
In an octave the frequency is doubled:
(def major (scale [2 2 1 2 2 2 1]))
major is a function
(where :time (bpm 90))
bpm is a function
(where :pitch (comp C major))
can use run to go up and down notes
row row row your boat canone alla quarta, by johann sebastian bach lol, and now in G minor :p
- LilyPond is a powerful and flexible tool for engraving tasks of all kinds: https://www.lilypond.org/examples.html
- Book: musicforgeeksandnerds.com
- Band: https://meta-ex.com/
- Blog post: https://aphyr.com/posts/306-clojure-from-the-ground-up-state
- Vim setup: https://github.com/ctford/vim-fireplace-easy
- Visualisations: https://clojurefun.wordpress.com/2013/12/22/spectrograms-with-overtone/ (quill, wrapper, written by the same person)
This event was also filmed:
Like this post? Hire Me!