<?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>ITPindia &#187; ICM</title>
	<atom:link href="http://itp.nyu.edu/~ia303/thunk/category/icm/feed/" rel="self" type="application/rss+xml" />
	<link>http://itp.nyu.edu/~ia303/thunk</link>
	<description>India’s ITP blog</description>
	<lastBuildDate>Fri, 10 Apr 2009 06:20:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Digital Graffiti Glove: Documentation</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/12/12/digital-graffiti-glove-documentation/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/12/12/digital-graffiti-glove-documentation/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 15:00:15 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ICM]]></category>
		<category><![CDATA[PhysComp]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[final project]]></category>
		<category><![CDATA[homework]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[sketch]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wearables]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=378</guid>
		<description><![CDATA[
Above is the PowerPoint slideshow that Diego made for our in-class presentation. There is also copious supporting material at the following locations:

Photos, with lots of chatty comments

Videos, interspersed with kittenage
Arduino code
Processing code

colors_highlight_new_swatch – this is the color palette module. It reads a text file containing all the colors in the appropriate Krylon spraypaint line and [...]]]></description>
			<content:encoded><![CDATA[<p><embed src="http://blip.tv/play/AeCfEI_feg" type="application/x-shockwave-flash" width="320" height="270" allowscriptaccess="always" allowfullscreen="true" style="margin-left:30px;"></embed></p>
<p>Above is the PowerPoint slideshow that Diego made for our in-class presentation. There is also copious supporting material at the following locations:<span id="more-378"></span></p>
<ul>
<li>Photos, with lots of chatty comments<br />
<object width="400" height="300"><param name="flashvars" value="&#038;offsite=true&amp;lang=en-us&#038;page_show_url=%2Fphotos%2Findiamos%2Fsets%2F72157609600581342%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Findiamos%2Fsets%2F72157609600581342%2F&#038;set_id=72157609600581342&#038;jump_to="></param><param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=63961"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=63961" allowFullScreen="true" flashvars="&#038;offsite=true&amp;lang=en-us&#038;page_show_url=%2Fphotos%2Findiamos%2Fsets%2F72157609600581342%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Findiamos%2Fsets%2F72157609600581342%2F&#038;set_id=72157609600581342&#038;jump_to=" width="400" height="300"></embed></object></li>
<li><a href="http://itpindia.blip.tv/">Videos</a>, interspersed with kittenage</li>
<li><a href="http://itp.nyu.edu/~ia303/PhysComp/final/graffiti_glove_4_sensors.zip">Arduino code</a></li>
<li>Processing code
<ul>
<li><a href="http://itp.nyu.edu/~ia303/ICM/final/colors_highlight_new_swatch/applet/index.html">colors_highlight_new_swatch</a> – this is the color palette module. It reads a text file containing all the colors in the appropriate Krylon spraypaint line and outputs them as a grid of colored squares. The active swatch and rolled-over ones are highlighted with colored borders. It&#8217;s glitchy, as you can see if you look in the upper left corner, but basically it works.</li>
<li><a href="http://itp.nyu.edu/~ia303/ICM/final/spraycans/applet/index.html">spraycans</a> – I would like to make my own set of brushes, based on Diego&#8217;s, that are all the same style but in different sizes. These would then be mapped to the number of fingers being held up, with more fingers triggering a bigger spray cone. This would make it easier for users to get predictable, slightly repeatable results. Toward that end, I made a spraycan object whose spray cone, label number (for the size), and can color (for the paint) are variable. Epileptics should probably not view this sketch.</li>
<li><a href="http://itp.nyu.edu/~ia303/ICM/final/final_application_4/applet/index.html">Main application</a> – The &#8220;final&#8221; in &#8220;final_application_4&#8243; refers to the this being our final project for the semester, not to the code itself actually being final. For, verily, it is not. This is the wrapper into which all the other modules will eventually be rolled. It&#8217;s a whole lot of nested if statements and functions. This program doesn&#8217;t run unless the glove is plugged in; I should fix that, to make it easier to check code while programming.</a></li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/12/12/digital-graffiti-glove-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Baby steps</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/12/03/baby-steps/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/12/03/baby-steps/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 04:22:45 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[CommLab]]></category>
		<category><![CDATA[ICM]]></category>
		<category><![CDATA[final project]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[sketch]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=338</guid>
		<description><![CDATA[
This is the second smidgen of the code for our final project. It pulls RGB values and color names from a tab-delimited text file (which is, itself, based on the actual Krylon color options) and outputs this grid of swatches. The swatches don&#8217;t do anything yet&#8212;just drawing them took me, like, two days, thank you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://itp.nyu.edu/~ia303/ICM/final/parse_Krylon_colors/applet/index.html"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/krylon_palette.png" alt="grid of 61 colored squares" title="Krylon color palette" width="400" height="355" class="alignnone size-full wp-image-340" /></a></p>
<p>This is the second smidgen of the code for our final project. <a href="http://itp.nyu.edu/~ia303/ICM/final/parse_Krylon_colors/applet/index.html">It</a> pulls RGB values and color names from <a href="http://itp.nyu.edu/~ia303/ICM/final/parse_Krylon_colors/data/Krylon_colors.txt">a tab-delimited text file</a> (which is, itself, based on the <a href="http://www.krylon.com/products/indooroutdoor_paint/">actual Krylon color options</a>) and outputs this grid of swatches. The swatches don&#8217;t <em>do</em> anything yet&#8212;just drawing them took me, like, two days, thank you very much, and that was <em>with</em> some very helpful help from Shawn. Partly this is because I apparently can&#8217;t keep in my head for more than thirty seconds how arrays and objects work, and partly it&#8217;s because I just. can&#8217;t. focus. And partly it&#8217;s because I apparently have no idea what the fuck I&#8217;m doing.</p>
<p>I&#8217;m beginning to really like Diego&#8217;s Plan B, as proposed over the weekend: </p>
<blockquote><p>
	Fake our own deaths.
</p></blockquote>
<p><span id="more-338"></span><br />
I keep telling myself I have to not panic and just write the code one piece at a time. Then, later, I can get somebody to help me put it all together, which is something I <em>know</em> I have no clue how to do. But just accomplishing what seem like they should be simple things is stumping me. Most recently, I was trying to get the swatch name to be displayed when a square is rolled over. This is not by any means an important feature&#8212;in fact, it doesn&#8217;t really serve any purpose. But I <em>should</em> be able to do it, and I can&#8217;t figure out why it doesn&#8217;t work. I keep getting errors like &#8220;The function showName() does not exist&#8221; or &#8220;Cannot find anything named &#8217;swatches.&#8217;&#8221; Both of these things do, of course, exist, and I can&#8217;t see any reason why they wouldn&#8217;t be found.</p>
<p>I know it&#8217;s pretty rare for computers to just <em>fuck up</em> and much more common for <em>me</em> to do so, so I&#8217;m sure the answer is that I&#8217;ve done something really dumb and sloppy somewhere. But it could easily take me two hours to find that error, and every new goddamn line of code seems to cause some new mysterious issue. I can feel myself growing older just thinking about it. And there are a lot more lines of code to go. Here&#8217;s the stuff I was hoping to get done, oh, by, say, last Thursday: </p>
<div style="background-color:#333; padding:10px;">
<h3>Graffiti Glove Components</h3>
<h4>Brush selector</h4>
<ul>
<li>
			Read flex sensor data </p>
<ul>
<li style="list-style-type: circle;">
					1 finger = marker
				</li>
<li style="list-style-type: circle;">
					2 fingers = small spray
				</li>
<li style="list-style-type: circle;">
					3 fingers = medium spray
				</li>
<li style="list-style-type: circle;">
					4 fingers = large spray
				</li>
</ul>
</li>
</ul>
<h4>Color selector</h4>
<ul>
<li>
			Display grid of color swatches
		</li>
<li>
			Display color name on rollover
		</li>
<li>
			Highlight selected swatch on click
		</li>
<li>
			Change drawing color on click
		</li>
</ul>
<h4>Erase</h4>
<ul>
<li>
			Ask for confirmation
		</li>
</ul>
<h4>Undo</h4>
<ul>
<li>
			Undo last stroke
		</li>
<li>
			Redo stroke that was just undone
		</li>
</ul>
<h4>Save drawing</h4>
<ul>
<li>
			Ask for file name
		</li>
<li>
			Append time stamp
		</li>
<li>
			Display confirmation
		</li>
</ul>
<h4>Change background</h4>
<ul>
<li>
			Display four background thumbnails </p>
<ul>
<li style="list-style-type: circle;">
					subway car
				</li>
<li style="list-style-type: circle;">
					brick wall
				</li>
<li style="list-style-type: circle;">
					white van
				</li>
<li style="list-style-type: circle;">
					blank
				</li>
</ul>
</li>
</ul>
<h4>Paint in spray pattern</h4>
<ul>
<li>
<p>			Draw an ellipse
		</li>
<li>
			Make random pixels within the ellipse transparent
		</li>
</ul>
<h4>Switch modes</h4>
<ul>
<li>
			Save drawing
		</li>
<li>
			Display palette
		</li>
<li>
			Hide palette
		</li>
<li>
			Restore drawing
		</li>
</ul>
</div>
<p>And that&#8217;s not including the task of sewing us a new glove, for which I bought fabric on Monday, as well as a book about how to use my virgin four-year-old Juki serger. I know that&#8217;ll be fun once I get started, but I just can&#8217;t get started.</p>
<p>Maybe I need a drink.</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/12/03/baby-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assistive Tech for Asbo Avoidance</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/24/assistive-tech-for-asbo-avoidance/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/24/assistive-tech-for-asbo-avoidance/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 22:50:07 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ICM]]></category>
		<category><![CDATA[PhysComp]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[final project]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[wearables]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=318</guid>
		<description><![CDATA[
So then . . . The other day I was talking about the glove project with my friend Rose, and I rhetorically asked what the hell this kind of low-fi, large-format drawing setup would be good for. Rose&#8217;s answer was immediate: graffiti.
Duh.

So then, what we need is just a limited palette of Krylon spray paints, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/rubberdreamfeet/347009229/"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/asbo.jpg" alt="asbo graffiti" title="asbo graffiti" width="400" height="236" class="alignnone size-full wp-image-321" /></a></p>
<p>So <em>then</em> . . . The other day I was talking about the glove project with my friend Rose, and I rhetorically asked what the hell this kind of low-fi, large-format drawing setup would be good for. Rose&#8217;s answer was immediate: graffiti.</p>
<p>Duh.<br />
<span id="more-318"></span><br />
So then, what we need is just a limited <a href="http://www.krylon.com/products/indooroutdoor_paint/">palette of Krylon spray paints</a>, and a couple of brush types&#8212;say, a fat marker and three sizes of spray patterns. And then, when I asked my perpetual question of &#8220;What are the other fingers doing?,&#8221; Diego had this brilliant idea: the number of fingers you&#8217;re using determines the brush size. Index finger for the marker; index and middle for a small spray nozzle; index, middle, and ring for a medium spray; and all four fingers for the biggest spray&#8212;what you&#8217;d use to fill. That&#8217;s a pretty intuitive mapping. We wouldn&#8217;t need to track motion on all the fingers, just whether they&#8217;re flexed or not. And we could use an accelerometer to register wrist tilts, somewhat like the <a href="http://www.youtube.com/watch?v=A9DBlolfZd4">Rock &#8216;n&#8217; Scroll</a>, to cycle through the color palette.</p>
<p>The thumb would remain an on/off switch.</p>
<p>We could have different backgrounds to paint on, like brick walls, subway cars, trucks.</p>
<p>Bitchen.</p>
<p>This idea is, in fact, so cool that it has <a href="http://video.google.com/videosearch?q=virtual+graffiti&#038;ie=UTF-8&#038;oe=utf-8&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a&#038;um=1&#038;sa=X&#038;oi=video_result_group&#038;resnum=10&#038;ct=title#">already</a> <a href="http://www.slashgear.com/wiispray-prototype-graffiti-controller-for-wii-0611925/">been</a> <a href="http://graffiti.playdo.com/">done</a>.</p>
<p>Developing . . .</p>
<p><span style="font-size:smaller">Photo: <a href="http://www.flickr.com/photos/rubberdreamfeet/347009229/">ASBO</a> by rubberdreamfeet  / David Hayward. <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en">Some rights reserved.</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/24/assistive-tech-for-asbo-avoidance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mittenability</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/23/mittenability/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/23/mittenability/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 21:08:04 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[ICM]]></category>
		<category><![CDATA[PhysComp]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[final project]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[wearables]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=309</guid>
		<description><![CDATA[
Ever since we started putting the actual glove together, I&#8217;ve been thinking about how the software side of this project should take into account what I expect to be a pretty low-resolution input system.  When I was making a drawing interface for what was purely an ICM project, I was assuming an average level [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/venson/2109678779/"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/elephant_painting.jpg" alt="elephant painting" title="elephant painting" width="450" height="315" class="alignnone size-full wp-image-312" /></a></p>
<p>Ever since we started putting the actual glove together, I&#8217;ve been thinking about how the software side of this project should take into account what I expect to be a pretty low-resolution input system. <span id="more-309"></span> When I was making a drawing interface for what was purely an ICM project, I was assuming an average level of mouse dexterity. The <a href="/2008/11/21/sketching-sketch/">stroke-width picker</a> that I made last Wednesday, for instance, is obviously too small to be operated with our crude pointer.</p>
<p>So what kind of interface <em>would</em> work?</p>
<p>I did some Googling around, to get ideas of what kind of controls can be operated with little dexterity. In particular, I looked for things you can do while wearing mittens, since I figure that that&#8217;s approximately the level of control our hypothetical user will have. Some findings:</p>
<p>Some military radios are touted as being usable even while wearing Arctic mittens: &#8220;The desired frequency is set by four knobs on the side of the radio which can be operated even while the operator is wearing Arctic mittens, or in the dark by counting clicks from the end-stops&#8221; (&#8221;<a href="http://armyradio.com/arsc/customer/search.php?substring=&#038;in_category=&#038;page=2">Clansman PRC-349 / RT-349 VHF Transceiver</a>,&#8221; Armyradio.com). Its that idea of click feedback that I find interesting. If you&#8217;re choosing from a limited set of options&#8212;say, brush sizes&#8212; on a very small display, it&#8217;s not <em>too</em> annoying to cycle through them one at a time to get to what you want. This is the way my cell phone, toaster, and camera menus work. And they all provide beeps or clicks for feedback. What kind of feedback will we give to let our user know what&#8217;s going on?</p>
<p>Other physical controls that can be operated while wearing mittens include a camera&#8217;s zoom ring and aperture and shutter speed dials (Matthew G. Monroe, &#8220;<a href="http://digital-photography-school.com/blog/how-to-shoot-in-freezing-temperatures-and-keep-your-hands-toasty-warm/#more-1364">How to Shoot in Freezing Temperatures and Keep Your Hands Toasty Warm</a>,&#8221; digital-photography-school.com); Velcro closure tabs on outerwear; and KEYnetic&#8217;s <a href="http://www.youtube.com/watch?v=A9DBlolfZd4">rock</a> &#8216;n&#8217; <a href="http://www.hpl.hp.com/techreports/Compaq-DEC/WRL-2000-3.pdf">scroll</a> cell phone interface (via <a href="http://www.lytebyte.com/2008/03/12/rock-n-scroll-%E2%80%93-accelerometer-and-motion-based-input-application-for-nokia-n95/">LyteByte</a>).</p>
<p>On the screen side of things, some relevant input methods include Morse code and onscreen keyboards. Again, I like the simplicity of tapping, though I can also see uses for a matrix of a few very large buttons.</p>
<p>Obviously, with two weeks to go, I don&#8217;t have time to really get into learning interface design for this project, but I think where I&#8217;m going is toward a system that has a drawing mode and a tool selection mode. When you&#8217;re drawing, there&#8217;s nothing else onscreen except maybe one or two tools or hints&#8212;how to turn the drawing line off, how to activate the control menu. You can&#8217;t select these controls onscreen, because how would you do so without drawing a line all the way to the button? And whatever gesture you use to activate the menu must be able to be done without moving the drawing pointer.</p>
<p>The Rock &#8216;n&#8217; Scroll model is pretty good for us within one mode or another, but you have to be able to switch between the two without moving your drawing pointer. So that would involve .&nbsp;.&nbsp;. the thumb? It&#8217;s possible, though not necessarily easy, to move your thumb without moving the rest of your hand. So maybe as long as your thumb is tucked in, the pen is on, and if you stick it out, the pen is off.</p>
<p><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/lineon_lineoff_inverted.gif" title="line on/off" alt="line on/off" width="167" height="150" class="alignnone size-full wp-image-334" /></p>
<p>Once we&#8217;ve got a way to separate the two modes, I was thinking the control screen would be super-simple, with only one control editable at a time. So, something like this:</p>
<p><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/buttons.gif" alt="big buttons" title="big buttons" width="307" height="309" class="alignnone size-full wp-image-317" /></p>
<p><span style="font-size:smaller">Photo: <a href="http://www.flickr.com/photos/venson/2109678779/">Elephant Painting</a> by Venson Kuchipudi. <a href="http://creativecommons.org/licenses/by-nc/2.0/deed.en">Some rights reserved.</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/23/mittenability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sketching sketch</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/21/sketching-sketch/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/21/sketching-sketch/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 13:41:08 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[ICM]]></category>
		<category><![CDATA[PhysComp]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[final project]]></category>
		<category><![CDATA[sketch]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=288</guid>
		<description><![CDATA[
I decided to start my final ICM project with the drawing interface, because it&#8217;s a discrete program in itself, and because I could actually sort of picture what it might look like. So I made a list of components—stroke palette, color picker, eraser, eyedropper, transparency picker, etc.—and decided to build them one at a time. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://itp.nyu.edu/~ia303/ICM/final/draw_mouse_line_w_stroke_palette/applet/index.html"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/hand_sketch.gif" alt="" title="hand sketch" width="450" height="400" class="alignnone size-full wp-image-289" /></a></p>
<p>I decided to start my final ICM project with the drawing interface, because it&#8217;s a discrete program in itself, and because I could actually sort of picture what it might look like. <span id="more-288"></span>So I made a list of components—stroke palette, color picker, eraser, eyedropper, transparency picker, etc.—and decided to build them one at a time. At the same time, I joined forces on the Physcomp final with Diego, for his glove project that turned out to be a drawing tool, so I knew the interface might need to change, in order to work with that hardware.</p>
<p>It seemed like it had been weeks since I&#8217;d written sketch in Processing, so I started by rereading the chapters on objects and arrays from the book. Then I made the supersimple mouse-tracking line-drawer that we did at the beginning of the semester. And then I added a stroke-width selection palette to work with that. The first version is above. How it works:</p>
<p>The line turns on and off with a mouse click, so when the sketch opens, if you wave your mouse around, you get no line. Then you click once to turn the drawing tool&#8212;let&#8217;s call it a pencil&#8212;on, and you draw, draw, draw. You can click to turn off the pencil at any time, select a different stroke width, and click to start drawing again, from a new mouse position. The stroke that&#8217;s currently selected in the palette appears highlighted in green, with the line in black; all the inactive stroke sizes are gray.</p>
<p>What&#8217;s wrong with this interface:</p>
<ol>
<li>At program launch, it&#8217;s supposed to default to the thinnest line, in black. I forgot to set that up, so instead, if you turn on the pencil without selecting a stroke width first, you get the last line style that was drawn to make the palette, which is the 16-point version in gray. Oops.</li>
<li>There&#8217;s no indicator showing whether the pencil is on or off. So a couple of times when I thought it was off, I moved my mouse and found that it was on.</li>
<li>There&#8217;s no undo. If I could undo the previous stroke, problem 2 would be surmountable.</li>
<li>There&#8217;s no eraser. This would also help with problem 2.</li>
<li>The thicker lines are not smooth. I guess this is because I&#8217;ve got the stroke ends set to square, because it made the palette look neater; either round ends need to be turned back on for drawing, or I need to interpolate the pixels between the line segments.</li>
<li>The focus highlighting on the fattest stroke in the palette isn&#8217;t wide enough.</li>
<li>You shouldn&#8217;t be able to draw behind or over the palette.</li>
</ol>
<p>Questions:</p>
<ul>
<li>Clicking to turn the pencil on and off is a bit confusing, perhaps. Maybe it should be click-and-drag, instead?</li>
<li>This stroke selector is probably too difficult to operate when you&#8217;re using a glove-mounted LED that&#8217;s being tracked by a camera, instead of drawing directly with a mouse. Maybe it should be a single slider, instead, for the PComp version. You basically need to be able to use this interface with mittens on.</li>
</ul>
<p>So, obviously, I need to solve the various problems, of which #3 is probably the tricksiest. To make an undo command, I think I&#8217;ll probably save the drawing state every time the pencil is turned off. And &#8220;undo&#8221; should use the standard keyboard shortcut, of course, as well as having a button.</p>
<p>Once those issues are addressed, I think color is the next thing to deal with. The color picker may be so large as to have to be retractable, in which case saving the drawing state becomes even more essential.</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/21/sketching-sketch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Painterly pixels</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/18/painterly-pixels/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/18/painterly-pixels/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 16:46:38 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[ICM]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[sketch]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=277</guid>
		<description><![CDATA[
If you have trouble imagining how one might make expressive images using tools like Processing, take a look at the beautiful pixel-style art of Craig @ Superbrothers.

Of course, some of the loveliness of these illustrations comes from the fact that they&#8217;re not made of flat, pure-hued pixels—the colored rectangles are grainy, organic, and warm. But [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://illoz.com/superbrothers/?section=portfolios"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/superbrothers.gif" alt="" title="superbrothers" width="330" height="397" class="alignnone size-full wp-image-278" /></a></p>
<p>If you have trouble imagining how one might make expressive images using tools like Processing, take a look at the beautiful pixel-style art of <a href="http://www.superbrothers.ca/">Craig @ Superbrothers</a>.<br />
<span id="more-277"></span><br />
Of course, some of the loveliness of these illustrations comes from the fact that they&#8217;re <em>not</em> made of flat, pure-hued pixels—the colored rectangles are grainy, organic, and warm. But the greater part of their success comes, I think, from the concision of the shapes. So much information is conveyed by so few squares.</p>
<p>If you can channel that kind of economy, you can probably draw with anything.</p>
<p>Via <a href="http://illoz.com/superbrothers/?section=portfolios">illoz</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/18/painterly-pixels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distributed Drawing</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/12/distributed-drawing/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/12/distributed-drawing/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 17:36:24 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[ICM]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[final project]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=248</guid>
		<description><![CDATA[
For the last three Novembers, I&#8217;ve coordinated a project called DrawMo!, whereby persons around the world, both known and unknown to each other, draw every day for a month. Some people post their work to Flickr, some blog it either on their own sites or on the group blog, some work only offline; but everybody [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/cow_diagram_450.jpg" alt="butchering diagram" width="450" height="326" class="alignnone size-full wp-image-251" /></p>
<p>For the last three Novembers, I&#8217;ve coordinated a project called <a href="http://drawmo.wordpress.com/">DrawMo!</a>, whereby persons around the world, both known and unknown to each other, draw every day for a month. Some people post their work to Flickr, some blog it either on their own sites or on the group blog, some work only offline; but everybody draws, separately, in his or her own special way.<br />
<span id="more-248"></span><br />
So what I&#8217;d like to do for my final ICM project is add a more collaborative component to this than the group blog, which is, frankly, pretty dull lately. (The Flickr feed is where it&#8217;s at.) The idea is to create online <a href="http://en.wikipedia.org/wiki/Exquisite_corpse">Exquisite Corpse</a>&ndash;type drawings, in which multiple people draw different parts of a single composition, without being able to see most of each other&#8217;s work, or the whole drawing, until it is done. It would have a Web front-end, using PHP to collect and organize the drawings and information about the participants, and there would be an optional Processing-based online drawing tool.</p>
<h3>What Happens</h3>
<ul>
<li>A person, let&#8217;s call her &#8220;Elisabeth,&#8221; visits the site and fills in her name and e-mail address.</li>
<li>If Elisabeth is the first person to arrive, or if a new drawing is being started, she is asked to choose a square to work on and whether she wants to upload a drawing or use the online drawing interface.</li>
<li>Elisabeth can&#8217;t see the the composite drawing-in-progress, but she can see a schematic with gray boxes for squares that are done, labeled with the artist&#8217;s name. If someone else already has a square that is adjacent to hers &#8220;checked out,&#8221; she will be told that she is on the waiting list and will receive an e-mail when the square is free. (She needs to be able to see the edges of any adjacent squares, so that her drawing can link to them visually.)</li>
<li>Elisabeth has one hour to work on her square. After that, she will receive a nag message, which will ask if she wants to continue. If she doesn&#8217;t click &#8220;yes,&#8221; the drawing is posted and it&#8217;s the next person&#8217;s turn. She can only postpone three times, for a total of four hours.</li>
<li>If Elisabeth chooses to use the drawing tool, she&#8217;s presented with a Processing window with a toolbar along the side—rather like Jonathan&#8217;s project from a few weeks back, but with more options. She can draw lines and simple shapes and can control the line width, color, and transparency. There is an eraser, an eyedropper for matching colors, and a &#8220;start over&#8221; button. Maybe a straight line tool. Elisabeth gets a fixed-size canvas, and if other people have already participated in the drawing, she will see the edges of the squares that are adjacent to hers, so that she can line things up</li>
<li>The drawing consists of a 4 &times; 4&ndash;square grid, with each block being 600 pixels square. So the finished piece is 2,400 pixels square, or 8 inches, if printed out at 300 dpi—suitable for framing.</li>
<li>If Elisabeth has chosen to upload an image, she can then draw on top of it.</li>
<li>When Elisabeth is done, she saves her drawing and it is added to the composite drawing. Once she&#8217;s saved her drawing, she is allowed to rejoin the queue, if she wishes to draw another square.</li>
<li>The next person on the waiting list gets an e-mail announcing that it is his or her turn to draw. Everyone except the last person can choose which square to draw on.</li>
<li>Finished drawings are archived on the website and can be viewed at any time.</li>
<li>When the drawing is complete, everybody who participated receives an e-mail with a link. The final piece is posted to Flickr and can be downloaded as a JPEG or PDF.</li>
</ul>
<h3>Questions</h3>
<ul>
<li>How to let multiple people draw at one time?</li>
<li>Should people be able to revise their squares after they&#8217;ve check them in?</li>
<li>Should comments be allowed on the squares? On the whole drawing?</li>
</ul>
<h3>Some Other Collaborative Drawing Programs</h3>
<p><a href="http://www.drawball.com/">Drawball</a><br />
<a href="http://krazycanvas.com/">krazycanvas</a><br />
<a href="http://www.netsketchapp.com/">NetSketch</a></p>
<p><span style="font-size:smaller">Photo: <a href="http://www.flickr.com/photos/veganstraightedge/2955258165/">butcher shop cow diagram in window in bernal heights, san francisco, california</a> by veganstraightedge  / shaners becker.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/12/distributed-drawing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHPhun</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/10/phphun/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/10/phphun/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 08:13:27 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[ICM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[homework]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=233</guid>
		<description><![CDATA[
I completely spaced the ICM homework last week, which is sad, because it involved a language I actually have some experience with: PHP. I know just enough about it to fiddle with WordPress templates&#8212;and once, in 2002 or so, I spent a few days trying to rebuild the ColdFusion-backed poets.org in PHP, just for kicks.
Yeah, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/ooocha/2844442207/"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/auto-setter.jpg" alt="" title="Auto Setter" width="450" height="134" class="alignnone size-full wp-image-234" /></a></p>
<p>I completely spaced the ICM homework last week, which is sad, because it involved a language I actually have some experience with: PHP. I know just enough about it to fiddle with WordPress templates&mdash;and once, in 2002 or so, I spent a few days trying to rebuild the ColdFusion-backed poets.org in PHP, just for kicks.</p>
<p>Yeah, I didn&#x0092;t get very far with that, <span id="more-233"></span>but it&#x0092;s the thought that counts.</p>
<p>Last week&#x0092;s assignment was to </p>
<blockquote><p>Using HTML and PHP, create a page which contains a form for some kind of (census, survey?) data collection and a second page which tallies up and displays the results (perhaps use Processing for visualizing the results</p></blockquote>
<p>Easy peasy. I mean, not that this is stuff I can do off the top of my head&mdash;HTML forms are one of the many things I rarely have occasion to create from scratch, so I&#x0092;ve never gotten enough practice at it to not have to look up the syntax for every single type of control&mdash;but it&#x0092;s certainly stuff I&#x0092;ve done dozens of times. So on Friday, while I was waiting for it to be time to go to a party, I started putting together a little cast-off calculator.</p>
<p><i>Casting off</i>, for those who do not work in publishing, is the process of figuring out how long a typeset book will be, based on its typed or word-processed manuscript. It can be surprisingly accurate, when one has reliable character-per-pica (CPP) charts with which to estimate the volume of the typeset page. This problem is, of course, that there are a zillion factors that can affect the CPP. Which font are you using&mdash;that is, which typeface, and in which size? You have to be very specific about this. Just saying &#8220;Garamond 9&#8243; won&#x0092;t do; you need to know <em>which</em> Garamond&mdash;Adobe? Postscript or OpenType (or metal, or photoset)? The old Adobe Garamond, or the new Adobe Garamond Premier Pro? What typesetting program are you using&mdash;InDesign CS3, Quark XPress 4.11, PageMaker 6 Win, Pages? LaTeX? What <acronym title="hyphenation and justification settings">H&#038;J</acronym>s are you using? Does the text use a lot of italics? Blah, blah, blah.</p>
<p>So, this calculator is actually pretty useless, because the CPP figures for my various font options are pulled from a couple of sources, none of them good. Somewhere I have a real list of CPPs from Westchester, a major U.S. typesetter, which I know are reliable . . . for the conditions under which Westchester was setting books for me at the time: Quark XPress 4 or 5, PostScript fonts, fixed H&#038;Js, etc. Somewhere I also have a more detailed, and therefore accurate, cast-off formula that takes into account the number of chapters and parts a book has, and how much front or back matter there is. Maybe later I&#x0092;ll update this code to reflect those real-life samples. For now, though, it gives you the basic gist: you plug in some numbers, you get some numbers back.</p>
<p>The input form&mdash;adapted from an example in the <cite><a href="http://www.chicagomanualofstyle.org/">Chicago Manual of Style</a></cite> (Fig. A.4)&mdash;is okay, but the output page is quite nasty so far. Not sure what&#x0092;s the best way to present all that information, so for now I&#x0092;ve just left it where the PHP flang it.</p>
<p>Try it out: <a href=" http://itp.nyu.edu/~ia303/ICM/week9/castoff.html">Cast-off Calculator</a></p>
<p>The PHP portion is as follows:</p>
<p><code>&lt;?php<br />
			$chars_per_line = $_GET['chars_per_line'];<br />
 			$lines_per_page = $_GET['lines_per_page'];<br />
			$ms_page_count = $_GET['ms_page_count'];<br />
            $total_ms_chars = $chars_per_line * $lines_per_page * $ms_page_count;</p>
<p>			list($font, $cpp) = split(";", $_GET['typeface'], 2);<br />
			$measure = $_GET['measure'];<br />
			$depth = $_GET['depth'];<br />
            $total_page_chars = $cpp * $measure * $depth;<br />
            $chars_tight = round($total_page_chars * .9);<br />
            $chars_loose = round($total_page_chars * 1.10);</p>
<p>            $castoff = round($total_ms_chars / $total_page_chars);<br />
            $pages_tight = round($castoff * .9);<br />
            $pages_loose = round($castoff * 1.10);</p>
<p>			echo "&lt;p>&lt;b>Characters per line:&lt;/b> " . $chars_per_line . "&lt;br /><br />
			&amp;times;&lt;br /><br />
			&lt;b>Lines per page:&lt;/b> " . $lines_per_page . "&lt;br /><br />
			&amp;times;&lt;br /><br />
			&lt;b>Number of manuscript pages:&lt;/b> " . $ms_page_count . "&lt;br /><br />
			=&lt;br /><br />
			" . number_format($total_ms_chars) . " total characters in manuscript&lt;/p><br />
			&lt;p>&lt;b>Font:&lt;/b> " . $font . "&lt;br /><br />
			&lt;b>Characters per pica:&lt;/b> " . $cpp . "&lt;br /><br />
			&amp;times;&lt;br />&lt;b>Picas per line:&lt;/b> " . $measure . "&lt;br /><br />
			&amp;times;&lt;br /><br />
			&lt;b>Lines per typeset page:&lt;/b> " . $depth . "&lt;br /><br />
			=&lt;br /><br />
			" . number_format($total_page_chars) . " total characters per typeset page&lt;br /><br />
			&lt;b>Tight:&lt;/b> " . number_format($chars_tight) . "&lt;br /><br />
			&lt;b>Loose:&lt;/b> " . number_format($chars_loose) . "&lt;/p><br />
			&lt;p>Characters in manuscript &divide; characters per typeset page =&lt;br /><br />
			&lt;b>Normal:&lt;/b> " .  number_format($castoff) . " pages &amp;#8594; " . floor($castoff / 8) . " &amp;times; 8 + " . bcmod($castoff, '8') . " pages&lt;br /><br />
			&lt;b>Tight:&lt;/b> " . number_format($pages_tight) . " pages &amp;#8594; " . floor($pages_tight / 8) . " &amp;times; 8 + " . bcmod($pages_tight, '8') . " pages&lt;br /><br />
			&lt;b>Loose:&lt;/b> " . number_format($pages_loose) . " pages &amp;#8594; " . floor($pages_loose / 8) . " &amp;times; 8 + " . bcmod($pages_loose, '8') . " pages&lt;/p>";</p>
<p>?></code><br />
<span style="font-size:smaller;color:#666;">Photo: <a href="http://www.flickr.com/photos/ooocha/2844442207/">Auto Setter</a> by Marion Doss; <a href="http://creativecommons.org/licenses/by-sa/2.0/deed.en">some rights reserved</a>.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/10/phphun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Final Project Ideas</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/11/06/my-final-project-ideas/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/11/06/my-final-project-ideas/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 13:42:02 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[ICM]]></category>
		<category><![CDATA[PhysComp]]></category>
		<category><![CDATA[final project]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=206</guid>
		<description><![CDATA[

It was a comfort to note, though, that I was not completely crazy for being under the impression that there was no PhysComp lab due last week. There&#8217;s not so much as a peep about it on the syllabus.
Update: Oh, that lab. The lab that we were supposedly supposed to do while we were killing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/emptycan.jpg"><img src="http://itp.nyu.edu/~ia303/thunk/wp-content/uploads/emptycan-400x311.jpg" alt="" title="emptycan" width="400" height="311" class="alignnone size-medium wp-image-207" /></a><br />
<span id="more-206"></span></p>
<p>It was a comfort to note, though, that I was not completely crazy for being under the impression that there was no PhysComp lab due last week. There&#8217;s not so much as a peep about it on the <a href="http://itp.nyu.edu/physcomp/Intro/Topics">syllabus</a>.</p>
<p>Update: Oh, <em>that</em> lab. The lab that we were supposedly supposed to do while we were killing ourselves over the midterm project. Right. How could I possibly have overlooked it.</p>
<p><span style="font-size:smaller;color:#666;">Photo: <a href="http://www.flickr.com/photos/spike55151/97368449/">Empty Can</a> by  spike55151  / Chris; <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en">some rights reserved</a>.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/11/06/my-final-project-ideas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhysComp midterm project, week 2: Rough prototype</title>
		<link>http://itp.nyu.edu/~ia303/thunk/2008/10/15/midterm-project-week-2-rough-prototype/</link>
		<comments>http://itp.nyu.edu/~ia303/thunk/2008/10/15/midterm-project-week-2-rough-prototype/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 15:35:02 +0000</pubDate>
		<dc:creator>India</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[ICM]]></category>
		<category><![CDATA[PhysComp]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[homework]]></category>
		<category><![CDATA[lab]]></category>
		<category><![CDATA[midterm]]></category>
		<category><![CDATA[sketch]]></category>

		<guid isPermaLink="false">http://itp.nyu.edu/~ia303/thunk/?p=123</guid>
		<description><![CDATA[
Part 2 in the saga that began last week.
After spending about an hour playing with the Minim library in Processing, I went into the lab to see if I could get it to work with actual input from our IR sensors. This was basically a repeat of this week&#8217;s homework, which I&#8217;d done, for once, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/indiamos/2943757274/" title="A semi-working prototype! by indiamos, on Flickr"><img src="http://farm4.static.flickr.com/3234/2943757274_c221cdf116.jpg" width="450" height="282" alt="A semi-working prototype!" /></a></p>
<p>Part 2 in <a href="http://itp.nyu.edu/~ia303/thunk/2008/10/09/midterm-project-week-1-observation/">the saga that began last week</a>.</p>
<p>After spending about an hour playing with the <a href="http://code.compartmental.net/tools/minim/">Minim</a> library in Processing, I went into the lab to see if I could get it to work with actual input from our IR sensors. This was basically a repeat of this week&#8217;s homework, which I&#8217;d done, for once, <em>before</em> the morning it was due, so the wiring part was uncharacteristically easy. I need to get some header pins, though; the stranded wire on the IR sensors is a pain to plug into a breadboard.</p>
<p>So our project&#8212;which I realize I didn&#8217;t explain last week&#8212;is going to be a cubeoid musical (or, at least, noisy) instrument with an infrared sensor set into each side, mounted corner-up (<a href="http://www.flickr.com/photos/indiamos/2926903690/">as demonstrated by Diego</a>) on a camera tripod. One or more players can then use their hands or other body parts or utensils or pets to trigger different sounds from each side. We were thinking that for Phase One, i.e., this week, we&#8217;d have the sounds be synthesized tones, and that for Phase Two, the final version, we&#8217;d make it play various different loops.</p>
<p>It turned out, however, that it&#8217;s far easier&#8212;for me, at least&#8212;to get Minim to play loops than to synthesize sounds. And there are a lot of free sound clips out there in the world. I got mine from <a href="http://www.canadianmusicartists.com/samples.html">CanadianMusicArtists.com</a>. This pre-prototype, therefore, has only two sensors, both of which trigger audio loops. It also has the beginnings of a lame-ass bouncing ball animation, but it doesn&#8217;t do what I want it to do, mostly because the signal&#8217;s changing too rapidly. Graphics were a tentative feature for Phase Two, so I&#8217;m not going to fuss with that part any more this week.</p>
<p>Here&#8217;s some crappy video of Filippo (left) and Diego (right) making the sensors generate noise. You can barely hear it, unfortunately&#8212;listen for the annoying rapid clicking sound, which I think is the hi-hat sound. </p>
<p><embed src="http://blip.tv/play/AdOvdI_feg" type="application/x-shockwave-flash" width="320" height="270" allowscriptaccess="always" allowfullscreen="true"></embed> </p>
<p>The beauty part? This doubles as my <a href="http://itp.nyu.edu/~sve204/icm_fall08/">ICM</a> homework.</p>
<p>Here&#8217;s the Arduino code:</p>
<blockquote><p><code>/*  Reads data from two analog sensors (IR sensors, in this specific example)<br />
    and outputs the values in a format that can be easily parsed in Processing.<br />
*/</p>
<p>int ledPin = 7;<br />
int irSensor0 = 0;<br />
int irSensor1 = 1;<br />
int sensorValue = 0;</p>
<p>void setup()<br />
{<br />
    //  Flash the LED three times to announce the start of program.<br />
    pinMode( 7, OUTPUT );<br />
    digitalWrite( 7, LOW );<br />
    delay( 300 );<br />
    digitalWrite( 7, HIGH );<br />
    delay( 300 );<br />
    digitalWrite( 7, LOW );<br />
    delay( 300 );<br />
    digitalWrite( 7, HIGH );<br />
    delay( 300 );<br />
    digitalWrite( 7, LOW );<br />
    delay( 300 );<br />
    digitalWrite( 7, HIGH );<br />
    delay( 300 );<br />
    digitalWrite( 7, LOW );</p>
<p>    // Start serial port at 9600 bps:<br />
    Serial.begin( 9600 );<br />
}</p>
<p>void loop()<br />
{<br />
    if (Serial.available() > 0)<br />
    {<br />
    //  Read the first (0) sensor:<br />
    sensorValue = analogRead( irSensor1 );</p>
<p>    // print the results:<br />
    Serial.print( sensorValue, DEC );<br />
    Serial.print( "\t" );</p>
<p>    // read the second (1) sensor:<br />
    sensorValue = analogRead( irSensor0 );<br />
    // print the results:<br />
    Serial.println( sensorValue, DEC );</p>
<p>    //  Follow the last sensor value with a println() so that<br />
    //  each set of four readings prints on a line by itself:<br />
    Serial.println( sensorValue, DEC );<br />
    //  delay ( 100 );<br />
    }<br />
}</code></p></blockquote>
<p>And here&#8217;s the  <a href="http://itp.nyu.edu/~ia303/ICM/week6/music_box_2xIR/applet/music_box_2xIR.pde">Processing code</a>, where most of the excitement takes place.</p>
]]></content:encoded>
			<wfw:commentRss>http://itp.nyu.edu/~ia303/thunk/2008/10/15/midterm-project-week-2-rough-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
