News for hackers. Stuff that matters.
Re:Generating Music (with an algorithm) by b1daly on Thursday November 22, 2012 @06:29PM (#4820412)
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.

Re:Generating Music (with an algorithm) by Joeboy on Saturday November 24, 2012 @03:52AM (#4824930)
> 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.

Re:Generating Music (with an algorithm) by mixedbit on Thursday November 22, 2012 @01:26PM (#4819590)
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...
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @01:29PM (#4819598)
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.
Re:Generating Music (with an algorithm) by stagas on Thursday November 22, 2012 @08:03PM (#4820614)
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

Re:Generating Music (with an algorithm) by Strilanc on Thursday November 22, 2012 @12:38PM (#4819435)
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.

Re:Generating Music (with an algorithm) by DanBC on Thursday November 22, 2012 @01:43PM (#4819635)
Have you seen DarwinTunes?

(http://darwintunes.org/)

Re:Generating Music (with an algorithm) by b1daly on Thursday November 22, 2012 @06:21PM (#4820387)
Just checked it out, very interesting concept. But from what I heard the music doesn't seem to be evolving much!
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @01:56PM (#4819682)
Nope. Pretty interesting, though. Will read about it more.
Re:Generating Music (with an algorithm) by tomjen3 on Thursday November 22, 2012 @01:30PM (#4819600)
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.
Re:Generating Music (with an algorithm) by cdcarter on Thursday November 22, 2012 @09:24PM (#4820739)
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.
Re:Generating Music (with an algorithm) by buymorechuck on Thursday November 22, 2012 @11:33PM (#4820979)
Have you heard of Pianoteq? http://www.pianoteq.com/
Re:Generating Music (with an algorithm) by cdcarter on Saturday November 24, 2012 @12:48PM (#4825836)
I've heard it a few times. I like the sound a lot, but I know a few artists who still won't use it.
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @12:43PM (#4819452)
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.
Re:Generating Music (with an algorithm) by jmmcd on Thursday November 22, 2012 @03:55PM (#4819955)
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

Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @04:01PM (#4819971)
they sound pretty nice :) will read the paper immediately
Re:Generating Music (with an algorithm) by jmmcd on Thursday November 22, 2012 @04:09PM (#4819998)
Thanks -- I think they're kind of nice at a "local" level, but they don't have the more "global" coherent movement that yours have.
Re:Generating Music (with an algorithm) by rorrr on Thursday November 22, 2012 @04:15PM (#4820024)
Where did you get the instrument sounds?
Re:Generating Music (with an algorithm) by jmmcd on Thursday November 22, 2012 @04:49PM (#4820138)
Garageband! It's a pretty crappy sequencer, but the synth sounds are fine. I imported the midi tracks saved by the algorithm and then mostly just chose from the preset synth sounds.

One problem I noticed sometimes was a limit to Garageband's polyphony in the pianos. I think it only allows 8 or 10 notes at a time in some cases (not sure exactly how it works) and my software has a habit of playing a lot more than that.

Re:Generating Music (with an algorithm) by mrcharles on Thursday November 22, 2012 @02:27PM (#4819748)
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.
Re:Generating Music (with an algorithm) by hayksaakian on Thursday November 22, 2012 @02:32PM (#4819758)
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.
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @02:37PM (#4819771)
true that, I'll try to improve the general structure, so that it sounds complete
Re:Generating Music (with an algorithm) by teeja on Friday November 23, 2012 @12:10AM (#4821046)
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.
Re:Generating Music (with an algorithm) by MichailP on Thursday November 22, 2012 @04:02PM (#4819974)
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.
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @04:06PM (#4819985)
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..
Re:Generating Music (with an algorithm) by MichailP on Thursday November 22, 2012 @04:44PM (#4820126)
Yap, there is a bunch of papers, but no publicly available prototype to try. Imagine having a python module:

from imaginary_music_module import piano_performer as p

p.play("chopin.ly", style="Pogorelich")

That would be nice :)

Re:Generating Music (with an algorithm) by diminish on Thursday November 22, 2012 @02:23PM (#4819742)
Terrific, I guess the first virtual minds will love these first algorithmic songs; from an historical point of view.
Re:Generating Music (with an algorithm) by songgao on Thursday November 22, 2012 @12:55PM (#4819487)
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+...

Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @12:57PM (#4819493)
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.
Re:Generating Music (with an algorithm) by songgao on Thursday November 22, 2012 @01:01PM (#4819502)
That interactive thing looks useful. It might be possible to build a music composer (website) using collective intelligence, i.e., producing music by taking people's response into consideration?
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @01:03PM (#4819513)
The idea of "liking" and "disliking" is to: 1. Get a collection of 'best' tracks that sort-of advertises the successful parts of the algorithm 2. To let me analyze which intermediate decisions in the generation process are good and which not, so that I can make the good ones happen more often.
Re:Generating Music (with an algorithm) by simonbohs on Thursday November 22, 2012 @06:03PM (#4820352)
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?
Re:Generating Music (with an algorithm) by bozho on Friday November 23, 2012 @12:26AM (#4821075)
Creative Commons is the one I picked
Re:Generating Music (with an algorithm) by jasonebaugh on Sunday November 25, 2012 @11:13AM (#4828419)
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.

Re:Generating Music (with an algorithm) by hakaaak on Friday November 23, 2012 @02:29AM (#4821249)
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.
Re:Generating Music (with an algorithm) by bozho on Friday November 23, 2012 @02:56AM (#4821303)
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.
Re:Generating Music (with an algorithm) by gtani on Thursday November 22, 2012 @01:44PM (#4819641)
Hmm, no mention of Prof. Cope at UCSC

http://artsites.ucsc.edu/faculty/cope/experiments.htm

Re:Generating Music (with an algorithm) by mhax on Thursday November 22, 2012 @04:06PM (#4819990)
My thoughts exactly. Virtual Music gives a great insight into Cope's ideas: http://mitpress.mit.edu/books/virtual-music

Sadly his code (lisp if I remember correctly) isn't on github either...

Re:Generating Music (with an algorithm) by gnosis on Thursday November 22, 2012 @03:39PM (#4819919)
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @03:48PM (#4819936)
I deliberately made it generate/play tracks with 0 user input. This thing might be good, but I couldn't make it play anything meaningful
Re:Generating Music (with an algorithm) by gordaco on Friday November 23, 2012 @03:07AM (#4821321)
Another one, with a pretty bizarre UI: http://www.melomics.com.
[deleted]
[deleted]
Re:Generating Music (with an algorithm) by jmpp on Thursday November 22, 2012 @05:44PM (#4820305)
Yup, I've read this just after have posted the question. Thx ;)
Re:Generating Music (with an algorithm) by virtualritz on Friday November 23, 2012 @08:12AM (#4822082)
Does not work for me in Chrome. Works in Safari. I'm on a Macbook Pro.
Re:Generating Music (with an algorithm) by bozho on Friday November 23, 2012 @08:14AM (#4822089)
strange. It works on chrome on windows.
Re:Generating Music (with an algorithm) by markyc on Thursday November 22, 2012 @12:15PM (#4819379)
it sounds like i expected it would :)
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @12:18PM (#4819389)
bad, or artificial? If "artificial" - that's the performance side, and it depends on the soundbank. If a real performer plays the same score, it would sound better. The point is to have nice compositions first :)
Re:Generating Music (with an algorithm) by markyc on Thursday November 22, 2012 @02:49PM (#4819800)
sounds are ok (to my untrained ear), and great effort building this!

still, a little too random

since it's algoritmic, maybe you can go for a little "coherence" throughout a piece, if it makes sense?

Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @04:19PM (#4820042)
sure, any feedback is welcome. The thing is still in an experimental phase, and I'm trying to improve it bit by bit
Re:Generating Music (with an algorithm) by rorrr on Thursday November 22, 2012 @04:14PM (#4820021)
You need better instruments sounds, they sound worse than S3M instruments that I messed with in the 90's.
Re:Generating Music (with an algorithm) by bozho on Thursday November 22, 2012 @04:15PM (#4820022)
Will look for a better soundbank, indeed