<?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>Openlab Workshops &#187; code</title>
	<atom:link href="http://openlabworkshops.org/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://openlabworkshops.org</link>
	<description>In-depth workshops exploring creating and hacking media using free software and tools.</description>
	<lastBuildDate>Fri, 11 Jun 2010 16:44:58 +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>Using Jag&#8217;s Jack Software Examples</title>
		<link>http://openlabworkshops.org/using-jags-jack-software-examples/</link>
		<comments>http://openlabworkshops.org/using-jags-jack-software-examples/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 17:13:59 +0000</pubDate>
		<dc:creator>evan</dc:creator>
				<category><![CDATA[Materials]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jack]]></category>
		<category><![CDATA[jackpilot]]></category>
		<category><![CDATA[jag]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://openlabworkshops.org/?p=66</guid>
		<description><![CDATA[Hi gang, here is a short how-to for using the Jack audio server and compiling and using Jag&#8217;s examples form his workshop on OS X.
If you&#8217;re on linux, you can install jack through your favorite package manager, then install svn (subversion) and get Jag&#8217;s code and instructions from his project page.
If you&#8217;re an OS X [...]]]></description>
			<content:encoded><![CDATA[<p>Hi gang, here is a short how-to for using the Jack audio server and compiling and using Jag&#8217;s examples form his workshop on OS X.</p>
<p>If you&#8217;re on <strong>linux</strong>, you can install jack through your favorite package manager, then install svn (subversion) and get Jag&#8217;s code and instructions <a title="jack-tuner- project page" href="http://code.google.com/p/jack-tuner/source/checkout" target="_blank">from his project page</a>.</p>
<p>If you&#8217;re an OS X version of some sort, please read on.</p>
<p>First, go get JackPilot and Jack: <a title="Jack OS X" href="http://www.jackosx.com/download.html" target="_blank">http://www.jackosx.com/download.html</a> (download the version for your version of OS X).  Install it, and restart the computer.  We&#8217;ll wait here while you do that&#8230;</p>
<p>Next, run JackPilot (from your /Applications folder).<a href="http://openlabworkshops.org/wp-content/uploads/2009/10/jackpilot.jpg"><img class="alignnone size-full wp-image-70" title="jackpilot" src="http://openlabworkshops.org/wp-content/uploads/2009/10/jackpilot.jpg" alt="jackpilot" width="390" height="228" /></a></p>
<p>Now we need to set up our sound device.  The odd thing about the Mac laptops is that they have different sound drivers for input and output, which is a pain for Jack to deal with.  We&#8217;ll need to create an &#8220;Aggregate Device&#8221; which smushes together the inputs and outputs into a single, virtual device.  Luckily, this is easy to do.</p>
<p><a href="http://openlabworkshops.org/wp-content/uploads/2009/10/jackpilot-menu.jpg"><img class="alignnone size-full wp-image-69" title="jackpilot-menu" src="http://openlabworkshops.org/wp-content/uploads/2009/10/jackpilot-menu.jpg" alt="jackpilot-menu" width="423" height="279" /></a></p>
<p>Open Audio Midi Setup (an application in your Applications/Utilities folder on your Mac) and then we&#8217;ll create the aggregate device.  Note that from the JackPilot menu you can also get to your Sound Preferences at the click of a button (we&#8217;ll need this soon enough).</p>
<p>In Audio Midi Setup choose &#8220;Open Aggregate Device Editor&#8221; from the top menu as below:</p>
<p><a href="http://openlabworkshops.org/wp-content/uploads/2009/10/aggr-dev-editor.jpg"><img class="alignnone size-full wp-image-72" title="aggr-dev-editor" src="http://openlabworkshops.org/wp-content/uploads/2009/10/aggr-dev-editor.jpg" alt="aggr-dev-editor" width="600" height="369" /></a></p>
<p>Next, click the + sign to add a new aggregate device, and make it look the way it does in this screenshot:</p>
<p><a href="http://openlabworkshops.org/wp-content/uploads/2009/10/aggregate-device.png"><img class="alignnone size-full wp-image-67" title="aggregate-device" src="http://openlabworkshops.org/wp-content/uploads/2009/10/aggregate-device.png" alt="aggregate-device" width="600" height="362" /></a></p>
<p>Now click &#8220;done&#8221; and you&#8217;ve got a brand new audio device that you can use with Jack. Go grab a coffee, or a biscuit, and pat yourself on the back because we&#8217;re almost done.</p>
<p>Close Audio Midi Setup and go back to JackPilot.  Now, choose &#8220;Open Sound Preferences&#8221; from the top menu that you chose &#8220;Open Audio Midi setup&#8221; from before.  In Sound Preferences, choose your &#8220;Aggregate Device&#8221; as your audio output:</p>
<p><a href="http://openlabworkshops.org/wp-content/uploads/2009/10/sound-prefs.jpg"><img class="alignnone size-full wp-image-71" title="sound-prefs" src="http://openlabworkshops.org/wp-content/uploads/2009/10/sound-prefs.jpg" alt="sound-prefs" width="500" height="359" /></a></p>
<p>Do the same for the input (under the &#8220;input&#8221; tab).  Now we&#8217;re ready to use Jack! One thing to note is that your volume keys won&#8217;t work with this Aggregate Device, you&#8217;ll need to control all your volume via software.  A pain, I know, but such is life.</p>
<p>Go back to JackPilot and hit the &#8220;start&#8221; button to start the Jack server.</p>
<p>Now you need to download the handy disk image containing <a title="jack-tuner disk image" href="http://stuff.openlabworkshops.org/jack-tuner.dmg" target="_self">the XCode project file and supporting files</a>.</p>
<p>Open the disk image and copy the files to a safe place on your computer, like the Documents folder.  Double-click the project file.  Oh, make sure that XCode (part of the Developer tools) is installed &#8211; if not, you can install it off the OS X disk that came with your computer, or (better yet) download it from <a href="http://developer.apple.com">Apple&#8217;s Developer website</a> (free registration) which will give you a newer version with better support.</p>
<p>Once you have the project open in XCode, go to the top menu and click <strong>Run</strong> and then <strong>Console</strong> or press SHIFT+CMD+R.  You should see the a console window pop-up, where you can type in commands and get some textual feedback from the program.  Now click the &#8220;Build and Go&#8221; button on the top bar of any window, which has a little green play arrow, and the program should run (you&#8217;ll see some text in the console window).</p>
<p>We need to connect our jack-tuner program to Jack, now, so go back to JackPilot and hit the &#8220;routing&#8221; button.  you&#8217;ll see a window of connections pop up, like so:</p>
<p><a href="http://openlabworkshops.org/wp-content/uploads/2009/10/connect-jack-tuner.png"><img class="alignnone size-full wp-image-68" title="connect-jack-tuner" src="http://openlabworkshops.org/wp-content/uploads/2009/10/connect-jack-tuner.png" alt="connect-jack-tuner" width="622" height="609" /></a></p>
<p>Click on the &#8220;out&#8221; under jack-tuner (our client) and then double-click &#8220;playback_1&#8243; under &#8220;System&#8221; as above to make a connection.  (Double-click it again to break the connection.)  Now you should hear some sound!  Go back to XCode and type in commands into the Console and play with your tuner!</p>
]]></content:encoded>
			<wfw:commentRss>http://openlabworkshops.org/using-jags-jack-software-examples/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
