<?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: [trough] not a bug</title>
		<atom:link href="http://cycling74.com/forums/topic/trough-not-a-bug/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/trough-not-a-bug/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 16:40:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-34609</guid>
					<title><![CDATA[[trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-34609</link>
					<pubDate>Wed, 14 Nov 2007 22:06:16 +0000</pubDate>
					<dc:creator>jvkr</dc:creator>

					<description>
						<![CDATA[
						<p>Was about to report a bug when I realized the default argument is set to 128. This kind-of-random argument initialization, that deviates from all standards, makes programmers loose a lot of time. Having said this, I&#8217;m not aiming towards having those rice grains display the number 128. Fonzy is cool.</p>
<p>_<br />
johan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117118</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117118</link>
					<pubDate>Thu, 15 Nov 2007 10:57:10 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>A fair number of objects default to 128. Particularly objects from the early days of Max when we were primarily programming MIDI.</p>
<p>128 is often more useful than zero. For trough intializing with 128 actually makes a lot of sense for dealing with MIDI values. But someone will always be disappointed in whatever the default setting is.</p>
<p>My pet peeve is that random&#8217;s default is zero, which is seriously non-random. Only one of the reasons I wrote my own RNGs in Litter Power.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117119</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117119</link>
					<pubDate>Thu, 15 Nov 2007 20:27:10 +0000</pubDate>
					<dc:creator>jvkr</dc:creator>

					<description>
						<![CDATA[
						<p>
> A fair number of objects default to 128.</p>
<p>Not one. There&#8217;s a few that default to 128 buffer size but all objects where the argument is used as the numerical value it represents, default to zero with no argument specified, or 1, if there&#8217;s a division involved. It&#8217;s not really a matter of life or dead, just that I thought it a little inconsistent and I lost 4 precious minutes and 17 dito seconds before I understood why my patch didn&#8217;t work properly. And now I&#8217;m frivolously spending time writing this, man, I need to go back to work.</p>
<p>_<br />
johan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117120</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117120</link>
					<pubDate>Fri, 16 Nov 2007 00:05:37 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>jvkr schrieb:<br />
> Was about to report a bug when I realized the default argument is set<br />
> to 128. This kind-of-random argument initialization, that deviates<br />
> from all standards, makes programmers loose a lot of time. Having<br />
> said this, I&#8217;m not aiming towards having those rice grains display<br />
> the number 128. Fonzy is cool.</p>
<p>Yeah, its a documented design bug&#8230; ;-)<br />
Even in a Midi centered world it wouldn&#8217;t make sense at all&#8230;</p>
<p>Stefan</p>
<p>&#8211; <br />
Stefan Tiedje&#8212;&#8212;&#8212;&#8212;x&#8212;&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8211;www.ccmix.com</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117121</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117121</link>
					<pubDate>Fri, 16 Nov 2007 00:32:28 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: jvkr wrote on Thu, 15 November 2007 21:27<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> > A fair number of objects default to 128.<br />
> <br />
> Not one.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>anal, table (size), dial (size), drunk (max, 1st param), to name a few. </p>
<p>Search on &#8217;128&#8242; in the Max Ref, skip page numbers and a few other irrelevant hits, and it&#8217;s still a dozen or three objects.</p>
<p>Sorry for being an insufferable Mademoiselle-Jesaistout, but if you directly contradict me, well, red flag before a bull.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117122</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117122</link>
					<pubDate>Fri, 16 Nov 2007 00:36:21 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: Stefan Tiedje wrote on Fri, 16 November 2007 01:05<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Yeah, its a documented design bug&#8230; ;-)<br />
> Even in a Midi centered world it wouldn&#8217;t make sense at all&#8230;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Actually, it makes a lot of sense.</p>
<p>Trough searches for minima. It initializes to 128 and the first MIDI value input, *no*matter*what*it*is* is less than that, so becomes the next (first) minimum and stays there until something comes that&#8217;s even smaller.</p>
<p>Thanks anyway for proving my initial point: &#8220;But someone will always be disappointed in whatever the default setting is.&#8221;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117123</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117123</link>
					<pubDate>Fri, 16 Nov 2007 01:37:33 +0000</pubDate>
					<dc:creator>Chris Muir</dc:creator>

					<description>
						<![CDATA[
						<p>At 11:06 PM +0100 11/14/07, jvkr wrote:<br />
>Was about to report a bug when I realized the default argument is set to 128. This kind-of-random argument initialization, that deviates from all standards, makes programmers loose a lot of time.</p>
<p>Well, all I can say is that it seemed like a good idea at the time. Max was primarily a MIDI program when I wrote peak and trough. The only choices I considered were 127, 128 and maxint. I could make a case for any of them. It doesn&#8217;t matter too much at the end of the day, as far as I&#8217;m concerned. If we keep this thread going a couple messages longer, it will have taken more time than the original programming effort for trough :-).</p>
<p>-C</p>
<p>&#8211; <br />
Chris Muir           | &#8220;There are many futures and only one status quo.<br />
<a href="mailto:cbm@well.com">cbm@well.com</a>         |  This is why conservatives mostly agree,<br />
<a href="http://www.xfade.com" rel="nofollow">http://www.xfade.com</a> |  and radicals always argue.&#8221; &#8211; Brian Eno</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117124</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117124</link>
					<pubDate>Fri, 16 Nov 2007 13:57:34 +0000</pubDate>
					<dc:creator>jvkr</dc:creator>

					<description>
						<![CDATA[
						<p>>If we keep this thread going a couple messages longer, it will have taken more time than the original programming effort for trough :-).</p>
<p>That&#8217;s a nice challenge. Thanks anyway Chris, for the objects. The impression that trough gives is that the first number is always taken as the value to test against all other values. Which would actually be a good scheme, not only for trough and peak, but for change, maximum and minimum as well. Anyhow, I have to admit that for a long time I was not aware of the existence of the sisters peak and trough, and somehow they haven&#8217;t made it to the list in my head while programming. Every year or so I rediscover them, like some other objects, mostly on the occasion of reading the entire reference manual in order to prove Peter false : ). Okay, okay, drunk I overlooked, but the others are either ui objects or arguments defining the size of their buffer. Who dares&#8230;</p>
<p>_<br />
johan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117125</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117125</link>
					<pubDate>Fri, 16 Nov 2007 14:05:31 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>It&#8217;s funny&#8230; a few months ago I got flack for stating &#8220;most objects default to zero&#8221; (please note the wording carefully, &#8216;most&#8217;, not &#8216;all&#8217; or &#8216;some&#8217; but &#8216;most&#8217;). Now I get flack for stating that &#8220;there are some objects that don&#8217;t default to zero&#8221;.</p>
<p>Oh, well. As Oscar Wilde would have it, when people agree with me I start to think I may be wrong.</p>
<p>&#8211; P (contributing to the attempt to exceed Chris&#8217; original programming effort)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117126</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117126</link>
					<pubDate>Fri, 16 Nov 2007 15:37:29 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>Peter Castine schrieb:<br />
> 128 is often more useful than zero. For trough intializing with 128<br />
> actually makes a lot of sense for dealing with MIDI values. But<br />
> someone will always be disappointed in whatever the default setting<br />
> is.</p>
<p>??? A default of 0 doesn&#8217;t make sense with trough yes, but a default of <br />
128 is still almost as bad compared to a value which could make sense <br />
(2147483647 for ints or the highest possible float which extends my <br />
ability to write down numbers&#8230;)</p>
<p>I&#8217;d expect, even from the description, that, if it didn&#8217;t receive a <br />
value yet, it would take any input as the lowest received yet, no matter <br />
how high it is&#8230; (I bet this would disapoint exactly zero users&#8230; ;-)</p>
<p>Clearly its coming out of a Midified mind, but that doesn&#8217;t mean it ever <br />
made sense or was a good decision&#8230;</p>
<p>It scousine peak has the same problem, its initialised with 0 instead of <br />
-2147483648&#8230;</p>
<p>But all this isn&#8217;t a real problem as one can initialise both with <br />
whatever seems necessary, and its clearly documented&#8230;</p>
<p>Stefan</p>
<p>&#8211; <br />
Stefan Tiedje&#8212;&#8212;&#8212;&#8212;x&#8212;&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8211;www.ccmix.com</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117127</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117127</link>
					<pubDate>Fri, 16 Nov 2007 22:19:37 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>I did say it made sense *for*MIDI*values*.</p>
<p>If you&#8217;re in a 0-127 universe, 128 is just as close to infinity as 2 billion.</p>
<p>A really hardcore solution for trough would have been to have a Boolean state variable indicating &#8216;no data received yet&#8217; allowing the object to special-case the first arriving Atom. But then Chris would have had to spend a little more time coding the object than we have spent discussing it. And then he might have written less music. Writing music is good. Speaking of which, I&#8217;d like to do some more of that, too. Can I get the forum to ignore a thread for me?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117128</guid>
					<title><![CDATA[Re: [trough] not a bug]]></title>
					<link>http://cycling74.com/forums/topic/trough-not-a-bug/#post-117128</link>
					<pubDate>Sat, 17 Nov 2007 09:33:05 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>Peter Castine schrieb:<br />
> Thanks anyway for proving my initial point: &#8220;But someone will always<br />
> be disappointed in whatever the default setting is.&#8221;</p>
<p>I am also a bull reacting on red flags&#8230; ;-)<br />
I guess nobody would complain if trough would take the first received <br />
value as minimum, even if it is higher than 128. I bet nobody would be <br />
disappointed in this case&#8230;</p>
<p>Sometimes (not always) it is possible to find a real optimum&#8230; And 128 <br />
for trough or 0 for peak just isn&#8217;t. But we have to keep backward <br />
compatibility anyway&#8230; And red flags flooding the list&#8230;<br />
But you know and feel the same, as a bull one just can&#8217;t resist, even if <br />
its completely irrelevant&#8230; ;-)</p>
<p>Happy bull fighting&#8230;</p>
<p>Stefan</p>
<p>&#8211; <br />
Stefan Tiedje&#8212;&#8212;&#8212;&#8212;x&#8212;&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8211;www.ccmix.com</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

