Unformatted text preview:

m A language for music generation Yiling Hu Monica Ramirez Santana Jiaying Xu Introduction m is a language specifically designed for algorithmic music composition Gives the programmer the following functionality translation of traditional musical concepts into arithmetic types arithmetic operators for manipulation typical control structures randomization functions Compiler Design program m m ml scanner mll parser mly ast ml interpret ml Output java javac Output class java output mid Hello World Tutorial The Hello World program of the m algorithmic music composition language Plays middle C void main note n chord c staff s part p n pitch C4 n duration 1 0 n intensity 100 s instrument 0 p bpm 60 p beatsig 0 25 add c n add s c add p s play p C like syntax More types Set setall thederived note middle C type fields Define note and piano song characteristics Pitch literal shorthand for the programmer Compose the song Print this song to Java source file Derived Types Translation of traditional music concepts into arithmetic types Hierarchical in nature Standard library functions to interact with them Type Members add play note pitch intensity duration Cannot add anything to type note Play the pitch at the intensity defined for the duration defined chord Collection of notes Add type note Play its notes simultaneously staff Collection of notes and chords instrument Add typechord Play its chords in the order they were added part bpm beat signature Add type staff Play its staffs simultaneously Lessons Learned Start early Learn Ocaml Meet often Source code version control Testing is good Catching errors early on is hard Conclusions Simple way to make simple music Great for elevators coffee shops places that have music that no one really pays attentions Meet often Making a language is fun DEMO


View Full Document

Columbia COMS W4115 - m - A language for music generation

Documents in this Course
YOLT

YOLT

13 pages

Lattakia

Lattakia

15 pages

EasyQL

EasyQL

14 pages

Photogram

Photogram

163 pages

Espresso

Espresso

27 pages

NumLang

NumLang

6 pages

EMPATH

EMPATH

14 pages

La Mesa

La Mesa

9 pages

JTemplate

JTemplate

238 pages

MATVEC

MATVEC

4 pages

TONEDEF

TONEDEF

14 pages

SASSi

SASSi

16 pages

JTemplate

JTemplate

39 pages

BATS

BATS

10 pages

Synapse

Synapse

11 pages

c.def

c.def

116 pages

TweaXML

TweaXML

108 pages

Load more
Loading Unlocking...
Login

Join to view m - A language for music generation and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view m - A language for music generation and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?