<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>machines don't care</title>
	<atom:link href="http://machinesdontcare.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://machinesdontcare.wordpress.com</link>
	<description>a Quartz Composer sketchbook</description>
	<pubDate>Thu, 24 Jul 2008 11:27:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>SpaceNavigator qcData Source Plugin</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/24/spacenavigator-qcdata-source-plugin/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/24/spacenavigator-qcdata-source-plugin/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 11:27:40 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[Quartz Composer]]></category>

		<category><![CDATA[VDMX]]></category>

		<category><![CDATA[Controller]]></category>

		<category><![CDATA[Data Source]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=622</guid>
		<description><![CDATA[Allows the use of a 3DConnexion SpaceNavigator 3D controller as a data source in VDMX.
Don&#8217;t know if there are any other VDMX users out there who actually have one of these devices, so no idea if this is going to be of any use to anyone else. If you do have both, though, try dropping [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Allows the use of a 3DConnexion SpaceNavigator 3D controller as a data source in VDMX.<br />
Don&#8217;t know if there are any other VDMX users out there who actually have one of these devices, so no idea if this is going to be of any use to anyone else. If you do have both, though, try dropping this into the VDMX plugins folder (the one actually named &#8216;plugins&#8217;, not the qcFX one).<br />
It should then appear in the Plugin Manager list.</p>
<p>tb_Spacenavigator_VDMXPlug_1.0</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/622/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/622/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/622/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=622&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/24/spacenavigator-qcdata-source-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Konstructivist qcFX</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/24/konstructivist-qcfx/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/24/konstructivist-qcfx/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 10:05:37 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[Quartz Composer]]></category>

		<category><![CDATA[VDMX]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=617</guid>
		<description><![CDATA[Just knocked together a quick experimental qcFX, based on a soviet print-style advert I saw for a Billy Idol concert. I&#8217;m not a Billy Idol fan, but I did like the graphic effect, so I thought I&#8217;d try to create something similar as a video effect in QC. This is just something I put together [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just knocked together a quick experimental qcFX, based on a soviet print-style advert I saw for a Billy Idol concert. I&#8217;m not a Billy Idol fan, but I did like the graphic effect, so I thought I&#8217;d try to create something similar as a video effect in QC. This is just something I put together really quickly, a &#8216;throwaway effect&#8217; if you like, so it&#8217;s probably not particularly efficient. I don&#8217;t plan to spend much more time on it, so you&#8217;re welcome to take it and do with it what you will.</p>
<p><a href="http://machinesdontcare.files.wordpress.com/2008/07/tb_konstructivist_10.png"><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_konstructivist_10.png?w=512&h=384" alt="" width="512" height="384" class="alignnone size-full wp-image-618" /></a></p>
<p>And, yes, I know it&#8217;s another picture of me&#8230;.<br />
I don&#8217;t do it because I&#8217;m vain- it&#8217;s because I&#8217;m lazy, and can&#8217;t be bothered to stick anything more interesting than my laptop&#8217;s iSight through the effect.<br />
Sorry about that.</p>
<p>In the Widget<br />
tb_Konstructivist_1.0.qtz</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/617/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/617/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/617/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=617&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/24/konstructivist-qcfx/feed/</wfw:commentRss>
	
		<media:content url="http://machinesdontcare.files.wordpress.com/2008/07/tb_konstructivist_10.png" medium="image" />
	</item>
		<item>
		<title>Virtual Patches Annoying Bug/Oversight</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/23/virtual-patches-annoying-bugoversight/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/23/virtual-patches-annoying-bugoversight/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 10:27:14 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[Other Stuff]]></category>

		<category><![CDATA[Quartz Composer]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=612</guid>
		<description><![CDATA[So; I&#8217;ve discovered a great new feature. I&#8217;ve also discovered a great new bug to go with it!
If you use a virtual patch in a QTZ, then save a &#8216;flattened&#8217; version of the file, the virtual patch will be converted into a &#8216;real&#8217; macro patch. So far, so good- you get a portable file that [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So; I&#8217;ve discovered a great new feature. I&#8217;ve also discovered a great new bug to go with it!</p>
<p>If you use a virtual patch in a QTZ, then save a &#8216;flattened&#8217; version of the file, the virtual patch will be converted into a &#8216;real&#8217; macro patch. So far, so good- you get a portable file that works fine for someone who doesn&#8217;t have your virtual patches installed on their system. The problem is, the macros automatically created this way are not correctly named. In fact, they&#8217;re all called &#8216;Macro Patch&#8217;. Which isn&#8217;t helpful when it comes to readability. I&#8217;ve submitted an Enhancement Request to the Apple Bug Tracker asking for the macros to be automatically named the same as the original virtual patch. Hopefully this will be incorporated into a future version of the program.</p>
<p>The problem isn&#8217;t by any means insurmountable- if you give the virtual patch a custom name, then that name is reflected in the macro that&#8217;s created when the flattened file is saved, so I&#8217;m not put off too much. I&#8217;m still a bit worried that since Macros can be a different size from patches, things may not line up as I&#8217;d like in my flattened QTZs, but that&#8217;s just me being excessively anal, I think. I can tidy that up before release, anyway.</p>
<p>In terms of working on your own stuff, I think virtual patches are probably a real time-saver, and I wish I&#8217;d discovered them earlier. At some point in the future, I&#8217;m planning to release a set of QTZs to be used as virtual patches, so that everyone can get the dubious benefit of being able to drop tb patches straight into their compositions.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/612/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/612/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/612/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=612&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/23/virtual-patches-annoying-bugoversight/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Virtual Patches!</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/23/virtual-patches/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/23/virtual-patches/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 10:02:39 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[Quartz Composer]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=602</guid>
		<description><![CDATA[OK, you&#8217;ve probably all beed using these for ages, but for me it&#8217;s a bit of a revelation. I&#8217;d vaguely heard of Virtual Patches from the QC 3 release-notes, but I&#8217;d never really thought about using them until recently. Now I think they&#8217;re going to be verrrry useful.
Here&#8217;s the Apple documentation for them. The basic [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>OK, you&#8217;ve probably all beed using these for ages, but for me it&#8217;s a bit of a revelation. I&#8217;d vaguely heard of Virtual Patches from the QC 3 release-notes, but I&#8217;d never really thought about using them until recently. Now I think they&#8217;re going to be verrrry useful.</p>
<p><a href="http://developer.apple.com/ReleaseNotes/GraphicsImaging/RN-QuartzComposer/index.html#//apple_ref/doc/uid/TP40006639-DontLinkElementID_3">Here&#8217;s</a> the Apple documentation for them. The basic idea is that you can drop a QTZ into<br />
<em>/Library/Graphics/Quartz Composer Patches</em><br />
(a folder that will be familiar to Kineme plug-in users) and they&#8217;ll show up as patches in the Patch Creator. Any published in or out ports of the QTZ will appear as in or out ports in the patch when you create it in a composition. You can also add a description for the patch by adding it to the meta info for the virtual patch QTZ using the Edit Information item in the Editor menu.</p>
<p>To test out the system, I created a comp with just a number splitter, with a range set from 0 to 1 (which I use all the time), published in and out ports, added a description, and saved it into the correct folder. After restarting QC, it appeared in the Patch Creator panel, complete with description.</p>
<p><a href="http://machinesdontcare.files.wordpress.com/2008/07/qc3_virtualpatch_02.gif"><img src="http://machinesdontcare.files.wordpress.com/2008/07/qc3_virtualpatch_02.gif?w=301&h=217" alt="" width="301" height="217" class="alignnone size-full wp-image-604" /></a></p>
<p><a href="http://machinesdontcare.files.wordpress.com/2008/07/qc3_virtualpatch_01.gif"><img src="http://machinesdontcare.files.wordpress.com/2008/07/qc3_virtualpatch_01.gif?w=268&h=132" alt="" width="268" height="132" class="alignnone size-full wp-image-605" /></a></p>
<p>This is going to be very useful in the future, I think!<br />
The only potential downside is that you have to save a &#8216;flattened&#8217; version of any QTZ incorporating virtual patches, for portability. There&#8217;s a very good chance that I&#8217;m going to regularly forget to do this&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/602/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/602/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/602/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=602&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/23/virtual-patches/feed/</wfw:commentRss>
	
		<media:content url="http://machinesdontcare.files.wordpress.com/2008/07/qc3_virtualpatch_02.gif" medium="image" />

		<media:content url="http://machinesdontcare.files.wordpress.com/2008/07/qc3_virtualpatch_01.gif" medium="image" />
	</item>
		<item>
		<title>ASCII/String Fun With JavaScript</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/22/asciistring-fun-with-javascript/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/22/asciistring-fun-with-javascript/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 20:45:26 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[ASCII]]></category>

		<category><![CDATA[Scroller]]></category>

		<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=579</guid>
		<description><![CDATA[Prompted by a request to investigate animated text effects for VDMX, I decided to dust off a few little techniques from my mispent early 20s as a Director/Lingo enthusiast. Notice the word &#8216;enthusiast&#8217;; I never got particularly good at it, though I narrowly-missed getting a job as a fulltime Lingo coder, back when CDRom was [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Prompted by a request to investigate animated text effects for VDMX, I decided to dust off a few little techniques from my mispent early 20s as a Director/Lingo enthusiast. Notice the word &#8216;enthusiast&#8217;; I never got particularly good at it, though I narrowly-missed getting a job as a fulltime Lingo coder, back when CDRom was still a novel idea.</p>
<p>I digress though: what we have here is a collection of basic string and ASCII effects, wrapped up in a simple demo QTZ. I&#8217;m not going to say too much about about how they work, because the code in each JavaScript module is pretty well-commented. It&#8217;s pretty simple stuff really, but might look nice combined with some animation.</p>
<p>Here&#8217;s some sample code. This is for a simple scroller, that moves the text along to the left, wrapping characters back to the end of the string when they fall &#8216;off the beginning&#8217; (as it were).</p>
<pre name="code" class="javascript">
/*
Shifts string left according to Offset value and
wraps characters.
With thanks to Memo
*/

function (__string outputString) main (__string inputString, __number Offset)
{
	// Initialise vars
	var result = new Object();
	var outString = &quot;&quot;;

	if(!_testMode) {
		// Get length of input string
		var chars = inputString.length;
		// Get step size so that Offset values from 0 &gt; 1 cycle through
		// all characters in string once
		var step = Offset * chars;
		step = (step == chars) ? 0 : step;

		// Loop through string
		for (i = 0; i &lt; chars; i++) {
			// Variable for index to read from inputString
			var charIndex = i + step;
			// Wrap string index
			charIndex = (charIndex &gt; chars) ? charIndex - chars : charIndex;
			// Accumulate outString by reading from inputString at charIndex
			outString += inputString.charAt(charIndex);
		}
	}

	// Set output string
	result.outputString = outString;
	// Output
	return result;
}
</pre>
<p>Note:<br />
Only the FX in the second half of the list use both input strings.<br />
The Mix Range control only works for the <em>String Randomise Range</em> and <em>2-String Wipe Range</em> effects.</p>
<p>QTZ <em>tb JS-ASCII Demo 1.0.3</em> &#8216;in the widget&#8217;.</p>
<p><strong>EDIT:</strong><br />
New version uploaded. There are lots more things that could be done with this basic technique, but I&#8217;m going to leave it for the moment, so I can concentrate on other things. This final (for now) version (1.0.3) fixes a bug with the previous upload, and adds structure output ports to all the JS patches, which could be piped into an Iterator, if you wanted to individually animate the characters.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/579/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/579/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/579/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=579&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/22/asciistring-fun-with-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oops</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/16/oops/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/16/oops/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 22:00:31 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[Quartz Composer]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=577</guid>
		<description><![CDATA[Just discovered a rather nasty error in my Spacenavigator macro.
Basically, this was causing it to output -1, rather than 0 for all values, if a SpaceNavigator wasn&#8217;t plugged-in. Not good.
I forgot that the raw value from the SpaceNavigator HID patch outputs values in the 0 &#62; 1 range (with 0.5 obviously being at the centre [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just discovered a rather nasty error in my Spacenavigator macro.<br />
Basically, this was causing it to output -1, rather than 0 for all values, if a SpaceNavigator wasn&#8217;t plugged-in. Not good.<br />
I forgot that the raw value from the SpaceNavigator HID patch outputs values in the 0 &gt; 1 range (with 0.5 obviously being at the centre of the range), so it should be defaulting to sending out 0.5 to all outputs, if a SpaceNavigator isn&#8217;t detected.</p>
<p>Anyway, I&#8217;ve fixed the problem, and posted a new version in the Box.net widget. Apologies to anyone who might have downloaded and been confused by the old one.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/577/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/577/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/577/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=577&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/16/oops/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mathematical Expression Ternary Operator</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/15/mathematical-expression-ternary-operator/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/15/mathematical-expression-ternary-operator/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 16:12:07 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[Algorithms]]></category>

		<category><![CDATA[Quartz Composer]]></category>

		<category><![CDATA[Mathematical Expression patch]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=574</guid>
		<description><![CDATA[This is cool! Toby is right, you CAN use the ternary operator in a Mathematical Expression patch. You can even use it to, for example, invert a boolean input. For example:
(Bool == true) ? false : true
works as a a boolean invert. The input and output aren&#8217;t recognised as boolean types, so you&#8217;ll get orange [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is cool! Toby is right, you CAN use the ternary operator in a Mathematical Expression patch. You can even use it to, for example, invert a boolean input. For example:</p>
<p>(Bool == true) ? false : true</p>
<p>works as a a boolean invert. The input and output aren&#8217;t recognised as boolean types, so you&#8217;ll get orange cables if you attach, say, a bool splitter to the input, and patch the output into the Enable input of a Billboard, for example. It&#8217;ll work fine though, and in fact, I often mix number and boolean types in my compositions.</p>
<p>EDIT:<br />
toby*spark pointed out that for the particular case of a boolean invert, an even quicker way of doing it is to simply use</p>
<p>!Bool</p>
<p>In this case, &#8216;Bool&#8217; will be the input port name (you can use any name you like), and the patch will output true/1 when the input is false, and false/0 when the input is true. Very handy.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/574/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/574/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/574/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=574&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/15/mathematical-expression-ternary-operator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>tb VVVVCurve 1.1</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-11/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-11/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 15:25:32 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[GLSL]]></category>

		<category><![CDATA[Quartz Composer]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=570</guid>
		<description><![CDATA[OK, this spices it up a bit (albeit in a fairly predictable way, if you&#8217;ve seen my previous efforts).
Added tiling texture to the surface, with the usual controls.
Note:
The scaling on the texture is a bit screwed. I can&#8217;t be bothered to work out how to stop the surface pattern getting squashed, but if anyone else [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>OK, this spices it up a bit (albeit in a fairly predictable way, if you&#8217;ve seen my previous efforts).<br />
Added tiling texture to the surface, with the usual controls.</p>
<p>Note:<br />
The scaling on the texture is a bit screwed. I can&#8217;t be bothered to work out how to stop the surface pattern getting squashed, but if anyone else wants to have to go, I&#8217;d love to see how you get on.</p>

<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-11/tb_vvvvcurve_11_01/' title='tb VVVVCurve 1.1 01'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_11_01.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-11/tb_vvvvcurve_11_02/' title='tb VVVVCurve 1.1 02'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_11_02.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-11/tb_vvvvcurve_11_03/' title='tb VVVVCurve 1.1 03'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_11_03.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>

<p>Available in the widget.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/570/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/570/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/570/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=570&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-11/feed/</wfw:commentRss>
		</item>
		<item>
		<title>tb VVVVCurve 1.0</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 14:16:59 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[GLSL]]></category>

		<category><![CDATA[Quartz Composer]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=561</guid>
		<description><![CDATA[This is an odd one:
I&#8217;ve been meaning to tackle converting this VVVV shader (&#8216;Curve PhongDirectional&#8217; by woei) for ages, but now I have, I can&#8217;t think of any immediate use for it.
The result is a little disappointing. Maybe someone out there will find a use for it though. If you do, let me know.
It&#8217;s basically [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is an odd one:<br />
I&#8217;ve been meaning to tackle converting this VVVV shader (<a href="http://www.vvvv.org/tiki-index.php?page=User+Shaders">&#8216;Curve PhongDirectional&#8217;</a> by woei) for ages, but now I have, I can&#8217;t think of any immediate use for it.</p>
<p>The result is a little disappointing. Maybe someone out there will find a use for it though. If you do, let me know.</p>

<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/tb_vvvvcurve_10_01/' title='tb_vvvvcurve_10_01'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_10_01.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/tb_vvvvcurve_10_02/' title='tb_vvvvcurve_10_02'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_10_02.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/tb_vvvvcurve_10_03/' title='tb_vvvvcurve_10_03'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_10_03.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/tb_vvvvcurve_10_04/' title='tb_vvvvcurve_10_04'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_10_04.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/tb_vvvvcurve_10_05/' title='tb_vvvvcurve_10_05'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_10_05.png?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/tb_vvvvcurve_layout_10_01/' title='tb VVVVCurve Layout'><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_vvvvcurve_layout_10_01.png?w=97&h=96" width="97" height="96" class="attachment-thumbnail" alt="" /></a>

<p>It&#8217;s basically a ribbon-type thing, with various controls for the way it gets from Point 1 to Point2.<br />
As usual, I&#8217;ve stripped out all the lighting code and replaced it with simple fake shading, though I may put it back in again for a future version, or add the option to have lighting of not.</p>
<p>This version just uses standard QC patches, but a more intersting future version may make use of my &#8216;pseaudospreads&#8217; technique. I tried this with the lit version, though, and it didn&#8217;t look great, partly because of glitches where the meshes intersected themselves or other mesh instances. The unlit version may work better, I think.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/561/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/561/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/561/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=561&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/10/tb-vvvvcurve-10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Controls Structures Demo QTZ</title>
		<link>http://machinesdontcare.wordpress.com/2008/07/10/controls-structures-demo-qtz/</link>
		<comments>http://machinesdontcare.wordpress.com/2008/07/10/controls-structures-demo-qtz/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 11:59:51 +0000</pubDate>
		<dc:creator>toneburst</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Quartz Composer]]></category>

		<category><![CDATA[Structures]]></category>

		<guid isPermaLink="false">http://machinesdontcare.wordpress.com/?p=559</guid>
		<description><![CDATA[Just a really simple JavaScript patch and a macro showing how to combine multiple controls into a single structure, and then extract them back into discrete values again. I know I&#8217;ve banged on about this  several times before, but the QTZ might just save someone some time.
You can probably get away with sticking the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just a really simple JavaScript patch and a macro showing how to combine multiple controls into a single structure, and then extract them back into discrete values again. I know I&#8217;ve banged on about this  several times before, but the QTZ might just save someone some time.</p>
<p>You can probably get away with sticking the JS patch in a macro, and changing the names of the published ports for the input controls to something that makes more sense for your project, and it&#8217;ll still work. You could do the same for the published output ports of the &#8216;Controls From Struct&#8217; macro. If you need more than 5 controls, you&#8217;ll have to edit the JS itself, but it&#8217;s pretty self-explanatory really. You&#8217;ll also need to add more Structure Key Member patches in Controls From Struct, and set the correct keys.</p>
<p>I&#8217;m sure it would be possible to eliminate the Structure Key Member patches and do the whole thing in another JavaScript patch, but the current method seems to work fine. Maybe I&#8217;ll tackle that at some point in the future.</p>
<p><a href="http://machinesdontcare.files.wordpress.com/2008/07/tb_control_structs_01.png"><img src="http://machinesdontcare.files.wordpress.com/2008/07/tb_control_structs_01.png?w=300&h=135" alt="" width="300" height="135" class="alignnone size-medium wp-image-560" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/machinesdontcare.wordpress.com/559/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/machinesdontcare.wordpress.com/559/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/machinesdontcare.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/machinesdontcare.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/machinesdontcare.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/machinesdontcare.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/machinesdontcare.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/machinesdontcare.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/machinesdontcare.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/machinesdontcare.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/machinesdontcare.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/machinesdontcare.wordpress.com/559/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=machinesdontcare.wordpress.com&blog=2096772&post=559&subd=machinesdontcare&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://machinesdontcare.wordpress.com/2008/07/10/controls-structures-demo-qtz/feed/</wfw:commentRss>
	
		<media:content url="http://machinesdontcare.files.wordpress.com/2008/07/tb_control_structs_01.png?w=300" medium="image" />
	</item>
	</channel>
</rss>