<?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: using jit.op in c</title>
		<atom:link href="http://cycling74.com/forums/topic/using-jit-op-in-c/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/using-jit-op-in-c/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 17:40:04 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/using-jit-op-in-c/#post-30767</guid>
					<title><![CDATA[using jit.op in c]]></title>
					<link>http://cycling74.com/forums/topic/using-jit-op-in-c/#post-30767</link>
					<pubDate>Mon, 12 Mar 2007 18:11:04 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>Is there anything special to know about the usage of jit.op in c? The<br />
following code is not working, but doesn&#8217;t generate any errors either. The<br />
output matrix seems to remain unchanged. Both in and out matrices are equal<br />
and float32</p>
<p>-thijs</p>
<p>
    jit_atom_setsym(&#038;atom, gensym(&#8220;+&#8221;));<br />
    object_attr_setvalueof(x->jit_op, gensym(&#8220;op&#8221;), 1, &#038;atom);</p>
<p>    jit_atom_setfloat(&#038;atom, 0.015f);<br />
    object_attr_setvalueof(x->jit_op, gensym(&#8220;val&#8221;), 1, &#038;atom);</p>
<p>    jit_object_method(x->jit_op, gensym(&#8220;matrix_calc&#8221;), x->mx_in,<br />
x->mx_out);</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/using-jit-op-in-c/#post-98954</guid>
					<title><![CDATA[Re: using jit.op in c]]></title>
					<link>http://cycling74.com/forums/topic/using-jit-op-in-c/#post-98954</link>
					<pubDate>Mon, 12 Mar 2007 18:27:30 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>><br />
>     jit_atom_setsym(&#038;atom, gensym(&#8220;+&#8221;));<br />
>     object_attr_setvalueof(x->jit_op, gensym(&#8220;op&#8221;), 1,<br />
> &#038;atom);</p>
<p>
I would recommend using something like:</p>
<p>t_symbol *s[1];<br />
s[1] = gensym(&#8220;+&#8221;);<br />
 jit_attr_setsym_array(x->jit_op, gensym(&#8220;op&#8221;), 1, opsyms);</p>
<p>><br />
>     jit_atom_setfloat(&#038;atom, 0.015f);<br />
>     object_attr_setvalueof(x->jit_op, gensym(&#8220;val&#8221;), 1,<br />
> &#038;atom);<br />
></p>
<p>Under the hood, jit.op is actually calling the setall method of a<br />
matrix in this case as &#8220;val&#8221; is not a jit.op attribute but a max<br />
wrapper attribute which is inaccessible except from the patcher.<br />
Check out the jit.op project in the SDK for more details.</p>
<p>wes</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/using-jit-op-in-c/#post-98955</guid>
					<title><![CDATA[Re: using jit.op in c]]></title>
					<link>http://cycling74.com/forums/topic/using-jit-op-in-c/#post-98955</link>
					<pubDate>Tue, 13 Mar 2007 11:34:21 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks again! I got it.</p>
<p>
> I would recommend using something like:<br />
><br />
> t_symbol *s[1];<br />
> s[1] = gensym(&#8220;+&#8221;);<br />
> jit_attr_setsym_array(x->jit_op, gensym(&#8220;op&#8221;), 1, opsyms);</p>
<p>
thanks for the tip. that makes sense. (if you correct the array name and<br />
index that is ;-)</p>
<p>
Under the hood, jit.op is actually calling the setall method of a<br />
> matrix in this case as &#8220;val&#8221; is not a jit.op attribute but a max<br />
> wrapper attribute which is inaccessible except from the patcher.<br />
> Check out the jit.op project in the SDK for more details.</p>
<p>
I used a 1&#215;1 float32 matrix as the 2nd input, setting that one instead of<br />
@val.</p>
<p>cheers, -thijs</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

