<?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: output list from jitter object like jit.matrixinfo</title>
		<atom:link href="http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 14:19:14 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-60583</guid>
					<title><![CDATA[output list from jitter object like jit.matrixinfo]]></title>
					<link>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-60583</link>
					<pubDate>Fri, 09 Dec 2011 16:01:41 +0000</pubDate>
					<dc:creator>cap10subtext</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Just having trouble with sending a list of mixed symbols from the left outlet. It works with longs and float32 but I can&#8217;t seem to get it to output a list of mixed symbols separated by comma exactly like jit.matrixinfo.</p>
<p>Is there an example anywhere of how this works in the SDK?</p>
<p>Everything I&#8217;m doing is exactly like the jit.3m file at the moment except I&#8217;m trying to put </p>
<p>// for atom_setsym<br />
#include &#8220;ext_obex.h&#8221;<br />
&#8230;<br />
typedef struct _jit_framegrabber<br />
{<br />
&#8230;<br />
t_atom minall[5];<br />
&#8230;<br />
}<br />
&#8230;<br />
	attr = jit_object_new(_jit_sym_jit_attr_offset_array,&#8221;minall&#8221;,_jit_sym_list,JIT_MATRIX_MAX_PLANECOUNT,attrflags,<br />
		(method)0L,(method)0L,calcoffset(t_jit_framegrabber,listLength),calcoffset(t_jit_framegrabber,minall));<br />
	jit_class_addattr(_jit_framegrabber_class,attr);</p>
<p>&#8230;<br />
t_jit_err jit_framegrabber_matrix_calc(t_jit_framegrabber *x, void *inputs, void *outputs)<br />
{<br />
&#8230;</p>
<p>    atom_setlong(x->minall, 43);<br />
        atom_setsym(x->minall +1, gensym(&#8220;crazy&#8221;));<br />
        atom_setfloat(x->minall + 2, 8.34);</p>
<p>} else {<br />
		return JIT_ERR_INVALID_PTR;<br />
	}</p>
<p>out:<br />
	jit_object_method(in_matrix,_jit_sym_lock,in_savelock);<br />
	return err;<br />
}</p>
<p>out of the max wrapper.  Right now this is only printing out 0 0 0 0.</p>
<p>How do I format the list and send it back to the wrapper?</p>
<p>How do I include line breaks within the message?  gensym(&#8220;,&#8221;) ?</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218024</guid>
					<title><![CDATA[Re: output list from jitter object like jit.matrixinfo]]></title>
					<link>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218024</link>
					<pubDate>Fri, 09 Dec 2011 16:57:10 +0000</pubDate>
					<dc:creator>cap10subtext</dc:creator>

					<description>
						<![CDATA[
						<p>To partly answer my own question:</p>
<pre><code>attr = jit_object_new(_jit_sym_jit_attr_offset_array,"minall",_jit_sym_list,JIT_MATRIX_MAX_PLANECOUNT,attrflags,
(method)0L,(method)0L,calcoffset(t_jit_framegrabber,listLength),calcoffset(t_jit_framegrabber,minall));
jit_class_addattr(_jit_framegrabber_class,attr);</code></pre><p>Should be _jit_sym_atom</p>
<pre><code>attr = jit_object_new(_jit_sym_jit_attr_offset_array,"minall",_jit_sym_atom,JIT_MATRIX_MAX_PLANECOUNT,attrflags,
(method)0L,(method)0L,calcoffset(t_jit_framegrabber,listLength),calcoffset(t_jit_framegrabber,minall));
jit_class_addattr(_jit_framegrabber_class,attr);</code></pre><p>but I still can&#8217;t figure out the carrage return to separate messages?  it&#8217;s not gensym(&#8220;,&#8221;) but I&#8217;d rather not just keep guessing.</p>
<p>Anyone?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218025</guid>
					<title><![CDATA[Re: output list from jitter object like jit.matrixinfo]]></title>
					<link>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218025</link>
					<pubDate>Fri, 09 Dec 2011 18:20:45 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>jit.matrixinfo doesn&#8217;t output its data as a comma separated list of items, but as a sequence of lists like:</p>
<p>planecount 4<br />
type char<br />
dim 2 2</p>
<p>It uses outlet_anything from the max wrapper object.  What you can do is:</p>
<p>outlet_anything(outlet, message_name, natoms, atoms);</p>
<p>If you want to tell the max wrapper from the jitter object that you have data to send out, use notifications.  Have your max wrapper object attach to the jitter object and use jit_object_notify to signal to the max wrapper that it needs to do something.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218026</guid>
					<title><![CDATA[Re: output list from jitter object like jit.matrixinfo]]></title>
					<link>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218026</link>
					<pubDate>Fri, 09 Dec 2011 18:29:41 +0000</pubDate>
					<dc:creator>cap10subtext</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks Wes, I&#8217;ll puzzle through that.</p>
<p>I have one last question.  I&#8217;m struggling with setting an attribute that triggers a method.  It works perfectly except that my attribute &#8220;debug&#8221;shows up in the attribute inspector as &#8220;debug&#8221; instead of &#8220;debug 1&#8243; or &#8220;debug 0&#8243; window and when I try to open the object inspector it crashes.</p>
<p>If this isn&#8217;t correct is there a nice clear example of this in another patch (I&#8217;m looking at jit.spill but the problem is that the only attribute with method has the opaque_user attribute flag.</p>
<p>Did I miss this somewhere in the documentation?</p>
<pre><code>attr = jit_object_new(_jit_sym_jit_attr_offset_array,"debug",_jit_sym_atom,2, attrflags,
                           (method)jit_framegrabber_debug, (method)jit_framegrabber_debug, calcoffset(t_jit_framegrabber,debugOn), calcoffset(t_jit_framegrabber,debugOn));
    jit_class_addattr(_jit_framegrabber_class,attr);</code></pre>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218027</guid>
					<title><![CDATA[Re: output list from jitter object like jit.matrixinfo]]></title>
					<link>http://cycling74.com/forums/topic/output-list-from-jitter-object-like-jit-matrixinfo/#post-218027</link>
					<pubDate>Fri, 09 Dec 2011 18:35:52 +0000</pubDate>
					<dc:creator>cap10subtext</dc:creator>

					<description>
						<![CDATA[
						<p>Oops, okay I think I got it.</p>
<pre><code>attr = jit_object_new(_jit_sym_jit_attr_offset,"debug",_jit_sym_long, attrflags,
                           (method)0L, (method)jit_framegrabber_debug, calcoffset(t_jit_framegrabber,debugOn));
    jit_class_addattr(_jit_framegrabber_class,attr);</code></pre>						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

