<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Log</title>
	<atom:link href="http://code.compartmental.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.compartmental.net</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 03:49:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sound Byte: Broken Record</title>
		<link>http://code.compartmental.net/2010/09/01/sound-byte-broken-record/</link>
		<comments>http://code.compartmental.net/2010/09/01/sound-byte-broken-record/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 03:49:05 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[DSP]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=334</guid>
		<description><![CDATA[
I wrote a UGen the other day that allows you to change the tick rate (or sample rate, if you like), of any UGen that you patch to it. After making a mouse-driven example to test it out, I created this example so that the change in the tick rate could be driven by the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.compartmental.net/soundBytes/brokenRecord"><img src="http://code.compartmental.net/wp-content/uploads/2010/09/Screen-shot-2010-09-01-at-10.40.17-PM.png" alt="" title="Broken Record Screenshot" width="498" height="240" class="aligncenter size-full wp-image-335" /></a></p>
<p>I wrote a UGen the other day that allows you to change the tick rate (or sample rate, if you like), of any UGen that you patch to it. After making a mouse-driven example to test it out, I created this example so that the change in the tick rate could be driven by the audio itself. Here, the current loudness (RMS amplitude, to be exact) of the audio being looped directly adjusts the playback speed. Louder parts result in a higher tick rate. What you get sounds like a really broken record player. Not only is it stuck looping the same four bars, but it sounds like the timing belt is having all sorts of issues. <a href="http://code.compartmental.net/soundBytes/brokenRecord">Check it out</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/09/01/sound-byte-broken-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sound Byte: Filtered Tuning</title>
		<link>http://code.compartmental.net/2010/08/30/sound-byte-filtered-tuning/</link>
		<comments>http://code.compartmental.net/2010/08/30/sound-byte-filtered-tuning/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 05:05:05 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[DSP]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=322</guid>
		<description><![CDATA[
I&#8217;ve been meaning to try out some digital Moog filter code. A digital Moog filter is simply a filter that attempts to model the analog filters found on Moog synthesizers. It&#8217;s got two knobs: frequency and resonance. I yanked some code from musicdsp.org, a wonderful resource, and wrote a really simple UGen with it. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.compartmental.net/wp-content/uploads/2010/08/Screen-shot-2010-08-30-at-11.48.04-PM.png"><img src="http://code.compartmental.net/wp-content/uploads/2010/08/Screen-shot-2010-08-30-at-11.48.04-PM.png" alt="" title="Filtered Tuning Screenshot" width="498" height="198" class="aligncenter size-full wp-image-323" /></a></p>
<p>I&#8217;ve been meaning to try out some digital Moog filter code. A digital Moog filter is simply a filter that attempts to model the analog filters found on Moog synthesizers. It&#8217;s got two knobs: frequency and resonance. I <a href="http://www.musicdsp.org/showArchiveComment.php?ArchiveID=25">yanked some code</a> from musicdsp.org, a wonderful resource, and wrote a really simple UGen with it. I meant to write more of a song, but there&#8217;s never enough time for that in these evening coding forays. So instead, you get this kind of avant-garde slow tuning thing using amplitude modulation and tweaking of the filter values. <a href="http://code.compartmental.net/soundBytes/filteredTuning">Have a listen</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/08/30/sound-byte-filtered-tuning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BOOMBOX Video</title>
		<link>http://code.compartmental.net/2010/08/24/boombox-video/</link>
		<comments>http://code.compartmental.net/2010/08/24/boombox-video/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 03:14:06 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Video Games]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=318</guid>
		<description><![CDATA[DarknessKight, one of the members of the TIGSource forum, made this video walkthrough of BOOMBOX. It sounds like it&#8217;s not playing too nice in the browser, but it should give you the general feel of the game if you haven&#8217;t been able to play it:

]]></description>
			<content:encoded><![CDATA[<p>DarknessKight, one of the members of the TIGSource forum, made this video walkthrough of BOOMBOX. It sounds like it&#8217;s not playing too nice in the browser, but it should give you the general feel of the game if you haven&#8217;t been able to play it:</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/jbvIrUkao9A?fs=1&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jbvIrUkao9A?fs=1&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/08/24/boombox-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BOOMBOX</title>
		<link>http://code.compartmental.net/2010/08/08/boombox/</link>
		<comments>http://code.compartmental.net/2010/08/08/boombox/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 17:39:33 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Prototypes]]></category>
		<category><![CDATA[Video Games]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=311</guid>
		<description><![CDATA[
I&#8217;ve been working on a music game on and off for the past month for the TIGSource A Game By Its Cover compo. It&#8217;s inspired by this fake game cartridge:

You control a character in a 2D side-scrolling world and collect Jams, which you can then play to build up a sweet tune. There are other [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.compartmental.net/boombox"><img alt="The boombox dude hanging out on a platform." src="http://code.compartmental.net/boombox/boombox_screenshot.png" title="Boombox Screenshot" class="aligncenter" width="300" height="200" /></a></p>
<p>I&#8217;ve been working on a music game on and off for the past month for the TIGSource <a href="http://forums.tigsource.com/index.php?board=42.0">A Game By Its Cover</a> compo. It&#8217;s inspired by this fake game cartridge:</p>
<p><img src="http://code.compartmental.net/wp-content/uploads/2010/07/boombox.jpg" alt="" title="boombox" width="300" height="200" class="aligncenter size-medium wp-image-295" /></p>
<p>You control a character in a 2D side-scrolling world and collect Jams, which you can then play to build up a sweet tune. There are other boombox dudes in the world who will jam with you when you are playing what they want to hear. The goal is to simply collect all the jams in the level and then just jam out with them.</p>
<p><a href="http://code.compartmental.net/boombox">CHECK IT</a></p>
<p><strong>Credits:</strong></p>
<p>Amanda Williams &#8211; Environment Art<br />
Damien Di Fede &#8211; Music, Design, Programming<br />
Kevin Bennett &#8211; Music, SFX<br />
Oscar Garza &#8211; Animation<br />
Sean McIntosh &#8211; Environment Art, Character Design</p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/08/08/boombox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Sound Byte: Detuning Envelope Follower</title>
		<link>http://code.compartmental.net/2010/06/28/sound-byte-detuning-envelope-follower/</link>
		<comments>http://code.compartmental.net/2010/06/28/sound-byte-detuning-envelope-follower/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 04:07:41 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=279</guid>
		<description><![CDATA[
I had the wacky idea of using an envelope follower on a kick drum part to drive the center frequency of an oscillator. So I dug up some envelope following code on the internet and threw that together with some bits from the microtalk tune. Have a listen.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.compartmental.net/soundBytes/kickDetune"><img src="http://code.compartmental.net/wp-content/uploads/2010/06/Screen-shot-2010-06-28-at-10.56.32-PM.png" alt="" title="kickDetune screenshot" width="498" height="198" class="alignnone size-full wp-image-280" /></a></p>
<p>I had the wacky idea of using an envelope follower on a kick drum part to drive the center frequency of an oscillator. So I dug up some envelope following code on the internet and threw that together with some bits from the <a href="http://code.compartmental.net/2010/05/22/sound-byte-microtalk-tune/">microtalk tune</a>. <a href="http://code.compartmental.net/soundBytes/kickDetune">Have a listen</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/06/28/sound-byte-detuning-envelope-follower/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sound Byte: Microtalk Tune</title>
		<link>http://code.compartmental.net/2010/05/22/sound-byte-microtalk-tune/</link>
		<comments>http://code.compartmental.net/2010/05/22/sound-byte-microtalk-tune/#comments</comments>
		<pubDate>Sat, 22 May 2010 20:46:56 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=243</guid>
		<description><![CDATA[
I recently gave a 5 minute &#8220;microtalk&#8221; about Minim at an Austin IGDA event and included in it a couple examples using the new UGen framework. In fact, I wrote the presentation in Processing, but I don&#8217;t think it is really interesting enough to post the entire application. Instead, I pulled out the song I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.compartmental.net/soundBytes/microtalk_tune"><img src="http://code.compartmental.net/wp-content/uploads/2010/05/Screen-shot-2010-05-22-at-3.40.21-PM.png" alt="" title="Microtalk Tune Screenshot" width="504" height="399" class="alignnone size-full wp-image-244" /></a></p>
<p>I recently gave a 5 minute &#8220;microtalk&#8221; about Minim at an Austin IGDA event and included in it a couple examples using the new UGen framework. In fact, I wrote the presentation in Processing, but I don&#8217;t think it is really interesting enough to post the entire application. Instead, I pulled out the song I programmed for it as a standalone sketch. <a href="http://code.compartmental.net/soundBytes/microtalk_tune">Check it out.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/05/22/sound-byte-microtalk-tune/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sound Byte: Loop Chopper</title>
		<link>http://code.compartmental.net/2010/05/07/sound-byte-loop-chopper/</link>
		<comments>http://code.compartmental.net/2010/05/07/sound-byte-loop-chopper/#comments</comments>
		<pubDate>Sat, 08 May 2010 04:08:59 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=237</guid>
		<description><![CDATA[
This Sound Byte gives you sliders to control the parameters of a GranulateSteady UGen, which allows you chop up a sound as it plays. I&#8217;ve created a loop from the song Again and Again by The Bird and The Bee, which will hopefully get annoying enough that you&#8217;ll want to chop it into indiscernibility. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.compartmental.net/soundBytes/loop_chopper"><img src="http://code.compartmental.net/wp-content/uploads/2010/05/loop_chopper_img-300x225.png" alt="" title="loop_chopper_img" width="300" height="225" class="alignnone size-medium wp-image-239" /></a></p>
<p>This Sound Byte gives you sliders to control the parameters of a GranulateSteady UGen, which allows you chop up a sound as it plays. I&#8217;ve created a loop from the song Again and Again by The Bird and The Bee, which will hopefully get annoying enough that you&#8217;ll want to chop it into indiscernibility. The buttons along the side let you set the range of the sliders from quite small, to a full second.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/05/07/sound-byte-loop-chopper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minim in the Wild.</title>
		<link>http://code.compartmental.net/2010/05/02/minim-in-the-wild-2/</link>
		<comments>http://code.compartmental.net/2010/05/02/minim-in-the-wild-2/#comments</comments>
		<pubDate>Sun, 02 May 2010 18:43:06 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=232</guid>
		<description><![CDATA[From the pingbacks, a post about 3D Soundclash:

In February 2010, the Red Bull Music Academy prompted Warp Records and Ninja Tune for a Soundclash on a 3D sound system, staged in the Loading Bay of the Royal Albert Hall. FIELD developed a generative real-time application especially for this event, which motion designers Quayola and Thomas [...]]]></description>
			<content:encoded><![CDATA[<p>From the pingbacks, a post about <a href="http://www.creativeapplications.net/processing/3d-soundclash-processing/">3D Soundclash</a>:</p>
<blockquote><p>
In February 2010, the Red Bull Music Academy prompted Warp Records and Ninja Tune for a Soundclash on a 3D sound system, staged in the Loading Bay of the Royal Albert Hall. FIELD developed a generative real-time application especially for this event, which motion designers Quayola and Thomas Traum used to design and perform soundreactive visuals for the sets of Plaid, Clark, Mira Calix and many more.
</p></blockquote>
<p>Further down in the article it mentions that the application was built with Processing and uses Minim for the &#8220;sound interaction&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/05/02/minim-in-the-wild-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sound Bytes: Oscil as a looping sampler</title>
		<link>http://code.compartmental.net/2010/05/01/sound-bytes-oscil-as-a-looping-sampler/</link>
		<comments>http://code.compartmental.net/2010/05/01/sound-bytes-oscil-as-a-looping-sampler/#comments</comments>
		<pubDate>Sun, 02 May 2010 05:35:34 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[DSP]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=227</guid>
		<description><![CDATA[Eventually, we plan to add a UGen to Minim that will allow you to control the generating speed of any other UGen, but that got me thinking about how you might do something similar with existing components. So, I struck upon the idea of using an Oscil as a looping sampler by using an audio [...]]]></description>
			<content:encoded><![CDATA[<p>Eventually, we plan to add a UGen to Minim that will allow you to control the generating speed of any other UGen, but that got me thinking about how you might do something similar with existing components. So, I struck upon the idea of using an Oscil as a looping sampler by using an audio file as the Waveform and setting the frequency of the Oscil to be very low. The fun thing about this is that if you set the Oscil to a negative frequency, the sound will play in reverse. Additionally, I thought it&#8217;d be fun to be able to automate the changing of the frequency by having an LFO control the frequency of each Oscil (left and right channels of the original audio file). So here&#8217;s a sketch that lets you play with this setup:</p>
<p><a href="http://code.compartmental.net/soundBytes/sample_oscil"><img src="http://code.compartmental.net/wp-content/uploads/2010/05/sample_oscil_img-300x224.png" alt="Screenshot of the sample_oscil sketch." title="sample_oscil_img" width="300" height="224" class="alignnone size-medium wp-image-228" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/05/01/sound-bytes-oscil-as-a-looping-sampler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sound Byte: Mass-Spring-Damper System</title>
		<link>http://code.compartmental.net/2010/04/29/sound-byte-mass-spring-damper-system/</link>
		<comments>http://code.compartmental.net/2010/04/29/sound-byte-mass-spring-damper-system/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 03:35:17 +0000</pubDate>
		<dc:creator>ddf</dc:creator>
				<category><![CDATA[DSP]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Minim]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Sound Bytes]]></category>

		<guid isPermaLink="false">http://code.compartmental.net/?p=220</guid>
		<description><![CDATA[I&#8217;m picking my way through Real Sound Synthesis for Interactive Applications by Perry R. Cook (one of the authors of the STK) and decided to start making small apps to demonstrate the different kinds of synthesis he covers in the book. This first one let&#8217;s you set the variables of a mass-spring-damper system and then [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m picking my way through Real Sound Synthesis for Interactive Applications by Perry R. Cook (one of the authors of the <a href="https://ccrma.stanford.edu/software/stk/">STK</a>) and decided to start making small apps to demonstrate the different kinds of synthesis he covers in the book. This first one let&#8217;s you set the variables of a mass-spring-damper system and then trigger it, which is exactly the same as setting the coefficients of a two-pole IIR filter and sending an impulse into it (as it turns out). Check it:</p>
<p><a href="http://code.compartmental.net/soundBytes/mass_spring_damper"><img src="http://code.compartmental.net/wp-content/uploads/2010/04/mass-spring-damper-img-300x188.png" alt="Sceenshot of the mass-spring-damper applet." title="mass-spring-damper-img" width="300" height="188" class="alignnone size-medium wp-image-221" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://code.compartmental.net/2010/04/29/sound-byte-mass-spring-damper-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
