<?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: jit.noise generated from Java</title>
		<atom:link href="http://cycling74.com/forums/topic/jit-noise-generated-from-java/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 20:28:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-47253</guid>
					<title><![CDATA[jit.noise generated from Java]]></title>
					<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-47253</link>
					<pubDate>Thu, 17 Dec 2009 14:04:22 +0000</pubDate>
					<dc:creator>efe</dc:creator>

					<description>
						<![CDATA[
						<p>Hello!<br />
Maybe a super-simple-to-solve question but I haven&#8217;t been able to figure this out!. I am trying to generate a simple java class that triggers a jit.noise every time it gets a bang. I have something like this:</p>
<p>import com.cycling74.max.*;<br />
import com.cycling74.jitter.*;</p>
<p>public class matrixTest3 extends MaxObject{<br />
    JitterObject noiss;<br />
    JitterMatrix dim1;</p>
<p>    public matrixTest3(Atom[] args){<br />
        declareInlets(new int[]{DataTypes.ALL});<br />
        declareOutlets(new int[]{DataTypes.ALL});<br />
        noiss=new JitterObject( &#8220;jit.noise&#8221;, new Atom[] { Atom.newAtom( 4 ), Atom.newAtom( &#8220;char&#8221; ), Atom.newAtom( 100 ), Atom.newAtom( 100 ) } );<br />
        dim1=new JitterMatrix(&#8220;dimen&#8221;,4,&#8221;char&#8221;,100,100);<br />
    }</p>
<p>    public void bang(){<br />
        //generate();< ---here's the method call<br />
        outlet(0,&#8221;jit_matrix&#8221;,new Atom[]{Atom.newAtom(dim1.getName())});<br />
    }</p>
<p>    /*<br />
    public void generate(){<br />
    I am not sure what to put here!<br />
    */<br />
}  </p>
<p>So by calling the method generate() i would like to get the random values of the matrix.<br />
Sorry if the question is too basic!<br />
Emmanuel</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169978</guid>
					<title><![CDATA[Re: jit.noise generated from Java]]></title>
					<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169978</link>
					<pubDate>Thu, 17 Dec 2009 14:35:39 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>Jitter generators are just special versions of matrix operators, with no inputs, only outputs. Use the matrixcalc method to generate the output matrix. As mentioned in a previous thread (on jit.noise in Java), in Java, Javascript, or C these objects don&#8217;t take matrix arguments like their max wrapper counterparts. </p>
<p>Essentially: </p>
<p>noiss=new JitterObject( &#8220;jit.noise&#8221;);<br />
dim1=new JitterMatrix(&#8220;dimen&#8221;,4,&#8221;char&#8221;,100,100);<br />
noiss.matrixcalc(null,dim1);</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169979</guid>
					<title><![CDATA[Re: jit.noise generated from Java]]></title>
					<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169979</link>
					<pubDate>Thu, 17 Dec 2009 15:08:45 +0000</pubDate>
					<dc:creator>efe</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Joshua:<br />
thank you for the fast answer. I modified my code following your advice:</p>
<p>import com.cycling74.max.*;<br />
import com.cycling74.jitter.*;</p>
<p>public class matrixTest3 extends MaxObject<br />
{<br />
    JitterObject noiss;<br />
    JitterMatrix dim1;</p>
<p>    public matrixTest3(Atom[] args){<br />
        declareInlets(new int[]{DataTypes.ALL});<br />
        declareOutlets(new int[]{DataTypes.ALL});<br />
        noiss=new JitterObject( &#8220;jit.noise&#8221;);<br />
        dim1=new JitterMatrix(&#8220;dimen&#8221;,4,&#8221;char&#8221;,10,100);<br />
        noiss.matrixcalc(null,dim1);<br />
    }</p>
<p>    public void bang(){<br />
        outlet(0,&#8221;jit_matrix&#8221;,new Atom[]{Atom.newAtom(dim1.getName())});<br />
    }<br />
}</p>
<p>it works but i cannot update the state of the matrix every time i send a bang. Is there any way to do so?</p>
<p>I tried a different approach but this didn&#8217;t work(it compiles properly but doesn&#8217;t output anything):<br />
import com.cycling74.max.*;<br />
import com.cycling74.jitter.*;</p>
<p>public class matrixTest4 extends MaxObject<br />
{<br />
    JitterObject noiss;<br />
    JitterMatrix dim1;</p>
<p>    public matrixTest4(Atom[] args){<br />
        declareInlets(new int[]{DataTypes.ALL});<br />
        declareOutlets(new int[]{DataTypes.ALL});<br />
        noiss=new JitterObject( &#8220;jit.noise&#8221;);<br />
        dim1=new JitterMatrix(&#8220;dimen&#8221;,4,&#8221;char&#8221;,10,100);<br />
        noiss.matrixcalc(null,dim1);<br />
    }</p>
<p>    public void jit_matrix(String inname)<br />
	{<br />
		dim1.frommatrix(inname);		</p>
<p>		outlet(0, &#8220;jit_matrix&#8221;, dim1.getName());<br />
	}<br />
}</p>
<p>Any suggestions?</p>
<p>Thank you for the help!<br />
Emmanuel</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169980</guid>
					<title><![CDATA[Re: jit.noise generated from Java]]></title>
					<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169980</link>
					<pubDate>Thu, 17 Dec 2009 18:05:19 +0000</pubDate>
					<dc:creator>efe</dc:creator>

					<description>
						<![CDATA[
						<p>This is quite strange. I recompiled the external and now nothing happens.<br />
It is saying:<br />
#N: extra arguments for message &#8220;jit_noise&#8221;<br />
wow, I am pretty lost here.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169981</guid>
					<title><![CDATA[Re: jit.noise generated from Java]]></title>
					<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169981</link>
					<pubDate>Thu, 17 Dec 2009 19:24:48 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>- #N: extra arguments for message &#8220;jit_noise&#8221;</p>
<p>That is assuredly from your old example where you passed in matrix arguments to your jit.noise object. the new examples should not exhibit that behavior.</p>
<p>The noise is calculated by matrixcalc. Call it once per frame as in:</p>
<p>public void bang(){<br />
noiss.matrixcalc(null,dim1); // this is what generates noise!<br />
outlet(0,&#8221;jit_matrix&#8221;,new Atom[]{Atom.newAtom(dim1.getName())});<br />
}</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169982</guid>
					<title><![CDATA[Re: jit.noise generated from Java]]></title>
					<link>http://cycling74.com/forums/topic/jit-noise-generated-from-java/#post-169982</link>
					<pubDate>Thu, 17 Dec 2009 19:52:32 +0000</pubDate>
					<dc:creator>efe</dc:creator>

					<description>
						<![CDATA[
						<p>wow, thank you for the help!<br />
Sorry for all the noise!<br />
Emmanuel</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

