<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: multiple inlet jitter object in javascript&#8230;(jit.lumakey in js)</title>
		<atom:link href="http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 20:36:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/#post-41924</guid>
					<title><![CDATA[multiple inlet jitter object in javascript&#8230;(jit.lumakey in js)]]></title>
					<link>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/#post-41924</link>
					<pubDate>Sat, 24 Jan 2009 22:56:41 +0000</pubDate>
					<dc:creator>Peter Nyboer</dc:creator>

					<description>
						<![CDATA[
						<p>How does one express the different inputs in the matrixcalc() function?<br />
This question came up as I tried to debug why my below patch isn&#8217;t working. Really, I don&#8217;t even really need multiple inlets, as I&#8217;m trying to use jit.lumakey in mode 1&#8230;.</p>
<p>Here&#8217;s my patch and JS:</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 6;<br />
#P comment 331 224 100 196617 Or , maybe the JS needs some fanciness in matrixcalc becuase lumakey has 2 inputs?;<br />
#P window linecount 1;<br />
#P comment 129 227 100 196617 &#8230;.this;<br />
#P user jit.pwindow 330 160 82 62 0 1 0 0 1 0;<br />
#P newex 329 132 148 196617 jit.lumakey @fade 0.1 @lum 0.;<br />
#P newex 10 61 21 196617 t 1;<br />
#P newex 14 82 52 196617 metro 20;<br />
#P button 78 32 15 0;<br />
#P newex 85 59 127 196617 loadmess read dishes.mov;<br />
#P newex 86 86 63 196617 jit.qt.movie;<br />
#P user jit.pwindow 130 160 82 62 0 1 0 0 1 0;<br />
#P newex 129 136 191 196617 jit.lumakey @mode 1 @fade 0.1 @lum 0.;<br />
#P user jit.pwindow 19 162 82 62 0 1 0 0 1 0;<br />
#P newex 23 134 77 196617 js moviekey.js;<br />
#P window linecount 2;<br />
#P comment 17 230 100 196617 this should be the same as&#8230;.;<br />
#P connect 6 0 9 0;<br />
#P connect 9 0 8 0;<br />
#P connect 1 0 2 0;<br />
#P connect 5 0 1 0;<br />
#P connect 7 0 6 0;<br />
#P connect 6 0 5 0;<br />
#P connect 8 0 5 0;<br />
#P connect 5 0 3 0;<br />
#P connect 3 0 4 0;<br />
#P connect 5 0 10 0;<br />
#P connect 10 0 11 0;<br />
#P window clipboard copycount 14;</p>
<p>
/*save as moviekey.js and put in search path */</p>
<p>autowatch = 1;<br />
editfontsize = 12;</p>
<p>var outmatrix = new JitterMatrix();<br />
outmatrix.adapt=1;<br />
var dummatrix = new JitterMatrix();<br />
dummatrix.adapt=1;<br />
var lumakey = new JitterObject(&#8220;jit.lumakey&#8221;);<br />
lumakey.mode = 1;<br />
lumakey.fade = 0.1;<br />
lumakey.lum = 0;<br />
var matrixname = &#8220;movmatrix&#8221;;<br />
var usethismatrix = &#8220;&#8221;;</p>
<p>function jit_matrix(inname){<br />
	outmatrix.setinfo(inname);<br />
	lumakey.matrixcalc(inname,outmatrix); <br />
	outlet(0,&#8221;jit_matrix&#8221;,outmatrix.name);<br />
}</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/#post-149707</guid>
					<title><![CDATA[Re: multiple inlet jitter object in javascript&#8230;(jit.lumakey in js)]]></title>
					<link>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/#post-149707</link>
					<pubDate>Sun, 25 Jan 2009 10:41:04 +0000</pubDate>
					<dc:creator>nesa</dc:creator>

					<description>
						<![CDATA[
						<p>well, I&#8217;m not 100% sure on this, but you should be able to send array  <br />
of matrix names as input to matrixcalc:</p>
<p>lumakey.matrixcalc( [inname, in2name] , outputmatrix);</p>
<p>hth,<br />
nesa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/#post-149708</guid>
					<title><![CDATA[Re: multiple inlet jitter object in javascript&#8230;(jit.lumakey in js)]]></title>
					<link>http://cycling74.com/forums/topic/multiple-inlet-jitter-object-in-javascript-jit-lumakey-in-js/#post-149708</link>
					<pubDate>Sun, 25 Jan 2009 16:41:23 +0000</pubDate>
					<dc:creator>Peter Nyboer</dc:creator>

					<description>
						<![CDATA[
						<p>yes, that helps.  thanks for the clue.  for the record, here&#8217;s a script that works:</p>
<p>
autowatch = 1;<br />
editfontsize = 12;</p>
<p>var outmatrix = new JitterMatrix(4,&#8221;char&#8221;,320,240);<br />
outmatrix.adapt=1;<br />
var dummatrix = new JitterMatrix(4,&#8221;char&#8221;,320,240);<br />
dummatrix.adapt=1;<br />
var lumakey = new JitterObject(&#8220;jit.lumakey&#8221;);<br />
lumakey.mode = 1;<br />
lumakey.fade = 0.1;<br />
lumakey.lum = 0;<br />
lumakey.adapt = 1;<br />
var matrixname = &#8220;movmatrix&#8221;;<br />
var usethismatrix = &#8220;&#8221;;</p>
<p>function jit_matrix(inname){<br />
	outmatrix.setinfo(inname);<br />
	dummatrix.setinfo(inname);<br />
	lumakey.matrixcalc([inname,dummatrix],outmatrix); <br />
	outlet(0,&#8221;jit_matrix&#8221;,outmatrix.name);<br />
}</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

