Music as Data (MAD) is a live programming language / environment based on Processing.org written in Clojure. It's something like SuperCollider or Chuck but aims to be easier to hack / experiment live. You can read more about it (along with other geeky stuff) here.
MAD lets you treat music as data and apply data transformation on the fly so you can experiment with notes and samples. You can get it from github.
The main concept is that a series of notes (or samples) are a data structure (because music is data is code).
That means that you can place notes inside a structure (array) the same way you place them on a stave. For example:
(play! [A4 B4 D#5]) ;;This plays three notes, every note at the same time.
In this example, the whole bar is two times, A4 is at one time (1/2) while B4 and D#5 share the other one time (each note has 1/4 of the total time).
Got it? Try experimenting and you'll get it :D
It's best to hear the example (will add more) and read HOW TO USE on github.
(times 4 (p (pattern [[E4 G4 E4] [E5 B4 G4 D4 A4 E4 G4 A4]], 2)))
(p (pattern [A4 B4 C5 D5 E5 F5 G5]))
(p (reverse( pattern [A4 B4 C5 D5 E5 F5 G5])))
(play! (text-to-notes (get-latest-twits)))
Emotionull © Copyright Emotionull 2011. All Rights Reserved.