<?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: Adding my own outlets to MOP objects.</title>
		<atom:link href="http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 15:24:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/#post-38149</guid>
					<title><![CDATA[Adding my own outlets to MOP objects.]]></title>
					<link>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/#post-38149</link>
					<pubDate>Thu, 29 May 2008 23:18:33 +0000</pubDate>
					<dc:creator>Andrei M.R.</dc:creator>

					<description>
						<![CDATA[
						<p>Dear all.</p>
<p>I&#8217;m having difficulty adding a list outlet to a MOP object in the location where I want it. I&#8217;ve modified the jit.op example code to support a number of matrix inlets and a single matrix outlet. I want the list outlet as the second outlet; it&#8217;s giving it to me as the first one. </p>
<p>I am using a call to listout() after a call to max_jit_mop_setup_simple() but before I process attributes using max_jit_attr_args(). This is done at the MOP Max Wrapper level by the constructor to max_fcl_jitagmolto_class. I figure this is a reasonable place to put the call to listout() since this constructor is called after the jitter object is initialized.</p>
<p>Is there a better way to do this? Am I being a bonehead?</p>
<p>I appreciate any advice anyone can offer.</p>
<p>Cheers,</p>
<p>Andrei</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/#post-132489</guid>
					<title><![CDATA[Re: Adding my own outlets to MOP objects.]]></title>
					<link>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/#post-132489</link>
					<pubDate>Fri, 30 May 2008 14:52:36 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>On Fri, May 30, 2008 at 12:18 AM, Andrei Rotenstein <andrei @cse.yorku.ca><br />
wrote:</andrei></p>
<p>><br />
> I&#8217;m having difficulty adding a list outlet to a MOP object in the location<br />
> where I want it. I&#8217;ve modified the jit.op example code to support a number<br />
> of matrix inlets and a single matrix outlet. I want the list outlet as the<br />
> second outlet; it&#8217;s giving it to me as the first one.<br />
><br />
> I am using a call to listout() after a call to max_jit_mop_setup_simple()<br />
> but before I process attributes using max_jit_attr_args(). This is done at<br />
> the MOP Max Wrapper level by the constructor to max_fcl_jitagmolto_class. I<br />
> figure this is a reasonable place to put the call to listout() since this<br />
> constructor is called after the jitter object is initialized.<br />
><br />
><br />
Jitter object don&#8217;t normally *have* outlets. The outlets belong to the Max<br />
wrapper object. This is because Jitter objects can be scripted or<br />
instantiated in objects internally, in which case the outlets don&#8217;t exist.<br />
So in order for your object to be able to work, it shouldn&#8217;t have any notion<br />
of outlets.</p>
<p>If you want to communicate data from your object to the max patcher<br />
interface, you can best use the notify mechanism. This way your wrapper<br />
class is registered as a client of your Jitter class. The Jitter class can<br />
send the data through a notify message to its clients. The max wrapper will<br />
then parse/interpret the data and format it to its dump outlet, or any other<br />
outlet you created in your wrapper.</p>
<p>Have a look at the jit.notify example. The object used to be missing from<br />
the Windows Jitter sdk.</p>
<p>Cheers,<br />
Thijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/#post-132490</guid>
					<title><![CDATA[Re: Adding my own outlets to MOP objects.]]></title>
					<link>http://cycling74.com/forums/topic/adding-my-own-outlets-to-mop-objects/#post-132490</link>
					<pubDate>Fri, 06 Jun 2008 03:53:58 +0000</pubDate>
					<dc:creator>Andrei M.R.</dc:creator>

					<description>
						<![CDATA[
						<p>Thijs,</p>
<p>Thanks again for your reply. </p>
<p>Yes, I am creating and trying to write on the outlet in the max mop wrapper, not in the jitter object. While I can write to the dump outlet without any problem, I cannot do the same with the new list outlet I am trying to use. </p>
<p>Using the wrapper as an observer that responds to a notify message is a good idea; I&#8217;ve just passed the outlet pointer right to the jitter object, and I can use it in the same manner my code in the max mop wrapper would use it. Again, I can write to the dump outlet without a problem but cannot write to the new list outlet. (I do this because I can bypass the overhead of message processing. My application is the real-time fiducial marker detection Andrew Roth was telling you about in another thread, so we need to conserve cycles!)</p>
<p>Maybe I&#8217;m making a mistake somewhere, but I&#8217;m not sure why I can write to the dump outlet but cannot write to my list outlet. Incidentally, if I get rid of all the calls from the max mop wrapper code that instantiates the jitter object, I can write to my list outlet without a problem! So, I suspect that the MOP class somehow imposes this limitation. I can&#8217;t explain it, and I can&#8217;t find anything in the documentation to suggest why this happens.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

