<?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: another way to do this?</title>
		<atom:link href="http://cycling74.com/forums/topic/another-way-to-do-this/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/another-way-to-do-this/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 15:11:25 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-36879</guid>
					<title><![CDATA[another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-36879</link>
					<pubDate>Sat, 12 Apr 2008 07:48:06 +0000</pubDate>
					<dc:creator>nnneuromodulator</dc:creator>

					<description>
						<![CDATA[
						<p>Okay, I&#8217;ve tracked down an error in my patch to the attached object.  </p>
<p>I wanted to translate incoming OSC messages so that the &#8220;/&#8221; characters were all replaced by &#8221; &#8221; (blank spaces), so that I could then use &#8220;route&#8221; objects to sort them.</p>
<p>The problem is in my use of [thresh], to recombine the string after it goes through the [if].  It works fine most of the time, but if I get two separate OSC messages within the threshold interval, they get combined into one message.  </p>
<p>I need to keep each incoming OSC message distinct.  The OSC messages are not of equal length.  How else could I do this?</p>
<p>Appreciate the help.</p>
<p>max v2;<br />
#N vpatcher 337 117 937 517;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 50 226 64 196617 fromsymbol;<br />
#P newex 50 180 49 196617 route 32;<br />
#P newex 50 253 44 196617 s OSCin;<br />
#P newex 50 203 40 196617 itoa;<br />
#P newex 50 135 141 196617 if $i1 == 47 then 32 else $i1;<br />
#P newex 50 114 25 196617 iter;<br />
#P newex 50 92 40 196617 atoi;<br />
#P newex 50 156 48 196617 thresh 1;<br />
#P newex 50 71 51 196617 tosymbol;<br />
#P newex 50 49 86 196617 udpreceive 8000;<br />
#P connect 0 0 1 0;<br />
#P connect 1 0 3 0;<br />
#P connect 3 0 4 0;<br />
#P connect 4 0 5 0;<br />
#P connect 5 0 2 0;<br />
#P connect 2 0 8 0;<br />
#P connect 8 0 6 0;<br />
#P connect 6 0 9 0;<br />
#P connect 9 0 7 0;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126926</guid>
					<title><![CDATA[Re: another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126926</link>
					<pubDate>Sat, 12 Apr 2008 08:48:33 +0000</pubDate>
					<dc:creator>JAHroen</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Adam,<br />
There is an object which handles OSC message strings. Use [osc-route] in<br />
your application, it&#8217;s very easy to use. you can download the object at<br />
<a href="http://cnmat.berkeley.edu/downloads" rel="nofollow">http://cnmat.berkeley.edu/downloads</a> .<br />
Also download the objects [OpenSoundControl] and [osc-unroute] they may<br />
become handy.<br />
cheers,<br />
Jeroen.</p>
<p>2008/4/12 Adam Barnett <adam @submercity.com>:</adam></p>
<p>> Okay, I&#8217;ve tracked down an error in my patch to the attached object.<br />
><br />
> I wanted to translate incoming OSC messages so that the &#8220;/&#8221; characters<br />
> were all replaced by &#8221; &#8221; (blank spaces), so that I could then use &#8220;route&#8221;<br />
> objects to sort them.<br />
><br />
> The problem is in my use of [thresh], to recombine the string after it<br />
> goes through the [if].  It works fine most of the time, but if I get two<br />
> separate OSC messages within the threshold interval, they get combined into<br />
> one message.<br />
><br />
> I need to keep each incoming OSC message distinct.  The OSC messages are<br />
> not of equal length.  How else could I do this?<br />
><br />
> Appreciate the help.<br />
><br />
> max v2;<br />
> #N vpatcher 337 117 937 517;<br />
> #P window setfont &#8220;Sans Serif&#8221; 9.;<br />
> #P window linecount 1;<br />
> #P newex 50 226 64 196617 fromsymbol;<br />
> #P newex 50 180 49 196617 route 32;<br />
> #P newex 50 253 44 196617 s OSCin;<br />
> #P newex 50 203 40 196617 itoa;<br />
> #P newex 50 135 141 196617 if $i1 == 47 then 32 else $i1;<br />
> #P newex 50 114 25 196617 iter;<br />
> #P newex 50 92 40 196617 atoi;<br />
> #P newex 50 156 48 196617 thresh 1;<br />
> #P newex 50 71 51 196617 tosymbol;<br />
> #P newex 50 49 86 196617 udpreceive 8000;<br />
> #P connect 0 0 1 0;<br />
> #P connect 1 0 3 0;<br />
> #P connect 3 0 4 0;<br />
> #P connect 4 0 5 0;<br />
> #P connect 5 0 2 0;<br />
> #P connect 2 0 8 0;<br />
> #P connect 8 0 6 0;<br />
> #P connect 6 0 9 0;<br />
> #P connect 9 0 7 0;<br />
> #P pop;<br />
><br />
><br />
><br />
><br />
></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126927</guid>
					<title><![CDATA[Re: another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126927</link>
					<pubDate>Sat, 12 Apr 2008 08:53:31 +0000</pubDate>
					<dc:creator>Owen Green</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Adam,</p>
<p>Check out regexp &#8211; it makes these sort of substitutions really easy.<br />
like:</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 160 209 146 196617;<br />
#P newex 160 185 66 196617 prepend set;<br />
#P message 161 85 180 196617 /this/is/a/message/of/some/sort 5;<br />
#P message 68 69 77 196617 substitute &#8221;  &#8220;;<br />
#P newex 66 43 48 196617 loadbang;<br />
#P newex 160 134 66 196617 regexp (/);<br />
#P connect 0 0 4 0;<br />
#P connect 4 0 5 0;<br />
#P connect 3 0 0 0;<br />
#P connect 2 0 0 0;<br />
#P connect 1 0 2 0;<br />
#P window clipboard copycount 6;</p>
<p>
Also, if it&#8217;s just routing you&#8217;re after, there&#8217;s osc-route from CNMAT, <br />
that has the added bonus of pattern matching magic:<br />
< <a href="http://cnmat.berkeley.edu/patch/4029" rel="nofollow">http://cnmat.berkeley.edu/patch/4029></p>
<p>&#8211; <br />
Owen</p>
<p>Adam Barnett wrote:<br />
> Okay, I&#8217;ve tracked down an error in my patch to the attached object.<br />
> <br />
> <br />
> I wanted to translate incoming OSC messages so that the &#8220;/&#8221;<br />
> characters were all replaced by &#8221; &#8221; (blank spaces), so that I could<br />
> then use &#8220;route&#8221; objects to sort them.<br />
> <br />
> The problem is in my use of [thresh], to recombine the string after<br />
> it goes through the [if].  It works fine most of the time, but if I<br />
> get two separate OSC messages within the threshold interval, they get<br />
> combined into one message.<br />
> <br />
> I need to keep each incoming OSC message distinct.  The OSC messages<br />
> are not of equal length.  How else could I do this?<br />
> <br />
> Appreciate the help.<br />
> <br />
> max v2;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126928</guid>
					<title><![CDATA[Re: another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126928</link>
					<pubDate>Sat, 12 Apr 2008 09:10:40 +0000</pubDate>
					<dc:creator>jasch</dc:creator>

					<description>
						<![CDATA[
						<p>there is the dedicated [osc-route] object available from CNMAT to  <br />
route using slash-delimited addresses.</p>
<p>to cut a string (ahem, &#8216;symbol&#8217;) at a specific delimiter, i ported the  <br />
c-string function [strtok] to a max external: <a href="http://www.jasch.ch/dl" rel="nofollow">http://www.jasch.ch/dl</a></p>
<p><a href="http://www.cplusplus.com/reference/clibrary/cstring/strtok.html" rel="nofollow">http://www.cplusplus.com/reference/clibrary/cstring/strtok.html</a></p>
<p>as for simple substitutions there&#8217;s also the stock [substitute]  <br />
object, see patch below</p>
<p>hth</p>
<p>/*j</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 66 105 141 196617 /deep/sea/creature/feature;<br />
#P newex 57 224 32 196617 print;<br />
#P message 57 87 88 196617 /tree/frog/jump;<br />
#P newex 57 193 64 196617 fromsymbol;<br />
#P newex 57 172 40 196617 itoa;<br />
#P newex 57 151 85 196617 substitute 47 32;<br />
#P newex 57 130 40 196617 atoi;<br />
#P connect 3 0 5 0;<br />
#P connect 6 0 0 0;<br />
#P connect 4 0 0 0;<br />
#P connect 1 0 2 0;<br />
#P connect 0 0 1 0;<br />
#P connect 2 0 3 0;<br />
#P window clipboard copycount 7;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126929</guid>
					<title><![CDATA[Re: another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126929</link>
					<pubDate>Sat, 12 Apr 2008 18:23:37 +0000</pubDate>
					<dc:creator>nnneuromodulator</dc:creator>

					<description>
						<![CDATA[
						<p>Ah, thank you.  [substitute] just did the trick.  I don&#8217;t want to mess about with [osc-route] at this point, since everything downwind in my patch would need replacing, but next time&#8230;</p>
<p>I have an etiquette question, since I&#8217;m new to mailing list-type forums.  Is it customary to thank people for their help, and/or update posts when a problem has been solved, or is that considered unnecessary noise?</p>
<p>Cheers.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126930</guid>
					<title><![CDATA[Re: another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126930</link>
					<pubDate>Sat, 12 Apr 2008 19:13:46 +0000</pubDate>
					<dc:creator>Adam Murray</dc:creator>

					<description>
						<![CDATA[
						<p>On Sat, Apr 12, 2008 at 11:23 AM, Adam Barnett wrote:<br />
><br />
>  I have an etiquette question, since I&#8217;m new to mailing list-type forums.  Is it customary to thank people for their help, and/or update posts when a problem has been solved, or is that considered unnecessary noise?</p>
<p>It&#8217;s good to thank people. Makes &#8216;em more willing to help next time.<br />
Plus it&#8217;s always good to get verification that a suggested solution<br />
actually works.</p>
<p>-the other Adam</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126931</guid>
					<title><![CDATA[Re: another way to do this?]]></title>
					<link>http://cycling74.com/forums/topic/another-way-to-do-this/#post-126931</link>
					<pubDate>Sun, 13 Apr 2008 13:28:44 +0000</pubDate>
					<dc:creator>kjg</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: Adam Murray wrote on Sat, 12 April 2008 21:13<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> On Sat, Apr 12, 2008 at 11:23 AM, Adam Barnett wrote:<br />
> ><br />
> >  I have an etiquette question, since I&#8217;m new to mailing list-type forums.  Is it customary to thank people for their help, and/or update posts when a problem has been solved, or is that considered unnecessary noise?<br />
> <br />
> It&#8217;s good to thank people. Makes &#8216;em more willing to help next time.<br />
> Plus it&#8217;s always good to get verification that a suggested solution<br />
> actually works.<br />
> <br />
> -the other Adam<br />
> </p>
<p>I agree with mister Murray. <br />
Personally, when I have spent 5, 10, 15 minutes of my time to try answer a question and post an example patch, I like to know if it helped or not. When I get no verification/reply/thank you I will be less motivated to reply to a question by this person again.</p>
<p>Even if the patch/answer posted makes no sense at all, reply and explain why. 9 out of 10 times it is just because the original question was not phrased clearly enough. So, phrase questions carefully and be appreciative for any help offered to you.</p>
<p>Regards,<br />
kjg</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

