Music By Natural Selection 164
maccallr writes "The DarwinTunes experiment needs you! Using an evolutionary algorithm and the ears of you the general public, we've been evolving a four bar loop that started out as pretty dismal primordial auditory soup and now after >27k ratings and 200 generations is sounding pretty good. Given that the only ingredients are sine waves, we're impressed. We got some coverage in the New Scientist CultureLab blog but now things have gone quiet and we'd really appreciate some Slashdotter idle time. We recently upped the maximum 'genome size' and we think that the music is already benefiting from the change."
Sine waves (Score:5, Funny)
"Given that the only ingredients are sine waves, we're impressed."
This is different from all other sounds, including regular music, how?
Re:Sine waves (Score:5, Funny)
Re:Sine waves (Score:5, Funny)
Because they have cosine waves too :-)
Sounds shifty to me
Re: (Score:2, Funny)
Dude, that was an offbeat comment.
Re:Sine waves (Score:5, Funny)
Re: (Score:3, Funny)
More importantly, they are not asinine ...
Re: (Score:2)
Ahhh, slashdot: one of the few places where the above could be considered a 'sick burn' (if it wasn't already a 'whoosh', that is).
Re: (Score:2)
Re: (Score:3, Funny)
Re:Sine waves (Score:4, Informative)
This is different from all other sounds, including regular music, how?
Square waves [wikipedia.org], triangle waves [wikipedia.org], sawtooth waves [wikipedia.org], and the ever popular noise (play with a SID chip someday). Sure, they're approximated by putting together sine waves, and they might even just happen to "evolve" from selected sine wave combinations, but the meaning came across just fine.
Re:Sine waves (Score:5, Funny)
Re:Sine waves (Score:5, Informative)
A square wave is a sine wave with added sine waves of odd harmonics to the fundamental.
Re: (Score:2)
"A square wave is a sine wave with added sine waves of odd harmonics to the fundamental."
So composed of sine waves, yes? It wold be quite fair to say that those square waves are made using sine waves as ingredients?
Re: (Score:3, Informative)
Distortion guitar is essentially a square wave.
Not really.
A guitar's waveform is complex, so you won't get evenly timed transitions even with infinite overdrive and perfect clipping. Second, infinite overdrive sounds harsh so few guitarists use it (thus the continuing popularity vacuum tube amplifiers). Finally, the sound of electric guitars is also influenced by a speaker cabinet (or simulation thereof) with essentially no treble response.
I used to play with 555 timers for making noise as a kid. The sound has a brain numbing clickety quality. H [wikimedia.org]
Re: (Score:3, Insightful)
Really? I hope orchestral music counts as music. Bowed strings and brass are closer to sawtooth waves, flutes and woodwinds are squarish. Plucked strings *can* approach sine waves, but you're still going to have harmonics that change the timbre, which really just means "the shape of the wave."
Of course, with the use of synthesizers all over the place now, quite a lot of music makes use of pure and modified waves of all types.
Re: (Score:2)
Sure, and that's very useful for analysis. Doesn't change the fact that a square wave sounds very different from a saw or sine wave.
Do you classify the colors of objects you encounter by listing their spectral analysis?
Re: (Score:2)
As someone who makes music, and has build and programmed some synths, I can tell you that pretty much the most of all electronic music comes from a hand full of different wave shapes, and samples.
The waves shapes include square, triangle, sawtooth and sine as the most basic ones.
Then everything is modulated, modulating each other, filtered, etc, etc, and out comes pretty much every synthetic sound you ever heard.
Try making an instrument (/patch) with any softsynth, and you see what I mean.
Re: (Score:3, Insightful)
Re: (Score:2)
They are made with instruments. This is made by fourier series. Different.
Re: (Score:2)
In general things like that don't actually exist in the real world. If you want to produce a square wave, for example, you actually end up approximating it, effectively with sinusoids. In the real world you just can't make things vibrate like that, and that includes air.
Already slashdotted ? (Score:3, Funny)
No reply yet and the website can't even load.. now I understand why we don't RTFA!
Re:Already slashdotted ? (Score:5, Funny)
Re:Already slashdotted ? (Score:5, Funny)
Update: The icon has loaded.
Re:Already slashdotted ? (Score:5, Informative)
I'm the site admin. Sorry for the inability to withstand slashdotting. This was supposed to only go in "Idle"...
You can get to the actual evolving music bit
via this ugly EC2 URL [amazonaws.com]
That link will not work in a few days from now (when I let go of the machine). Too stingy to pay for an elastic IP ;-)
cheers,
Bob.
Responding faster for me now... (Score:2)
I tweaked some Apache config with help from the hosting provider, removed some unnecessary audio content from the front page, and it seems to be responding better now...
And it's sounding sweet!
Re: (Score:2)
It must be a DNS hack because I'm really not seeing it! Can you give some more info?
Re: (Score:2)
Navigate to the link in the article: http://www.newscientist.com/blogs/culturelab/2009/12/amanda-gefter-books-arts.php [newscientist.com]
It was serving up fake anti-virus malware.
Re: (Score:2)
Thanks for the info. I'll mention that to the journalist at New Scientist. I've got adblock so I don't see it.
Re: (Score:2)
Wait... so someone affiliated with the site in question admits that they block their own ads and don't see their own site in its entirety? Now that's a ringing endorsement for the advertisers.
Re: (Score:2)
For the last time...
darwintunes.org has no ads at all - it's an academic experiment website, it would be inappropriate. Even my slightly more commercial evolectronica.com doesn't have ads. From my experience that would just be a colossal waste of time and turn people away.
What newscientist.com (or perhaps DNS hackers) do with their ads is nothing to do with me!
And finally, it was Slashdot who made the New Scientist link look like the main link for the article, not me! See my original submission:
http://sl [slashdot.org]
Re: (Score:2)
Fair enough. I stand corrected.
Sine waves? (Score:4, Informative)
All signals can be represented with a set of sine waves. That's what makes Fourier transforms so useful.
What would be really impressive is if they had music that can't be represented as a set of sine waves.
Re: (Score:2)
It's called country music.
Well, technically it could be represented by sine waves, but the sine waves refused to represent THAT!
Re: (Score:3, Funny)
It's doable, you just need to use sine waves that are wearing cowboy hats.
Re:Sine waves? (Score:4, Insightful)
Re: (Score:3, Funny)
Warning: if you follow the parent's link you will be Ricker Rolled.
Re:Sine waves? (Score:4, Funny)
That would be...
*sunglasses*...
cowsine
YEEAAAAAAAHH!
Re: (Score:3, Interesting)
How about an infinite piece of non-repeating music, consisting of say, a beep at every prime second and silence otherwise?
Re:Sine waves? (Score:4, Interesting)
This isn't remotely my area of expertise, but I believe that would be representable with an infinitely large set of sine waves.
A simpler "gotcha" is a perfectly square pulse. For example, 1 HZ for 1 second, complete silence before and after that second. I believe that requires an infinite number of sine waves to model as well.
Re: (Score:2)
Re: (Score:2)
What about noise?
Re: (Score:2)
When you say "noise", I think you're talking about a random, unpredictable waveform, right?
I think the right way to look at it is this: Once the noise has been generated, there's no longer any uncertainty about the waveform. It's going to be a messy waveform, but at least it's a specific waveform at that point. So Fourier transforms can still be applied, because they work on arbitrary waveforms, including noise.
But I should reiterate that this really isn't my area of expertise.
Re: (Score:2)
What if your input signal IS a sine wave? Then you only need 1.
Re: (Score:2)
Right. All regular waves are abstractions. It's like a pure line or circle: it doesn't exist except as an idea. A very useful idea.
Re: (Score:2)
You cannot perfectly create a square wave from sine waves, even if you had an infinite number of them. This problem occurs with any jump discontinuity and is referred to as the Gibbs phenomenon [wikipedia.org].
Re: (Score:2)
Crap, I knew there would be some reason that my post should have started with the words, "I'm pretty sure that".
Re: (Score:2)
Nope, a Cosine wave is just a phase shifted Sine wave.
WARNING: AntivirusXP (Score:5, Informative)
The site has paid ads, one of which apparently has been taken over by the XPAntiVirus people. If you visit the site, it will install malware, unless you are using Firefox and Linux.
Re:WARNING: AntivirusXP (Score:5, Funny)
Re: (Score:2)
...or a Mac and any browser.
No paid ads (Score:3, Informative)
This is an academic site and there are no paid ads. It hasn't been compromised either, as far as I can tell.
Re: (Score:2, Informative)
However, the link to "some Slashdotter idle time" links to the New Scientist... and that seems to be where the compromise actually hit me.
Re: (Score:2)
Sorry about that.
Although note that my original submission had the New Scientist link in a more obvious place:
http://slashdot.org/submission/1136438/Music-by-natural-selection [slashdot.org]
It did seem odd to me why the editor changed the links that way. Conspiracy?
Re: (Score:2)
Get noscript you fool! Lack of noscript is unnacceptable on a win box.
Re: (Score:2)
Chrome now has extension, including for blocking ads. [google.com]
I'm waiting for an extension similar to NoScript. You can never be too safe or too sure.
If You're Looking for an Introduction to This (Score:5, Interesting)
It just sounds like.... (Score:2)
...minimalistic electronic music.
Re: (Score:2)
So this proves it: electronic music is the most primitive.
Not a novel idea (Score:2)
Here's the first link I found on G.P. Music from '98 which actually had the computer rate some of the music.
http://graphics.stanford.edu/~bjohanso/papers/gp98/johanson98gpmusic.pdf [stanford.edu]
If you look at his references, people were doing this in the '80's.
No, I didn't RTFA. I didn't even read the article I linked in this post, so don't get upset if they aren't completely related.
Who cares if it's novel? (Score:2)
I remember reading papers on this during my AI classes in the mid 90's.
And I was writing software to use genetic algorithms to generate and/or harmonize melodies in 95/96. And I'm still impressed.
For one thing, even if the general idea isn't totally new, most of the world never gets off their butt and actually does *anything*.
The other thing is that even when the general idea is fairly straightforward, getting an implementation that not only works but sounds pleasant can be non-trivial. It's often not as si
Re: (Score:2)
It's not completely novel, no. Google weren't the first to do web search either ;-)
An incomplete list of related work is at
http://en.wikipedia.org/wiki/Evolutionary_music [wikipedia.org]
Our goal here is to look in detail at the evolutionary dynamics and mechanisms, as well as just answering the basic question "does it still work if loads of people provide the fitness ratings?"
copyright? (Score:5, Interesting)
What keeps people from herding it toward an existing copyrighted tune? Even composers accidentally do this all the time.
Re: (Score:2)
Re: (Score:2)
How would you get enough people to agree on the tune?
Rage against the copyright? (Score:2)
Set up a Facebook group to fight against the continued xmas dominance of Simon Cowell's evolved algorithms.
Re: (Score:2)
composers accidentally do this all the time.
John Williams and his enourmous pile of money would like to have a word with you.
Re: (Score:2)
...and George Harrison would like to have a word with YOU.
http://www.youtube.com/watch?v=bsUkACDSIZY [youtube.com]
Re: (Score:2)
... call 1.800.783.8068 and ask for John Edward. He will get the message through.
Re: (Score:2)
True. I don't think our copyright system accomodates for covergent evolution in user-generated content.
The RIAA on the other hand is staunchly opposed to evolution of any type, as it's what's threatening their buisiness model.
pedant edit (Score:2)
I guess this isn't really user generated content.
Re: (Score:2)
Well, nothing in particular. But this experiment is about evolving electronic music, as opposed to mainstream music. I suppose it would be possible to "steer" the song towards a familiar tune, but it would be pretty difficult given that all of the loops I heard were comprised of elements of the electronic genre, and also because the individually-rated loops are so short.
Careful what you ask for! (Score:3, Funny)
Your wish is our Slashdotting! That's a name-brand CPU cooling solution you're running, right? Gooood.
Re: (Score:2)
>...but now things have gone quiet and we'd really appreciate some Slashdotter idle time.
Your wish is our Slashdotting! That's a name-brand CPU cooling solution you're running, right? Gooood.
I don't think that COTS is going to work. He'll have to have some kind of custom liquid cooling package. Maybe they could have a mic hooked up to the CPU and the sound they're actually trying to get is what happens acoustically when a CPU dies.
Drew Curtis (of Fark) has the same kind of sentiment. "You want traffic? Be careful what you wish for."
Music by "intelligent design" (Score:2)
Re: (Score:2)
Not really. Instead of thinking of it as music you like versus music you don't like, think of it as music that succedes and music that doesn't. By analogy, imagine the listeners are hunters and the music the prey, better music is equivilent to prey that is better at evading preditors.
Maybe a more interesting experiment would be to have a baseline of human generated music which the computer generated music would have to hide in. Play it as a loop with computer generated music randomly interspersed with hu
grammidity (Score:4, Interesting)
I've written a few genetic algorithm/programming things for "music" over the years. However, not being a musician, I approached it only from an algorithmic perspective. The last of these, called "grammidity" can attempt to evolve sequences of midi events based on a kind of grammar that evolves (loosely based on the ideas behind L-systems). I had it online for a couple of years, but it never evolved much of anything interesting. The source code (java) is on sourceforge [sourceforge.net] and includes ways to evolve "plants" and a fuzzer that generates html and which worked quite nicely to break browsers a couple of years back.
A good idea in theory (Score:2)
The first is that there isn't strong enough evolutionary pressure. There are too many people rating with very different opinions of what sounds good. I think it would be much more interesting to create different channels. Classical, jazz, ambient, electronica, whatever. It's still a very broad definition but not so much that our ratings aren't just n
Re: (Score:2)
"Secondly, the algorithms used to generate the music are really important."
They are fundamentaly flawed...
I Like ketchup, beer and chocolate, but put these all in a blender and it tastes like shit.
To top it: evolution is no longer pressent. What is evolution? Those who are fit for their environment survive and all others die. Currently we are no longer adapting to our invironment, but adapting our environment to ourselves.
Nice idea, but an utter failure, sorry...
Re: (Score:2)
Currently we are no longer adapting to our invironment, but adapting our environment to ourselves.
You are incorrect. There is plenty of evidence to suggest that human evolution is not only still happening, but accelerating.
http://www.cnn.com/2007/TECH/science/12/13/evolution.speedup/index.html [cnn.com]
The rest of your post was equally nonsensical.
Re: (Score:2)
"You are incorrect. There is plenty of evidence to suggest that human evolution is not only still happening, but accelerating."
Yeah... ever heared of traveling? The world is getting smaller you know...
"The rest of your post was equally nonsensical."
What do you mean? Did you even RTFA, all joking aside? It goes like this:
Create random techno loops. Which ones do you like? Ah you like loop 1, 2 and 3 (ketchup, beer and chocolate).
*statistics*
*Auto song creation (the blender)*
Ladies and gentleman. After a gazi
Re: (Score:2)
To top it: evolution is no longer pressent.
I think that you might need to rethink this. Every time someone selects a mate and reproduces, they are reacting to their environment and, well, evolving! It's hard for me to fathom how you could successfully argue that there is no selection pressure on humans. Sure, the "death before reproduction" aspect may be all but gone in the developed world, but there's still quite a bit of mating going on - and plenty of selection. And in the developing world, well, you still have plenty of good old fashioned death
Re: (Score:2)
"Every time someone selects a mate and reproduces, they are reacting to their environment and, well, evolving!"
Not really. Or at least not in the western world... It is humans that devine culture. It is culture that devines evolution. Todays hot, might be tommorows not. Skinny girls on TV? Suddenly that's hot. Remember the days that chest hair was cool? Now it's disgusting, suddenly. Being manly was the way to go. Today it's metrosexual...
"It's hard for me to fathom how you could successfully argue that the
Re: (Score:2)
Or at least not in the western world... It is humans that devine culture.
I wasn't referring to pop culture so much... we select mates in ways that might surprise you. If you are a reader, you might enjoy "The Third Chimpanzee" by Jared Diamond... it has a whole section on mate selection.
There is. Sure there is. It's just that we make our own...
But some of us are better at "the game" than others, and this does change our genome.
Re: (Score:2)
I was able to do some rating for a while, and I think the results are fairly cool, but it may not produce anything very interesting for a couple reasons.
The first is that there isn't strong enough evolutionary pressure. There are too many people rating with very different opinions of what sounds good. I think it would be much more interesting to create different channels. Classical, jazz, ambient, electronica, whatever. It's still a very broad definition but not so much that our ratings aren't just noise.
You're right, and this is why we wanted to do the experiment. Nearly a month ago we had 120 Imperial College students do 250 ratings each for us over a week. We replicated the experiment 3 times (40 students per population) and assumed that these students would have a mix of musical and cultural backgrounds. We got 75 generations out of it, and the results were much more musical than the random material we started with [darwintunes.org], but now we realise that 200+ generations is where it's at!
Secondly, the algorithms used to generate the music are really important. I couldn't find any information on it, but the way the notes are put together seems fairly random. I think it's important to stick to what we do know sounds good... to an extent. For example, the gene could contain information on which way to move the current note, rather than the specific note. That way you could limit it to 2 or 3 steps and lay it over a scale or mode. The willy nillyness of it will guarantee that we pick 'safe' consonant sounding harmonies. 5ths and 4ths with beep boop melodies.
Very interesting though, I can't wait to see what happens with this.
Absolutely, the choice of 4
Re: (Score:2)
I did some ratings, and having a musical background I intentionally listened for and voted up stuff that was more adventurous. There were one or two that had some very nice dominant 7ths in them--not too far off the beaten path (since they're in every blues song ever) but more interesting to my ear.
I stopped rating for the night because I noticed I was getting bored with the single-note drone that underlay all the loops I heard, which made it hard to distinguish among many loops. Something almost identica
Creative Commons license (Score:2)
I'm looking forward to future generations when they start to do good transitions between different loops, that will be interesting.
my thoughts (Score:2)
Found myself with some time to kill, so I had a go at this. Here are my thoughts:
1. The original loop (linked to in the summary) has a recognizable beat, even if many of the accompanying tones sound dreadful together. I'll put it this way: generation 0 sounded way better than a lot of the stuff I've seen try to pass for "electronic music" on YouTube. The original loop already had a fair amount of complexity to start with. I'd be more impressed if they began with a loop that had several sine waves with compl
Re: (Score:2)
Thanks for the comments. I'll take them one by one (while I wait for the algorithm to tick over to 250 generations).
1. to give a fair comparison with the hand-picked better sounding loops given in all the subsequent "tasters", the time=zero loops are also hand-picked. Rest assured that most of them sounded pretty horrific. Yes we did set a minimum amount of complexity (I think it was at least 8 different "tracks") in the initial Adam and Eve, but then let them evolve under no selection for a long time.
2
Re: (Score:2)
Hey, I dig this. Also enjoyed Like Ani.
plus or minus? (Score:2)
The phase space of this experiment is too large to explore with the simple rating system. No wonder the "survivors" all sound hyper-sequenced and repetitive, and nothing like Beethoven. What's happening is a bifurcation of the binary number space, because a music sequence is just a binary value occurring on a binary timeline, and each vote of plus or minus is a bifurcation of that space. An "i love it" vote is no less a simple plus, just a plus with extra survival chances.
The problem is that within the regi
Nostalgic (Score:2)
Anyone remember Terry Riley's In C? This reminds me of it; now if they just had several sources going through the fragments at different rates...
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:3, Funny)
Polytheism in a nutshell!
Re: (Score:2)
No problems loading here. After a couple of minutes, I'm tired of it. Time to kill it. No cowbells. No drums. No strings. No piano. Nada. Just strange synthesizer noises from decades ago - as has already been pointed out. A couple of loops almost sound good, but mostly just boring repetition.
Re: (Score:2)
Head to Evolectronica when the slashdot dust has settled. I'm planning to give it a make-over and some banging new evo-tunes.
Re: (Score:2)
Re: (Score:2)
Not me. I just threw in an overused meme. ;^)
Re: (Score:2)
Some people are having problems with the New Scientist link. AardvarkCelery has some info in the post currently below this
http://entertainment.slashdot.org/comments.pl?sid=1485740&cid=30521010 [slashdot.org]