<?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: Quick [drunk] question&#8230;</title>
		<atom:link href="http://cycling74.com/forums/topic/quick-drunk-question/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/quick-drunk-question/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 19:14:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-40006</guid>
					<title><![CDATA[Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-40006</link>
					<pubDate>Fri, 26 Sep 2008 05:41:11 +0000</pubDate>
					<dc:creator>Brian H.</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
Just wondering what the equivalent to something like [drunk] or [urn] is for floats?  I see these object convert all floats to ints.</p>
<p>Thanks,<br />
brian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141199</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141199</link>
					<pubDate>Fri, 26 Sep 2008 07:58:16 +0000</pubDate>
					<dc:creator>Stephen Lee</dc:creator>

					<description>
						<![CDATA[
						<p>You could always use drunk or urn with a larger range, then divide by 100, or 1000, etc., depending on how much resolution you need.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141200</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141200</link>
					<pubDate>Fri, 26 Sep 2008 08:02:29 +0000</pubDate>
					<dc:creator>pure</dc:creator>

					<description>
						<![CDATA[
						<p>Brian Heller wrote:<br />
> Hi,<br />
> Just wondering what the equivalent to something like [drunk] or [urn] is for floats?  I see these object convert all floats to ints.<br />
><br />
> Thanks,<br />
> brian<br />
>   <br />
[drunk 1000 10] -> [/ 999.]<br />
i guess the equivalent for [urn] you will figure out yourself =)</p>
<p>p</p>
<p>&#8211; <br />
<a href="http://pure.test.at" rel="nofollow">http://pure.test.at</a><br />
<a href="http://www.myspace.com/pvre" rel="nofollow">http://www.myspace.com/pvre</a><br />
<a href="http://www.heartchamberorchestra.org" rel="nofollow">http://www.heartchamberorchestra.org</a></p>
<p><a href="http://www.trblnc.org" rel="nofollow">http://www.trblnc.org</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141201</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141201</link>
					<pubDate>Fri, 26 Sep 2008 08:49:58 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>On 26 sept. 08, at 10:02, pure
<pure @test.at> wrote:</pure></p>
<p>> Brian Heller wrote:<br />
>> Hi,<br />
>> Just wondering what the equivalent to something like [drunk] or  <br />
>> [urn] is for floats?  I see these object convert all floats to ints.<br />
>><br />
>> Thanks,<br />
>> brian<br />
>><br />
> [drunk 1000 10] -> [/ 999.]<br />
> i guess the equivalent for [urn] you will figure out yourself =)</p>
<p>Although, remember that the first argument of drunk represent a range  <br />
and it is included (/ 1000. might be &#8220;better&#8221;), whereas the first  <br />
argument of urn is the number of random values   therefore it&#8217;s not  <br />
included (/ 999.).</p>
<p>ej</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141202</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141202</link>
					<pubDate>Fri, 26 Sep 2008 11:53:02 +0000</pubDate>
					<dc:creator>cebec</dc:creator>

					<description>
						<![CDATA[
						<p>I use [f0.drunk] and [f0.rand]. I was hoping that floating point drunk and rand or urn would be incorporated into Max, but until then, I highly recommend checking out Fredrik Olofsson&#8217;s externals and abstractions:</p>
<p><a href="http://www.fredrikolofsson.com/pages/code-max.html" rel="nofollow">http://www.fredrikolofsson.com/pages/code-max.html</a></p>
<p>Also, Peter C. will be here shortly to recommend his indispensable Litter package&#8230;</p>
<p><a href="http://www.bek.no/~pcastine/Litter/" rel="nofollow">http://www.bek.no/~pcastine/Litter/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141203</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141203</link>
					<pubDate>Fri, 26 Sep 2008 14:38:56 +0000</pubDate>
					<dc:creator>pure</dc:creator>

					<description>
						<![CDATA[
						<p>Emmanuel Jourdan wrote:<br />
> On 26 sept. 08, at 10:02, pure
<pure @test.at> wrote:<br />
><br />
>> Brian Heller wrote:<br />
>>> Hi,<br />
>>> Just wondering what the equivalent to something like [drunk] or <br />
>>> [urn] is for floats? I see these object convert all floats to ints.<br />
>>><br />
>>> Thanks,<br />
>>> brian<br />
>>><br />
>> [drunk 1000 10] -> [/ 999.]<br />
>> i guess the equivalent for [urn] you will figure out yourself =)<br />
><br />
> Although, remember that the first argument of drunk represent a range <br />
> and it is included (/ 1000. might be &#8220;better&#8221;), whereas the first <br />
> argument of urn is the number of random values therefore it&#8217;s not <br />
> included (/ 999.).<br />
><br />
><br />
><br />
sloppy me! =)</pure></p>
<p>&#8211; <br />
<a href="http://pure.test.at" rel="nofollow">http://pure.test.at</a><br />
<a href="http://www.myspace.com/pvre" rel="nofollow">http://www.myspace.com/pvre</a><br />
<a href="http://www.heartchamberorchestra.org" rel="nofollow">http://www.heartchamberorchestra.org</a></p>
<p><a href="http://www.trblnc.org" rel="nofollow">http://www.trblnc.org</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141204</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141204</link>
					<pubDate>Fri, 26 Sep 2008 18:44:55 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>For drunk I would use lp.zzz or lp.pfff or lp.pvvv or one of the other colored noise objects.</p>
<p>Drunk is a Brownian motion in the integer domain. Lp.pfff is Brownian motion in the real (floating point) domain. </p>
<p>Lp.pfff and lp.sss are in the Litter Starter Pack, the other Litter Power objects are in the Pro Bundle. URIs below.</p>
<p>&#8211;</p>
<p>For urn&#8211;Litter Power also has a more &#8216;powerful&#8217; version (lp.ernie), but it is also in the integer domain. To be honest, the basic urn model doesn&#8217;t make sense in the floating point domain. The urn model is that of a finite number of discrete possible &#8220;events&#8221;. Any floating point domain is (approximately) infinite. So could you be more precise about what you want? If what you&#8217;re after is a choice of several discrete floating point values, then you can combine ernie (or urn) with a trigger object. See patch below.</p>
<p>Hope this helps &#8212; Peter</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 517 234 41 196617 t clear;<br />
#P newex 492 312 33 196617 print;<br />
#P newex 646 285 32 196617 42.;<br />
#P newex 492 285 58 196617 t 1.41421;<br />
#P newex 569 285 64 196617 t 3.141953;<br />
#P newex 492 263 242 196617 route 0 1 2;<br />
#P newex 492 213 35 196617 urn 3;<br />
#P button 492 180 15 0;<br />
#P comment 434 182 45 196617 &#8230;or zis;<br />
#P newex 495 150 33 196617 print;<br />
#P newex 649 123 32 196617 42.;<br />
#P newex 495 123 58 196617 t 1.41421;<br />
#P newex 572 123 64 196617 t 3.141953;<br />
#P newex 495 101 242 196617 route 0 1 2;<br />
#P newex 525 43 90 196617 loadmess const 1;<br />
#P newex 495 76 55 196617 lp.ernie 3;<br />
#P button 495 43 15 0;<br />
#P comment 433 44 45 196617 Like zis;<br />
#P fasten 7 0 8 0 658 144 500 144;<br />
#P fasten 5 0 8 0 577 145 500 145;<br />
#P fasten 15 0 16 0 651 306 497 306;<br />
#P fasten 13 0 16 0 574 307 497 307;<br />
#P connect 11 0 12 0;<br />
#P connect 10 0 11 0;<br />
#P connect 11 1 17 0;<br />
#P fasten 17 0 11 0 522 256 566 256 566 204 497 204;<br />
#P connect 12 2 15 0;<br />
#P connect 12 0 14 0;<br />
#P connect 12 1 13 0;<br />
#P connect 14 0 16 0;<br />
#P connect 6 0 8 0;<br />
#P fasten 3 0 2 0 530 66 500 66;<br />
#P connect 1 0 2 0;<br />
#P connect 2 0 4 0;<br />
#P connect 4 1 5 0;<br />
#P connect 4 0 6 0;<br />
#P connect 4 2 7 0;<br />
#P window clipboard copycount 18;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141205</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141205</link>
					<pubDate>Fri, 26 Sep 2008 19:23:34 +0000</pubDate>
					<dc:creator>MJ</dc:creator>

					<description>
						<![CDATA[
						<p>hm a float urn &#8230;<br />
say  [urn 5.0]<br />
how many floats does that give until its done&#8230;?</p>
<p>&#8230;</p>
<p>-mj</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141206</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141206</link>
					<pubDate>Fri, 26 Sep 2008 22:09:32 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: MJ wrote on Fri, 26 September 2008 21:23<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> hm a float urn &#8230;<br />
> say  [urn 5.0]<br />
> how many floats does that give until its done&#8230;?<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>A bit over 2,000,000,000.</p>
<p>I realize the question was meant rhetorically, but it&#8217;s a good exercise to work it out.</p>
<p>But hey! compared to the Bush/Bernake/Paulsen bailout, it ain&#8217;t nuthin.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141207</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141207</link>
					<pubDate>Sat, 27 Sep 2008 06:39:18 +0000</pubDate>
					<dc:creator>Brian H.</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks all!  Great suggestions.  Duh, not sure why I didn&#8217;t just think of dividing.  But it is strange that such a common object wouldn&#8217;t have a float version included or accept them.  Is there some clear benefit to that (other than some processing overhead, I suppose)?  Just curious&#8230;</p>
<p>Thanks again,<br />
Brian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141208</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141208</link>
					<pubDate>Sat, 27 Sep 2008 18:13:44 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: Brian H. wrote on Sat, 27 September 2008 08:39<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Thanks all!  Great suggestions.  Duh, not sure why I didn&#8217;t just think of dividing.  But it is strange that such a common object wouldn&#8217;t have a float version included or accept them.  Is there some clear benefit to that (other than some processing overhead, I suppose)?  Just curious&#8230;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Historically, Max was MIDI-oriented, and hence integer-oriented. Also, when Max was first developed, integers were significantly faster than floats on the CPUs available.</p>
<p>It&#8217;s still not clear what you want from a &#8220;float urn&#8221;. The animal doesn&#8217;t make sense. Unless you can specify what you&#8217;re after (which is probably not really a float urn) there&#8217;s not going to be any headway.</p>
<p>In a similar vein, the way drunk implements Brownian motion is inherently integer-oriented. When I began work on Brownian noise for Litter Power, I actually built a plug-and-play float replacement following the model used by drunk, but found that it didn&#8217;t work well. When I researched the literature about Brownian noise and related topics, I discovered algorithms that provide more satisfactory results, but were universes away from the range/step size model used by drunk. </p>
<p>If you can get what you want by simply dividing drunk&#8217;s output by an arbitrary factor, let me go into rabbinic mode and ask what would the benefit be of building a &#8220;float drunk&#8221;? Aside from the  image of an inebriated cherub wobbling erratically with well-oiled wings, which does admit a certain charm.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141209</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141209</link>
					<pubDate>Mon, 29 Sep 2008 04:07:53 +0000</pubDate>
					<dc:creator>Brian H.</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
OK Peter, I do see your point about [urn] as a float.  For application at the moment, the specifics about the &#8216;random&#8217; number aren&#8217;t all that relevant&#8211; Forget the [urn] thing and let&#8217;s just say [random].  All I want to do is generate some random number within a given range to feed to [line] and then to [phasor~] for gain values&#8211; Hence the need for floats.  Your objects look great at first glance (need to glance again) and Chris&#8217; solution of dividing is just fine.  I just figured it might be a fairly common need, and was surprised it wasn&#8217;t &#8216;officially&#8217; incorporated into Max.</p>
<p>Thanks again<br />
Brian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/quick-drunk-question/#post-141210</guid>
					<title><![CDATA[Re: Quick [drunk] question&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/quick-drunk-question/#post-141210</link>
					<pubDate>Mon, 29 Sep 2008 09:10:36 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>Brian Heller schrieb:<br />
> Hi, OK Peter, I do see your point about [urn] as a float.  For<br />
> application at the moment, the specifics about the &#8216;random&#8217; number<br />
> aren&#8217;t all that relevant&#8211; Forget the [urn] thing and let&#8217;s just say<br />
> [random].</p>
<p>I guess what you don&#8217;t like about the normal random, that it put outs <br />
values almost the same as the old value. You can test for that and then <br />
retrigger random to replace it with something more tasty.</p>
<p>That&#8217;s a general problem about good random, it doesn&#8217;t have taste. Bad <br />
random does, but it doesn&#8217;t taste good. The art of algorithmic composing <br />
is to create something which tastes good&#8230;<br />
Cooking music in the end&#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>

