<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Introduction to genetic algorithms? And texts on using genetic algorithms for automatic music composition?</title>
	<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition/</link>
	<description>Comments on Ask MetaFilter post Introduction to genetic algorithms? And texts on using genetic algorithms for automatic music composition?</description>
	<pubDate>Thu, 29 Apr 2004 21:53:13 -0800</pubDate>
	<lastBuildDate>Thu, 29 Apr 2004 21:53:13 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Introduction to genetic algorithms? And texts on using genetic algorithms for automatic music composition?</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition</link>	
		<description>I&apos;ve been playing around with the idea of using a genetic algorithm for automatic music composition, but I can&apos;t seem to find a decent introduction/reference on the subject -- the best I&apos;ve seen is a few relatively high-level academic papers. Could anyone direct me to a good source, or even give a brief overview? Thanks! &lt;br /&gt;&lt;br /&gt; Note: I&apos;m looking for something really basic to start with, perhaps with a limited range of notes and low requirements for processing power (think microcontrollers).</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2004:site.6896</guid>
		<pubDate>Thu, 29 Apr 2004 21:16:23 -0800</pubDate>
		<dc:creator>Krrrlson</dc:creator>
		
			<category>GeneticAlgorithm</category>
		
			<category>Music</category>
		
			<category>Composition</category>
		
			<category>Genetic</category>
		
			<category>Software</category>
		
			<category>Computers</category>
		
	</item> <item>
		<title>By: Ethereal Bligh</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139143</link>	
		<description>I&apos;m curious: what are you going to test fitness against?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139143</guid>
		<pubDate>Thu, 29 Apr 2004 21:53:13 -0800</pubDate>
		<dc:creator>Ethereal Bligh</dc:creator>
	</item><item>
		<title>By: weston</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139148</link>	
		<description>Krrrlson: I can&apos;t give you pointers to resources, but I&apos;ll give you some advice, which probably isn&apos;t worth too much, but the university where I studied gave me $1000 to think about this for a while, so...&lt;br&gt;
&lt;br&gt;
(1) I got really, really excited about using GAs for composition when I first learned about them. After a while, though, I realized that (like any GA) they&apos;re only roughly as good as your ability to codify a desireable goal as a fitness function. This can be hard to do with art. &lt;br&gt;
&lt;br&gt;
Not impossible at all, probably more feasible with music than with any other art. But if you&apos;re gonna succeed, you&apos;re going to have to break down the art of composition into some good sub goals where you can give some good rules about what success is.&lt;br&gt;
&lt;br&gt;
What are the tasks you want your GAs to accomplish? A series of feel-good melodic intervals? A catchy rhythm? An interesting harmonic progression? One that&apos;s roughly valid under the rules of four-part harmony? Or maybe a just getting [this is good] votes from passerby on the internet, after serving a series of random tunes to visitors.  Really, you either have to build some mechanism for recording subjective feedback, or you have to construct some sort of semi-deterministic rules (based on statistical analysis of music, or understanding of theory) that gives you a sort of quasi-Markov automata.&lt;br&gt;
&lt;br&gt;
(2) Once I got my goals defined, I got lost in a subject I&apos;m coming to regard as a complete quagmire:  date format / protocol for evaluation, manipulation, representation of the music you&apos;ve generated.  MIDI? NIFF? ENIGMA? Lime&apos;s format? Roll my own? &lt;a href=&quot;http://www.ccarh.org/publications/books/beyondmidi/&quot;&gt;There&apos;s a lot of formats out there&lt;/a&gt;. I eventually settled on a very simple little scheme which I&apos;d translate into playable audio manually after output, though I wish in retrospect I&apos;d come up with a tool that output MIDI or maybe, if I felt masochistic, CSound scores. &lt;br&gt;
&lt;br&gt;
I ended up choosing to try to generate novel but non-jarring harmonizations of a melody. I scored harmonizations by progressions that occured within them, and by checking how well melodic tones fit with a suggested chord in the time interval that chord applied. &lt;br&gt;
&lt;br&gt;
Overally, I didn&apos;t come up with great results, though there was some interesting stuff (which I&apos;m not sure I couldn&apos;t have gotten out of a simpler Markov-Matrix type model).  But maybe if I could have tweaked or nuanced my fitness functions.... which brings us back to the reason why researchers love GAs. Because you can spend years tweaking your fitness functions. I don&apos;t know if the grant givers have caught on yet.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139148</guid>
		<pubDate>Thu, 29 Apr 2004 22:07:10 -0800</pubDate>
		<dc:creator>weston</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139157</link>	
		<description>Fitness functions are the problem, indeed. I&apos;m an ecologist who&apos;s also using evolutionary algorithms, and a key point about selection is that &lt;i&gt;fitness varies with environment&lt;/i&gt;.  Whereby, in this case, the environment is the &lt;i&gt;listeners&lt;/i&gt;, all of whom will have a different opinion of what a &quot;fit&quot; song is.  On top of that, it will be a slow process if you use actual human ears to test on.  If you want to use evolutionary algorithms to generate something truly novel, your initial genotypes are going to have to be wide and varied, resulting in a very low proportion of tunes that anyone would judge to be listenable.  That&apos;s going to create a strong selective force, sure, but also a lot of gene fixation and loss of genetic diversity.&lt;br&gt;
