<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mapping Music</title>
	<atom:link href="http://www.nicklally.com/mapping-music/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicklally.com/mapping-music/</link>
	<description></description>
	<lastBuildDate>Tue, 04 Oct 2011 16:13:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: nick</title>
		<link>http://www.nicklally.com/mapping-music/comment-page-1/#comment-2231</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Tue, 02 Feb 2010 19:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://nicklally.com/?p=621#comment-2231</guid>
		<description>Here&#039;s the code, let me know what you come up with!

nick

&lt;code&gt;import ddf.minim.analysis.*;
import ddf.minim.*;

Minim minim;
AudioPlayer song;
FFT fft;

float x, y, x2, y2;

void setup()
{
  background(255);
  size(1000, 1000);
  minim = new Minim(this);
  
  song = minim.loadFile(&quot;highplaces.mp3&quot;, 512);
  song.loop();
  // create an FFT object that has a time-domain buffer the same size as jingle&#039;s sample buffer
  // note that this needs to be a power of two and that it means the size of the spectrum
  // will be 512. see the online tutorial for more info.
  fft = new FFT(song.bufferSize(), song.sampleRate());
  x = width/2;
  y = height/2;
  
}

void draw()
{
  
  stroke(30,20);
  strokeWeight(1);
  
  // perform a forward FFT on the samples 
  fft.forward(song.mix);
  for(int i = 0; i &lt; 25; i++)
  {
    x2 = cos(fft.getBand(i)*8) * (fft.getBand(i)*3)/20.0 + x;
    y2 = sin(fft.getBand(i)*8) * (fft.getBand(i)*3)/20.0 + y;
    line(x2, y2, x, y);
    x = x2;
    y = y2;
  }
  fill(255);
}
 

void stop()
{
  // always close Minim audio classes when you finish with them
  song.close();
  minim.stop();
  
  super.stop();
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the code, let me know what you come up with!</p>
<p>nick</p>
<p><code>import ddf.minim.analysis.*;<br />
import ddf.minim.*;</p>
<p>Minim minim;<br />
AudioPlayer song;<br />
FFT fft;</p>
<p>float x, y, x2, y2;</p>
<p>void setup()<br />
{<br />
  background(255);<br />
  size(1000, 1000);<br />
  minim = new Minim(this);</p>
<p>  song = minim.loadFile("highplaces.mp3", 512);<br />
  song.loop();<br />
  // create an FFT object that has a time-domain buffer the same size as jingle's sample buffer<br />
  // note that this needs to be a power of two and that it means the size of the spectrum<br />
  // will be 512. see the online tutorial for more info.<br />
  fft = new FFT(song.bufferSize(), song.sampleRate());<br />
  x = width/2;<br />
  y = height/2;</p>
<p>}</p>
<p>void draw()<br />
{</p>
<p>  stroke(30,20);<br />
  strokeWeight(1);</p>
<p>  // perform a forward FFT on the samples<br />
  fft.forward(song.mix);<br />
  for(int i = 0; i < 25; i++)<br />
  {<br />
    x2 = cos(fft.getBand(i)*8) * (fft.getBand(i)*3)/20.0 + x;<br />
    y2 = sin(fft.getBand(i)*8) * (fft.getBand(i)*3)/20.0 + y;<br />
    line(x2, y2, x, y);<br />
    x = x2;<br />
    y = y2;<br />
  }<br />
  fill(255);<br />
}</p>
<p>void stop()<br />
{<br />
  // always close Minim audio classes when you finish with them<br />
  song.close();<br />
  minim.stop();</p>
<p>  super.stop();<br />
}</code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pires</title>
		<link>http://www.nicklally.com/mapping-music/comment-page-1/#comment-2140</link>
		<dc:creator>pires</dc:creator>
		<pubDate>Sun, 24 Jan 2010 16:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://nicklally.com/?p=621#comment-2140</guid>
		<description>this render looks really nice! i am trying myself to produce some graphics and animations on processing using music and some different sounds as well but im new to processing so its going to take a wile...do you have this projects code open source?

nice work! keep up...</description>
		<content:encoded><![CDATA[<p>this render looks really nice! i am trying myself to produce some graphics and animations on processing using music and some different sounds as well but im new to processing so its going to take a wile&#8230;do you have this projects code open source?</p>
<p>nice work! keep up&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nik</title>
		<link>http://www.nicklally.com/mapping-music/comment-page-1/#comment-434</link>
		<dc:creator>nik</dc:creator>
		<pubDate>Tue, 21 Apr 2009 06:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://nicklally.com/?p=621#comment-434</guid>
		<description>saweeet</description>
		<content:encoded><![CDATA[<p>saweeet</p>
]]></content:encoded>
	</item>
</channel>
</rss>

