<?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: Arduino Controlled Music Lights!</title>
	<atom:link href="http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/feed/" rel="self" type="application/rss+xml" />
	<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/</link>
	<description>Overengineering the Complicated</description>
	<lastBuildDate>Mon, 13 Jun 2011 01:56:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-934</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 17 Feb 2011 20:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-934</guid>
		<description>Copy-and-pasted from an email I sent back to Matt:

It&#039;s awesome that you are working with the Arduino - thats how I started and I think it was probably the best approach to learning about electronics. I&#039;ve been studying for my undergraduate degree in college so I have very limited amount of time to browse the Internet which is why its been hard to get around to your question.

This project you referred to was lost in a computer crash - so I have no code to give you. But let me give you a few hints.

I used the &quot;Minim&quot; library for java that you can find here: http://code.compartmental.net/tools/minim/. I believe this library is now included with Processing now (the platform I used to communicate over serial to the arduino).

Minim requires an audio input, so you can either run a splitter from an ipod to your microphone port on your computer, or use some sort of software to route the sound output from your computer back as an input. I ran my software on a Mac so I used a piece of software called SoundFlowerBed.

Anyways, Minim has a BeatDetect class (seen here: http://code.compartmental.net/tools/minim/manual-beatdetect/) It was useful in the video I had but it can be pretty jumpy sometimes.

You can also use what is called a Fast Fourier Transform (FFT For short) (Minim does this too, check out their documentation.) An FFT basically takes your audio input and seperates it into frequency ranges. So basically you can tell how loud the audio is from say 0-60 Hz and compare that with the entire audio signal. From there I was able to basically look at the &quot;jumps&quot; produced by the bass of the music and determine if that is a beat compared to how the jumps occurred in the last say 10 seconds.

Beat detection is a fairly complex thing to do - and I never got it to really &quot;work&quot; half of the time. For example, a snare hit spreads across the whole frequency spectrum of hearing (20-20000Hz) so when I compared the lower frequencies to everything else, it just seems that it fit in.

I went a long way since then, and found the best effect is when you just change the intensity of the light with respect to how loud those lower frequencies are. You can see this in my video I attached of my last lighting project.

I hope this gives you some ideas, good luck with your project.</description>
		<content:encoded><![CDATA[<p>Copy-and-pasted from an email I sent back to Matt:</p>
<p>It&#8217;s awesome that you are working with the Arduino &#8211; thats how I started and I think it was probably the best approach to learning about electronics. I&#8217;ve been studying for my undergraduate degree in college so I have very limited amount of time to browse the Internet which is why its been hard to get around to your question.</p>
<p>This project you referred to was lost in a computer crash &#8211; so I have no code to give you. But let me give you a few hints.</p>
<p>I used the &#8220;Minim&#8221; library for java that you can find here: <a href="http://code.compartmental.net/tools/minim/" rel="nofollow">http://code.compartmental.net/tools/minim/</a>. I believe this library is now included with Processing now (the platform I used to communicate over serial to the arduino).</p>
<p>Minim requires an audio input, so you can either run a splitter from an ipod to your microphone port on your computer, or use some sort of software to route the sound output from your computer back as an input. I ran my software on a Mac so I used a piece of software called SoundFlowerBed.</p>
<p>Anyways, Minim has a BeatDetect class (seen here: <a href="http://code.compartmental.net/tools/minim/manual-beatdetect/" rel="nofollow">http://code.compartmental.net/tools/minim/manual-beatdetect/</a>) It was useful in the video I had but it can be pretty jumpy sometimes.</p>
<p>You can also use what is called a Fast Fourier Transform (FFT For short) (Minim does this too, check out their documentation.) An FFT basically takes your audio input and seperates it into frequency ranges. So basically you can tell how loud the audio is from say 0-60 Hz and compare that with the entire audio signal. From there I was able to basically look at the &#8220;jumps&#8221; produced by the bass of the music and determine if that is a beat compared to how the jumps occurred in the last say 10 seconds.</p>
<p>Beat detection is a fairly complex thing to do &#8211; and I never got it to really &#8220;work&#8221; half of the time. For example, a snare hit spreads across the whole frequency spectrum of hearing (20-20000Hz) so when I compared the lower frequencies to everything else, it just seems that it fit in.</p>
<p>I went a long way since then, and found the best effect is when you just change the intensity of the light with respect to how loud those lower frequencies are. You can see this in my video I attached of my last lighting project.</p>
<p>I hope this gives you some ideas, good luck with your project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-929</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 27 Jan 2011 22:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-929</guid>
		<description>Hi, i am in an arduino class, and we are currently doing self projects. I would like to make a light that responds to the beat, similar to your arduino controlled music lights. I am a beginner and having trouble with the coding, is there any chance you could send me the coding you use to make it work properly? Thanks - Matt</description>
		<content:encoded><![CDATA[<p>Hi, i am in an arduino class, and we are currently doing self projects. I would like to make a light that responds to the beat, similar to your arduino controlled music lights. I am a beginner and having trouble with the coding, is there any chance you could send me the coding you use to make it work properly? Thanks &#8211; Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpelunkingHenry</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-328</link>
		<dc:creator>SpelunkingHenry</dc:creator>
		<pubDate>Mon, 30 Nov 2009 23:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-328</guid>
		<description>Have you tried to use analog pins to define a better signal variation or does MINIM not do analog?  Also,rather than just on and off - have you tried to connect multiple lights to include fade-in&#039;s/out&#039;s to denote beats other than a solid beat and silence?</description>
		<content:encoded><![CDATA[<p>Have you tried to use analog pins to define a better signal variation or does MINIM not do analog?  Also,rather than just on and off &#8211; have you tried to connect multiple lights to include fade-in&#8217;s/out&#8217;s to denote beats other than a solid beat and silence?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcus</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-298</link>
		<dc:creator>marcus</dc:creator>
		<pubDate>Fri, 27 Nov 2009 00:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-298</guid>
		<description>please can you share the code,</description>
		<content:encoded><![CDATA[<p>please can you share the code,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grim</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-187</link>
		<dc:creator>Grim</dc:creator>
		<pubDate>Sun, 27 Sep 2009 22:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-187</guid>
		<description>Very nice! I&#039;m working on a similar project. Any chance you could share your code?</description>
		<content:encoded><![CDATA[<p>Very nice! I&#8217;m working on a similar project. Any chance you could share your code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sally</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-154</link>
		<dc:creator>Sally</dc:creator>
		<pubDate>Wed, 22 Apr 2009 06:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-154</guid>
		<description>Thanks alot!

I&#039;m completely new to this since I&#039;m not an engineering student. I&#039;ll try out what you told me. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks alot!</p>
<p>I&#8217;m completely new to this since I&#8217;m not an engineering student. I&#8217;ll try out what you told me. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-153</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sun, 19 Apr 2009 06:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-153</guid>
		<description>&lt;a href=&quot;#comment-152&quot; rel=&quot;nofollow&quot;&gt;@Sally&lt;/a&gt; 
I used MINIM to do the beat &lt;i&gt;detection&lt;/i&gt; - I then sent it to the arduino using processing&#039;s serial connection. I just sent a 1 or a 0 determining if the light should be on or not. 

If you wanted to actually play music via minim on the arduino would be a different story. If you wanted to interface with speakers, you could put the output from the analog output pins on the arduino through an amplifier (LM386?) and then to the speakers. I&#039;m not sure what quality of sound you might get out of it either. If you dont have analog out, then a digital-to-analog convert -&gt; LM386 should work as well. Thats more complicated though. Software wise, I would look at the AudioBuffer class in Minim to extract the sound data.


Good luck,
Andrew</description>
		<content:encoded><![CDATA[<p><a href="#comment-152" rel="nofollow">@Sally</a><br />
I used MINIM to do the beat <i>detection</i> &#8211; I then sent it to the arduino using processing&#8217;s serial connection. I just sent a 1 or a 0 determining if the light should be on or not. </p>
<p>If you wanted to actually play music via minim on the arduino would be a different story. If you wanted to interface with speakers, you could put the output from the analog output pins on the arduino through an amplifier (LM386?) and then to the speakers. I&#8217;m not sure what quality of sound you might get out of it either. If you dont have analog out, then a digital-to-analog convert -> LM386 should work as well. Thats more complicated though. Software wise, I would look at the AudioBuffer class in Minim to extract the sound data.</p>
<p>Good luck,<br />
Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sally</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-152</link>
		<dc:creator>Sally</dc:creator>
		<pubDate>Fri, 17 Apr 2009 00:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-152</guid>
		<description>Hey Andrew,

It&#039;s really cool that you were able to rig it up so quickly! 
I&#039;m doing a similar project but I used an Arduino Shield to play music instead. I am stuck in one part that I&#039;m guessing you are the only one who can answer. How did you manage to send the output of beat signals to the arduino through MINIM? Did you have to code something? 

Please help!</description>
		<content:encoded><![CDATA[<p>Hey Andrew,</p>
<p>It&#8217;s really cool that you were able to rig it up so quickly!<br />
I&#8217;m doing a similar project but I used an Arduino Shield to play music instead. I am stuck in one part that I&#8217;m guessing you are the only one who can answer. How did you manage to send the output of beat signals to the arduino through MINIM? Did you have to code something? </p>
<p>Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-138</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Sat, 04 Apr 2009 15:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-138</guid>
		<description>This looks awesome! I can&#039;t wait to see the finished project.

I second Joe&#039;s request.
I&#039;d love to see how you set this up, if that&#039;s okay with you.
Thanks!</description>
		<content:encoded><![CDATA[<p>This looks awesome! I can&#8217;t wait to see the finished project.</p>
<p>I second Joe&#8217;s request.<br />
I&#8217;d love to see how you set this up, if that&#8217;s okay with you.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Música controla luces a través de un Arduino &#171; Make: en español</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/comment-page-1/#comment-19</link>
		<dc:creator>Música controla luces a través de un Arduino &#171; Make: en español</dc:creator>
		<pubDate>Thu, 26 Mar 2009 02:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://invalidfunction.com/?p=45#comment-19</guid>
		<description>[...] Más sobre Música controla luces a través de un Arduino. [...]</description>
		<content:encoded><![CDATA[<p>[...] Más sobre Música controla luces a través de un Arduino. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