&lt;br&gt;
I&apos;m not sure if you want any general references on constructing GA&apos;s (not necessarily in a musical context), but if anyone out there has some, I&apos;d be interested in seeing them too.&lt;br&gt;
&lt;br&gt;
&lt;i&gt; Because you can spend years tweaking your fitness functions. I don&apos;t know if the grant givers have caught on yet.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
They only give me 3 years to do this PhD...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139157</guid>
		<pubDate>Thu, 29 Apr 2004 23:17:28 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: gsteff</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139161</link>	
		<description>I know nothing about this subject.  But I use databases frequently, including postgresql.  Postgre apparently uses a genetic algorithm to plan some of its more complex queries.  Thus, the postgre manual has some references on genetic algorithms.  The &quot;further reading&quot; section actually has a subsection about music.  All googlable.&lt;br&gt;
&lt;br&gt;
Evolution of music: &lt;br&gt;
&lt;ul&gt;&lt;br&gt;
&lt;li&gt;GenJam (Genetic Jammer) is an interactive genetic algorithm by Al Biles that learns to play jazz solos. See also: Neural Network Fitness Functions for a Musical IGA &lt;/li&gt;&lt;br&gt;
&lt;li&gt;GenBebop by Lee Spector &lt;/li&gt;&lt;br&gt;
&lt;li&gt;Sonomorphs (An Application of Genetic Algorithms to the Growth and Development of Musical Organisms), and Further Adventures of the Sonomorphs by Gary Lee Nelson &lt;/li&gt;&lt;br&gt;
&lt;li&gt;GAMusic 1.0 by Jason H. Moore &lt;/li&gt;&lt;/ul&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139161</guid>
		<pubDate>Thu, 29 Apr 2004 23:41:03 -0800</pubDate>
		<dc:creator>gsteff</dc:creator>
	</item><item>
		<title>By: andrew cooke</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139183</link>	
		<description>as everyone else has said, it&apos;s the fitness function that matters.  to the point where you really shouldn&apos;t bother worrying about anything else until you have a good idea of how to measure how good your music is - otherwise there&apos;s nothing to &quot;guide&quot; your population from random noise to sweet harmony.&lt;br&gt;
&lt;br&gt;
i did something similar for rhythms, rather than music (seemed like a simpler problem).  my approach was to use a representation that is constrained to provide relatively regular output and then select for the most random results.  the idea being that perhaps there is a ontinuum between regularity and randomness, and i would be able to evolve along that line until i hit upon something useful.&lt;br&gt;
&lt;br&gt;
it was fun, but never a huge success.&lt;br&gt;
&lt;br&gt;
you  might try something similar for meodies, using a system that generates predictable melodies and progressively disturbing it.  however, the continuum hypothesis didn&apos;t really hold for rhythms - it&apos;s much less likely to do so for melody.&lt;br&gt;
&lt;br&gt;
one site that used to be quite helpful (years ago!) is &lt;a href=&quot;http://www.generation5.org/&quot;&gt;generation5.org&lt;/a&gt;.  no idea how it is now.&lt;br&gt;
&lt;br&gt;
some notes of mine &lt;a href=&quot;http://www.acooke.org/jara/rytmo/index.html&quot;&gt;here&lt;/a&gt;; even less detail about a rewrite in ml (original was lisp code that modified itself) &lt;a href=&quot;http://www.acooke.org/andrew/diary/2002/feb/13.html&quot;&gt;here&lt;/a&gt;,</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139183</guid>
		<pubDate>Fri, 30 Apr 2004 04:29:37 -0800</pubDate>
		<dc:creator>andrew cooke</dc:creator>
	</item><item>
		<title>By: andrew cooke</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139188</link>	
		<description>rats.  currently fixing up some missing pages on the site related to that.  if anyone tried that link, please try again in a few mins.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139188</guid>
		<pubDate>Fri, 30 Apr 2004 04:55:00 -0800</pubDate>
		<dc:creator>andrew cooke</dc:creator>
	</item><item>
		<title>By: quonsar</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139248</link>	
		<description>10 monkeys in a room with bongos and a xylophone, and you don&apos;t need no steenkin&apos; algorithm! but please, there&apos;s enough noise in the world.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139248</guid>
		<pubDate>Fri, 30 Apr 2004 07:40:44 -0800</pubDate>
		<dc:creator>quonsar</dc:creator>
	</item><item>
		<title>By: Dean King</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139267</link>	
		<description>On the music side, you might be interested in this (long) thread on the Reaktor forum: &lt;a href=&quot;http://www.nativeinstruments.de/forum/showthread.php?threadid=7979&quot;&gt;An Introduction to Algorithmic Composition&lt;/a&gt;. Not really the &quot;introduction/reference&quot; you&apos;re looking for, but some interesting discussion about music theory, math, and the role of the artist, plus links to further resources.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139267</guid>
		<pubDate>Fri, 30 Apr 2004 08:20:21 -0800</pubDate>
		<dc:creator>Dean King</dc:creator>
	</item><item>
		<title>By: plinth</title>
		<link>http://ask.metafilter.com/6896/Introduction-to-genetic-algorithms-And-texts-on-using-genetic-algorithms-for-automatic-music-composition#139336</link>	
		<description>You might try contacting Peter Langston who has written a slew of applications to do just this.  I found &lt;a href=&quot;http://www.langston.com/Boogie/&quot;&gt; this one&lt;/a&gt; on his site.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.6896-139336</guid>
		<pubDate>Fri, 30 Apr 2004 10:42:25 -0800</pubDate>
		<dc:creator>plinth</dc:creator>
	</item>
	</channel>
</rss>
