<?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>brysonian.com &#187; how-to</title>
	<atom:link href="http://brysonian.com/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://brysonian.com</link>
	<description>chandler b. mcwilliams</description>
	<lastBuildDate>Fri, 01 Jan 2010 10:50:07 +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>Audio issues in Processing on Leopard</title>
		<link>http://brysonian.com/2009/06/08/audio-issues-in-processing-on-leopard/</link>
		<comments>http://brysonian.com/2009/06/08/audio-issues-in-processing-on-leopard/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 18:58:31 +0000</pubDate>
		<dc:creator>chandler</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://brysonian.com/?p=54</guid>
		<description><![CDATA[A few of my students have run into an issue where the right speaker is distorted when playing audio through Minim or Sonia. After much googling we found a somewhat convoluted solution:
1) Go to Applications / Utilities and open Audio MIDI Setup.

2) In the drop-down labeled &#8220;Properties For&#8221; choose &#8220;Built-in Line Output.&#8221;

3) Under &#8220;Audio Output,&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>A few of my students have run into an issue where the right speaker is distorted when playing audio through Minim or Sonia. After much googling we found a somewhat convoluted solution:</p>
<p>1) Go to Applications / Utilities and open Audio MIDI Setup.</p>
<p><img class="alignnone size-full wp-image-57" title="audiomidisetupicon" src="http://brysonian.com/wp-content/uploads/2009/06/audiomidisetupicon.jpg" alt="audiomidisetupicon" width="150" height="150" /></p>
<p>2) In the drop-down labeled &#8220;Properties For&#8221; choose &#8220;Built-in Line Output.&#8221;</p>
<p><img class="alignnone size-full wp-image-55" title="audiomidisetup1" src="http://brysonian.com/wp-content/uploads/2009/06/audiomidisetup1.jpg" alt="audiomidisetup1" width="500" height="321" /></p>
<p>3) Under &#8220;Audio Output,&#8221; set the format to &#8220;44100.0 Hz.&#8221;</p>
<p><img class="alignnone size-full wp-image-56" title="audiomidisetup2" src="http://brysonian.com/wp-content/uploads/2009/06/audiomidisetup2.jpg" alt="audiomidisetup2" width="500" height="321" /></p>
<p>4) Quit Audio MIDI Setup and restart Processing.</p>
]]></content:encoded>
			<wfw:commentRss>http://brysonian.com/2009/06/08/audio-issues-in-processing-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing arguments to Processing sketches</title>
		<link>http://brysonian.com/2009/04/19/passing-arguments-to-processing-sketches/</link>
		<comments>http://brysonian.com/2009/04/19/passing-arguments-to-processing-sketches/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 17:13:13 +0000</pubDate>
		<dc:creator>chandler</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://brysonian.com/?p=45</guid>
		<description><![CDATA[I recently received an email asking about how to pass arguments when launching a processing sketch from the command line. I hadn&#8217;t ever done such a thing, but after some poking came up with an easy, though not exactly robust, solution. This example sets the value of the r, g, and b variables and uses [...]]]></description>
			<content:encoded><![CDATA[<p>I recently received an email asking about how to pass arguments when launching a processing sketch from the command line. I hadn&#8217;t ever done such a thing, but after some poking came up with an easy, though not exactly robust, solution. This example sets the value of the r, g, and b variables and uses them to set the background color.</p>
<p><script src="http://gist.github.com/98127.js"></script></p>
<p>The <code>main</code> method just clones the array of arguments into a &#8220;global&#8221; variable of the sketch. That variable needs to be declared static so it can be accessed by the <code>main</code> method, which is also static. Also, make sure that the string in <code>PApplet.main(new String[] { "passing_arguments" });</code> matches the name of your sketch. Next, just parse the array of arguments like you would anything else inside setup. It&#8217;s a good idea to make sure that you have any arguments at all (by checking for != null) and that you&#8217;ve got the number of arguments you expect. </p>
<p>Next you export the sketch (File > Export) then you can execute the .jar file from the command line using: <code>java -jar passing_arguments.jar 255 255 1</code> where passing_arguments.jar is the name of the jar file, and 255 255 1 are the values you want to use for the r, g, and b variables.</p>
<p>If you need something more robust, or need to use named switches, check out <a href="http://articles.techrepublic.com.com/5100-10878_11-5813561.html">this article</a> on using the <a href="http://commons.apache.org/cli/">Apache Commons CLI Library</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://brysonian.com/2009/04/19/passing-arguments-to-processing-sketches/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
