top | item 4819269

Generating Music (with an algorithm)

71 points| bozho | 13 years ago |techblog.bozho.net | reply

50 comments

order
[+] b1daly|13 years ago|reply
There are at least two major areas of music composition which the algorythmic attempts fall vastly short of humans.

One is that real music composition is never done where the timbres are separated from the composition. Classically notated music looks kind of like this, but it's really just a shorthand. A composer knows intimately the sounds she is working with.

For pop music, the timbre itself is a mode of creative expression. Innovation in musical timbres and sounds is an expected part of pop music. (I'm using "pop" in the most general sense, covering a large amount of contemporary genres). The meaning of the music is not captured by simplistic reference to musical notation concepts.

The other major limitation of generated music, to my ears, is that of overall compositional structure. The units of composition usually are short, and only locally referenced. So the compositions lack interesting shape over the course of time.

If you think of a composition as a story, it's as if a bunch of plausible paragraph that are coherent within them selves are strung together with only loose reference to each other. So a longer "plot" doesn't emerge.

[+] Joeboy|13 years ago|reply
> One is that real music composition is never done where the timbres are separated from the composition.

It's true that composers almost always have a sound in mind when they write the notes, but it's very common to perform compositions using entirely different instrumentation to that originally envisaged.

[+] mixedbit|13 years ago|reply
In 1995 Douglas Hofstadter wrote a short essay that describes his amazement with a piece of music composed by a program. Interesting reading: http://www.cs.washington.edu/education/courses/cse403/03su/m...
[+] bozho|13 years ago|reply
Great. The composer doesn't need to have gone through emotional breakdown, drugs, or whatever, to create beautiful music. He just needs talant. And I think talant may be at some point expressed in zeroes and ones.
[+] stagas|13 years ago|reply
The best one I've ever heard was AlgoMusic[0] on the Amiga by Thomas Schürger. I used to spend hours listening to it. And it was a pleasant surprise while searching for it now, to find out that the author has a brand new project called SoundHelix[1] that has all the awesomeness of AlgoMusic, and sounds even more incredible. You should listen to the examples[2].

[0]: http://aminet.net/package/mus/misc/AlgoMusic2_4

[1]: http://www.soundhelix.com/

[2]: http://www.soundhelix.com/audio-examples

[+] Strilanc|13 years ago|reply
I've been wondering how long it would be until web sites like this started showing up, where you can listen to automatically generated music on demand.

Hopefully they keep improving until they make the best human composers look mediocre, despite being millions of times faster. Unbounded amounts of new high quality low cost music? Yes please.

[+] tomjen3|13 years ago|reply
Even better, this could be a very good way to permanently kill RIAA -- and because tech like this can't really be made illegal and requires no special permission, ingrediences or tools, there is nothing at all they can do about it.
[+] cdcarter|13 years ago|reply
We still haven't really solved the problem of getting a digital piano to sound anything like a Steinway Concert Grand. Even if we could replace artistic expression with algorithm in this instance, the instrument sound itself has miles to go as well, and may well never be replicated with the precision that a true piano has.
[+] bozho|13 years ago|reply
My point is similar, but not exactly the same. The best human composers will still be the best. However, the other 90% may be replaced by computers. Or, computers may generate some "skeletons", which real composers can use and enrich.
[+] jmmcd|13 years ago|reply
I have generated quite a bit of music using evolutionary algorithms. My research is mostly about figuring out representations that are not at too low a level (eg 1 "gene" per note). I like representations that in some way represent the patterns, oscillations, and processes that seem to drive music forward over time.

A paper: http://ncra.ucd.ie/papers/gecco2011_jmcdermott.pdf

Some short mp3s: http://www.skynet.ie/~jmmcd/software/GraphMusicDemoPieces.tg...

Longer, slow-developing stuff on soundcloud (using slightly different software): http://soundcloud.com/jmmcd/tomorrow-is-a-new-day

[+] bozho|13 years ago|reply
they sound pretty nice :) will read the paper immediately
[+] rorrr|13 years ago|reply
Where did you get the instrument sounds?
[+] mrcharles|13 years ago|reply
This is probably one of the best algorithmic music generators I've heard. It has a lot more feel of composition to it than most I've heard.
[+] hayksaakian|13 years ago|reply
The music at any given point sounds great, like classic video game bgm, but theres one thing that irks me. I don't feel a clear start and end to the music, it just seems abrupt both ways.
[+] bozho|13 years ago|reply
true that, I'll try to improve the general structure, so that it sounds complete
[+] teeja|13 years ago|reply
The program might benefit a lot from better timbres. It's hard to appreciate (or not) other features when the tones are so pallid, so impoverished.
[+] MichailP|13 years ago|reply
Nice work. Is anybody aware of automatic music performing software? I think that this is similar to automatic generation of music but more structured and therefore easier to implement. I remember reading some studies about software performing classical compositions, but never found working prototype to play with.
[+] bozho|13 years ago|reply
I've read some papers about software used to help live performers, some sort of co-performer, or accompanying robot. But I can't find the paper right now..
[+] diminish|13 years ago|reply
Terrific, I guess the first virtual minds will love these first algorithmic songs; from an historical point of view.
[+] songgao|13 years ago|reply
Have you ever thought of using some more complicated algorithm for randomness, e.g., genetic algorithm?

http://scholar.google.com/scholar?q=genetic+algorithm+music+...

[+] bozho|13 years ago|reply
I have indeed looked at some genetic algorithms and a lot of papers on the topic (in fact, my former university has a course about that, so I read the coursebook). Most of what I have read is either included, attempted, or in TODO. And obviously, I need to read some more.
[+] simonbohs|13 years ago|reply
I took part in a "create a game in a day" event recently. Some of the compositions sounded like they would have been perfect for the game, which leads to the strange question: what is the copyright on music composed by the algorithm?
[+] bozho|13 years ago|reply
Creative Commons is the one I picked
[+] jasonebaugh|13 years ago|reply
There is Wolfram Tones: http://tones.wolfram.com/

It makes the mistake of trying to generate in established genres. None of the genres I care for were anywhere near the mark.

[+] hakaaak|13 years ago|reply
Man, that is some pretty crappy music. Good effort though. Algorithm needs more theory. Good music isn't that random. You are missing phrasing, repetition, rhythm.
[+] bozho|13 years ago|reply
I'm not missing it - all three things are encoded there. They might not be that "visible", which is a point of improvement, but the theory is there. As I wrote in the blog "random" generates noise. That's why composition rules are needed.
[+] virtualritz|13 years ago|reply
Does not work for me in Chrome. Works in Safari. I'm on a Macbook Pro.
[+] bozho|13 years ago|reply
strange. It works on chrome on windows.