Functional music

This is a paper I wrote when taking a course in functional programming. The text is interspersed with Haskell code, but you should be able to understand much of the theory without knowing Haskell.

The task was to create a program that would take a sequence of chords (expressed as "A", "Cm" etc.), and generate rudimentary accompaniment according to some predefined rules. Along with these instructions, we (the students) were also given a short introduction to music and harmony, expressed in a scientific way. Unfortunately, this introduction was terribly wrong on some points. I decided to ignore it and start from scratch, explaining all the theory my way in the paper.

I passed the course...

Download the paper here.

Discuss this page

Disclaimer: I am not responsible for what people (other than myself) write in the forums. Please report any abuse, such as insults, slander, spam and illegal material, and I will take appropriate actions. Don't feed the trolls.

Jag tar inget ansvar för det som skrivs i forumet, förutom mina egna inlägg. Vänligen rapportera alla inlägg som bryter mot reglerna, så ska jag se vad jag kan göra. Som regelbrott räknas till exempel förolämpningar, förtal, spam och olagligt material. Mata inte trålarna.

Ralph Corderoy
Sun 25-Jul-2010 17:04
This page is generating a warning rather than showing the paper.
Linus Åkesson
Sun 25-Jul-2010 18:10

ralph wrote:

This page is generating a warning rather than showing the paper.

Thank you! Fixed.