<?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: Phidgets + Quartz Composer</title>
	<atom:link href="http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/feed/" rel="self" type="application/rss+xml" />
	<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/</link>
	<description>DJing, VJing, Motion Graphics and all around hustlin'</description>
	<lastBuildDate>Wed, 09 Jun 2010 06:03:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: ian</title>
		<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/comment-page-1/#comment-10</link>
		<dc:creator>ian</dc:creator>
		<pubDate>Sat, 17 Feb 2007 15:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://originalhamsters.com/blog/?p=10#comment-10</guid>
		<description>Hi you can avoid reloading the patch in IB by programmatically loading the composition in your init or awakeFromNIB method. This saves time if you are tweaking your QC composition. You just need to recompile. &lt;br/&gt;&lt;br/&gt;//load QC&lt;br/&gt; NSString* path = [[NSBundle mainBundle] pathForResource:@&quot;MyQCPatch&quot; ofType:@&quot;qtz&quot;];&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;    //We assume the &quot;patch&quot; parameter of the &quot;QCView&quot; QCView instance has been bound to the&lt;br/&gt;    //&quot;patch&quot; property of the QCPatchController in Interface Builder&lt;br/&gt;&lt;br/&gt; if([qcView loadCompositionFromFile:path]) {&lt;br/&gt;    &lt;br/&gt; //The composition has been successfully replaced on the QCPatchController and its QCView&lt;br/&gt; //and the bindings have been updated&lt;br/&gt;    &lt;br/&gt; } else {&lt;br/&gt;  NSLog(@&quot;Could not load QC resource.&quot;);&lt;br/&gt; }&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Regards, &lt;br/&gt;&lt;br/&gt;Ian</description>
		<content:encoded><![CDATA[<p>Hi you can avoid reloading the patch in IB by programmatically loading the composition in your init or awakeFromNIB method. This saves time if you are tweaking your QC composition. You just need to recompile. </p>
<p>//load QC<br /> NSString* path = [[NSBundle mainBundle] pathForResource:@&#8221;MyQCPatch&#8221; ofType:@&#8221;qtz&#8221;];</p>
<p>    //We assume the &#8220;patch&#8221; parameter of the &#8220;QCView&#8221; QCView instance has been bound to the<br />    //&#8221;patch&#8221; property of the QCPatchController in Interface Builder</p>
<p> if([qcView loadCompositionFromFile:path]) {</p>
<p> //The composition has been successfully replaced on the QCPatchController and its QCView<br /> //and the bindings have been updated</p>
<p> } else {<br />  NSLog(@&#8221;Could not load QC resource.&#8221;);<br /> }</p>
<p>Regards, </p>
<p>Ian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waxtastic</title>
		<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/comment-page-1/#comment-8</link>
		<dc:creator>Waxtastic</dc:creator>
		<pubDate>Sat, 03 Feb 2007 16:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://originalhamsters.com/blog/?p=10#comment-8</guid>
		<description>Yeah, the part about adding the framework was a little bit confusing. I fixed it. You use the add to project not the add a new target. I recommend for everyone to check out the Apple tutorials where this stuff is explained with more detail.&lt;br /&gt;&lt;br /&gt;I recommend using math operators for the published inputs. Publish the initial values as sensorZero, sensorOne etc. &lt;br /&gt;&lt;br /&gt;You can get values from 0 to 1 by dividing with 1000&lt;br /&gt;&lt;br /&gt;If you want values from -1 to 1 subtract by 500 then divide by 500.&lt;br /&gt;&lt;br /&gt;But everytime you change the QC composition you have to save it, reload it in Interface Builder and then rebuild the app in Xcode.</description>
		<content:encoded><![CDATA[<p>Yeah, the part about adding the framework was a little bit confusing. I fixed it. You use the add to project not the add a new target. I recommend for everyone to check out the Apple tutorials where this stuff is explained with more detail.</p>
<p>I recommend using math operators for the published inputs. Publish the initial values as sensorZero, sensorOne etc. </p>
<p>You can get values from 0 to 1 by dividing with 1000</p>
<p>If you want values from -1 to 1 subtract by 500 then divide by 500.</p>
<p>But everytime you change the QC composition you have to save it, reload it in Interface Builder and then rebuild the app in Xcode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yourbartender</title>
		<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/comment-page-1/#comment-7</link>
		<dc:creator>yourbartender</dc:creator>
		<pubDate>Sat, 03 Feb 2007 12:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://originalhamsters.com/blog/?p=10#comment-7</guid>
		<description>ok I have to admit I was wrong and then I just don&#039;t know what to do :) - yes there is a text Add as Target. But there is also a possibility: Add New Target...you want to add a framework and not a target. &lt;br /&gt;&lt;br /&gt;Dealing with turning sensor readings to correct readings for QC seems more tricky. with cocoa interface you can define the range within what the sliders should work (between 0.0 and 1.0 for example) but how about here? adding math operator, publishing its input port and dividing it with 1000 doesn&#039;t seem to do the trick...or let me refresh my stuff...</description>
		<content:encoded><![CDATA[<p>ok I have to admit I was wrong and then I just don&#8217;t know what to do <img src='http://originalhamsters.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; yes there is a text Add as Target. But there is also a possibility: Add New Target&#8230;you want to add a framework and not a target. </p>
<p>Dealing with turning sensor readings to correct readings for QC seems more tricky. with cocoa interface you can define the range within what the sliders should work (between 0.0 and 1.0 for example) but how about here? adding math operator, publishing its input port and dividing it with 1000 doesn&#8217;t seem to do the trick&#8230;or let me refresh my stuff&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yourbartender</title>
		<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/comment-page-1/#comment-6</link>
		<dc:creator>yourbartender</dc:creator>
		<pubDate>Sat, 03 Feb 2007 12:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://originalhamsters.com/blog/?p=10#comment-6</guid>
		<description>some further comments after testing it out: you don&#039;t really add the Quartz.framework to targets, do you? just add existing framework, and put it to the correct place like you described. &lt;br /&gt;&lt;br /&gt;second note is about the values: the sensors give values from 0 to 999 right? and in quartz composer a lot of things happen between 0 and 1... so you&#039;ll have to do some math operations in QC...&lt;br /&gt;&lt;br /&gt;just my 2 c.</description>
		<content:encoded><![CDATA[<p>some further comments after testing it out: you don&#8217;t really add the Quartz.framework to targets, do you? just add existing framework, and put it to the correct place like you described. </p>
<p>second note is about the values: the sensors give values from 0 to 999 right? and in quartz composer a lot of things happen between 0 and 1&#8230; so you&#8217;ll have to do some math operations in QC&#8230;</p>
<p>just my 2 c.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stormbuster</title>
		<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/comment-page-1/#comment-5</link>
		<dc:creator>Stormbuster</dc:creator>
		<pubDate>Fri, 02 Feb 2007 15:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://originalhamsters.com/blog/?p=10#comment-5</guid>
		<description>Hi Waxtastic,&lt;br /&gt;&lt;br /&gt;Sorry to hear my code sample did not work for you. After my initial success I put the project on hold for a bit (I discovered the world of Arduino and cocoa is still not really my cup of tea). &lt;br /&gt;&lt;br /&gt;My intent is however still to finish what I started; a drag and drop Quartz Composer player application that works with the Phidget interfacekit. Your post has motivated me again to get this one nailed so I&#039;ll probably spend some time over the weekend trying to fix it. I&#039;ll post the source on the Phidget forum for anyone interested to give it go.&lt;br /&gt;&lt;br /&gt;Thanks for sharing this!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Robert</description>
		<content:encoded><![CDATA[<p>Hi Waxtastic,</p>
<p>Sorry to hear my code sample did not work for you. After my initial success I put the project on hold for a bit (I discovered the world of Arduino and cocoa is still not really my cup of tea). </p>
<p>My intent is however still to finish what I started; a drag and drop Quartz Composer player application that works with the Phidget interfacekit. Your post has motivated me again to get this one nailed so I&#8217;ll probably spend some time over the weekend trying to fix it. I&#8217;ll post the source on the Phidget forum for anyone interested to give it go.</p>
<p>Thanks for sharing this!</p>
<p>Cheers,</p>
<p>Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yourbartender</title>
		<link>http://originalhamsters.com/blog/2007/02/01/phidgets-quartz-composer/comment-page-1/#comment-4</link>
		<dc:creator>yourbartender</dc:creator>
		<pubDate>Fri, 02 Feb 2007 11:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://originalhamsters.com/blog/?p=10#comment-4</guid>
		<description>mahtavaa upeaa hienoa. Minäkin melkein pääsin yhtä pitkälle! Mutta tämä auttaa maailman kodittomia ja muitakin!</description>
		<content:encoded><![CDATA[<p>mahtavaa upeaa hienoa. Minäkin melkein pääsin yhtä pitkälle! Mutta tämä auttaa maailman kodittomia ja muitakin!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
