<?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: evenly dividing up a stream of floats</title>
		<atom:link href="http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 01:47:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-45511</guid>
					<title><![CDATA[evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-45511</link>
					<pubDate>Fri, 18 Sep 2009 16:24:34 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>OK, I&#8217;m having a brain freeze today.  I know I will slap my forehead on this one when someone gives me a clue!</p>
<p>I have a stream of floats going from 0.0 to 1.0 (which represents a quarter note duration).  I would like to send a bang at specific, evenly divided points within that stream.  For example, just at 1.0 (quarter note), or just at 0.5 and 1.0 (eighth notes), or just at 0.25, 0.5, 0.75 and 1.0 (sixteenth notes).</p>
<p>How do I cleanly do this?  It seems like it should be a one or two object operation, but for the life of me I can&#8217;t figure it out today!</p>
<p>Thanks,<br />
Dan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164095</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164095</link>
					<pubDate>Fri, 18 Sep 2009 17:02:33 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>Have a look at [%] although be careful as dealing with floating point numbers can cause problems, you might want to scale it up by multiplying by a power of ten, depending on the resolution you want.</p>
<p>lh</p>
<p>
<div><span id="toggle164095-0" class="patchtoggle" onmousedown="toggleMaxPatch('post164095-0', 'er164095-0');">&#8211; Pasted Max <span id="maxversion164095-0"></span> Patch, click to <span id="er164095-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A419.3ocyUEsSCBCE8Y3qn1DeCw1tga3a9cXVLEnaqFncAJwoK6eWZAbtkAT0%0AMhuzFt8x8dNmdto6bcfQxsrBH3Qvy.GmctNNlP5.NMe6.ynaiSoElzfQkJkT%0A.8pOZCUEulKV8RNKVUWlfY9HO.9gI5MBpcErn4WDkYbQJSYJG9PPYo5zn7DS%0AKkQudGgz1x57TuugU2OXDUrBBVnOcuqqdwyRtHXuUU61BqXaMT.VvRAH%2Bgo3%0ATrdaRncTboTnDzLCpgOkyoovyRdxYHOpex6AfvuZttOE7OLIfI9negtrLUVg%0AogE.rg5Anqt.fC6T.pvJUoUfFavkSE5vcby8.belCLdtVOlEXLGD%2Bf9zFxOT%0AaNyjANX.s4hpIkYQr7gYevjwxYLsS1yEWGegkSG0FfwPBH%2BeFNts%2BYiZkIzr%0ANe.k4RLZf50bXidXxAlxEm9Jogc53GKRExx731lzd6.NPwDVghKnJd0aneKI%0AzQIslmjvLmiZhjwS1HqvbCH530NqwTfsXBOdXBYClBGUchXClHjw8tKzFLMx%0A9oo1b2E7GvT0G6c%2BD.2fwwO%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post164095-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode164095-0">----------begin_max5_patcher----------
419.3ocyUEsSCBCE8Y3qn1DeCw1tga3a9cXVLEnaqFncAJwoK6eWZAbtkAT0
MhuzFt8x8dNmdto6bcfQxsrBH3Qvy.GmctNNlP5.NMe6.ynaiSoElzfQkJkT
.8pOZCUEulKV8RNKVUWlfY9HO.9gI5MBpcErn4WDkYbQJSYJG9PPYo5zn7DS
KkQudGgz1x57TuugU2OXDUrBBVnOcuqqdwyRtHXuUU61BqXaMT.VvRAH+go3
TrdaRncTboTnDzLCpgOkyoovyRdxYHOpex6AfvuZttOE7OLIfI9negtrLUVg
ogE.rg5Anqt.fC6T.pvJUoUfFavkSE5vcby8.belCLdtVOlEXLGD+f9zFxOT
aNyjANX.s4hpIkYQr7gYevjwxYLsS1yEWGegkSG0FfwPBH+eFNts+YiZkIzr
Ne.k4RLZf50bXidXxAlxEm9Jogc53GKRExx731lzd6.NPwDVghKnJd0aneKI
zQIslmjvLmiZhjwS1HqvbCH530NqwTfsXBOdXBYClBGUchXClHjw8tKzFLMx
9oo1b2E7GvT0G6c+D.2fwwO
-----------end_max5_patcher-----------</code></pre></div>
</div>
</p>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164096</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164096</link>
					<pubDate>Fri, 18 Sep 2009 17:13:41 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>Yup, that&#8217;s it!  My forehead is nice and sore right now!!</p>
<p>Thanks a million.</p>
<p>Dan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164097</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164097</link>
					<pubDate>Fri, 18 Sep 2009 19:14:47 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>OK, so I spoke too soon.  What I&#8217;m really trying to do is to take ReWire timing info via hostsync~, and to be able to fire off bangs at eigth, sixteenth, etc.. intervals.</p>
<p>The patch below, although I think technically correct, yields extremely poor timing:</p>
<p>
<div><span id="toggle164097-0" class="patchtoggle" onmousedown="toggleMaxPatch('post164097-0', 'er164097-0');">&#8211; Pasted Max <span id="maxversion164097-0"></span> Patch, click to <span id="er164097-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A576.3ocuVssabBCD8Y3qv0R8kJ5Va.Cr8s9cTEUwEmccEXuBLpaZT52dsMPx%0Atq.CIgvKFXvdly4vLCyitNvLwYZCD7cvOANNO553XLoM3z%2BrCrJ8bdYZiYaP%0Ao3vgRJzq6UmRk4GY7C%2BpllK6biOgrC4A1qW7QCqf65OAushwKoRi2vuXTzJu%0A0ZmI4CmncdFx3pXL3HVgAOhre%2BUen1zStt5EuERjrVoTvsPDLlri3Avw9e.T%0AIKkeXTtPvuExnhZFs1FYPXMYRvZVDDpWwIywk6EbYC6uFLi07eLJ5a6qkmEl%0AhwIvKBDOsxbR3OpYokuIQf9GkeG7ojd1vc3WTXGsadsgDXzlX6Zi%2BqQal7y%2B%0A8khzwyk26uIhxm9FHDgrIJjjKRXh1BQYpx63sQRZnk.zB5GDZxPB7MOrNRhu%0A01Dphnw0E75pKsUTdqMAHLvTmX5dPPqXOjfAxIoU8%2BMJTwZOE0S5uhidNNS0%0AoYRgJxlPMjFnbWenA2sdIUeFfWPJkVFW4TpWcUVHdSpxNJZj4p.TKJ%2Bm0oHB%0A0hQnYVhHxJlqgFY9AzlQ8lG3413cDtqGigvg3Uj2XzLkOWeo6OTpaJYMWa34%0Aa524vFlJwJXgpq4rJuwucfTiLosesj2HZqyG3P2XfdfWTpBZijwSkL0PdWrG%0AzUa5HqnfxuLsnhUbRnnh8dAKER5NO.7LXJ1eSwT7RzovqA9GMlLgaNLEi2Vc%0AZIXhrsXZ%2BR91YFrdCA0swyRF01AJcWGPvLXZ%2B6oxS8vSt%2BW9Q5WV%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post164097-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode164097-0">----------begin_max5_patcher----------
576.3ocuVssabBCD8Y3qv0R8kJ5Va.Cr8s9cTEUwEmccEXuBLpaZT52dsMPx
tq.CIgvKFXvdly4vLCyitNvLwYZCD7cvOANNO553XLoM3z+rCrJ8bdYZiYaP
o3vgRJzq6UmRk4GY7C+pllK6biOgrC4A1qW7QCqf65OAushwKoRi2vuXTzJu
0ZmI4CmncdFx3pXL3HVgAOhre+Uen1zStt5EuERjrVoTvsPDLlri3Avw9e.T
IKkeXTtPvuExnhZFs1FYPXMYRvZVDDpWwIywk6EbYC6uFLi07eLJ5a6qkmEl
hwIvKBDOsxbR3OpYokuIQf9GkeG7ojd1vc3WTXGsadsgDXzlX6Zi+qQal7y+
8khzwyk26uIhxm9FHDgrIJjjKRXh1BQYpx63sQRZnk.zB5GDZxPB7MOrNRhu
01Dphnw0E75pKsUTdqMAHLvTmX5dPPqXOjfAxIoU8+MJTwZOE0S5uhidNNS0
oYRgJxlPMjFnbWenA2sdIUeFfWPJkVFW4TpWcUVHdSpxNJZj4p.TKJ+m0oHB
0hQnYVhHxJlqgFY9AzlQ8lG3413cDtqGigvg3Uj2XzLkOWeo6OTpaJYMWa34
a524vFlJwJXgpq4rJuwucfTiLosesj2HZqyG3P2XfdfWTpBZijwSkL0PdWrG
zUa5HqnfxuLsnhUbRnnh8dAKER5NO.7LXJ1eSwT7RzovqA9GMlLgaNLEi2Vc
ZIXhrsXZ+R91YFrdCA0swyRF01AJcWGPvLXZ+6oxS8vSt+W9Q5WV
-----------end_max5_patcher-----------</code></pre></div>
</div>
</p><p>I took your advice and scaled up by 100 and using ints instead.  Overdrive is on.</p>
<p>Any ideas?</p>
<p>Thanks,<br />
Dan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164098</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164098</link>
					<pubDate>Fri, 18 Sep 2009 19:48:51 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>Have you tried hooking that outlet of [hostsync~] straight into a [print] object? It might be that the timing resolution here is causing the problem. If it is skipping a lot of numbers then you will never hit exactly on your divisions and the bangs won&#8217;t get triggered. If this is what is causing the issue then you might be able to use [line] to send out all the numbers in between the values at a rate determined by the tempo of the track to keep it smooth. It&#8217;s just a thought but good luck!</p>
<p>lh</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164099</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164099</link>
					<pubDate>Fri, 18 Sep 2009 20:01:48 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re right!  Here&#8217;s a sample of the output:</p>
<p>print: 0.021657<br />
print: 0.044900<br />
print: 0.068142<br />
print: 0.091319<br />
print: 0.114561<br />
print: 0.137803<br />
print: 0.160980<br />
print: 0.184223<br />
print: 0.207465<br />
print: 0.230642<br />
print: 0.253884<br />
print: 0.277126<br />
print: 0.300303<br />
print: 0.323545<br />
print: 0.346788<br />
print: 0.369965<br />
print: 0.393207<br />
print: 0.416449<br />
print: 0.439626<br />
print: 0.462868<br />
print: 0.486045<br />
print: 0.509288<br />
print: 0.532530<br />
print: 0.555707<br />
print: 0.578949<br />
print: 0.602191<br />
print: 0.625368<br />
print: 0.648611<br />
print: 0.671853</p>
<p>I&#8217;ll think about the line approach you suggest, or perhaps I&#8217;ll have to use the raw ticks or sample count output instead&#8230;</p>
<p>Thanks again,<br />
Dan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164100</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164100</link>
					<pubDate>Fri, 18 Sep 2009 21:06:31 +0000</pubDate>
					<dc:creator>Stephen Lee</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;ve never used hostsync~ before, but as far as I can tell, hostphasor~ would be much better for your purposes. It basically outputs the same thing, but as a signal which you can treat exactly like a phasor~. You will almost certainly get better timing this way. For example:</p>
<p>
<div><span id="toggle164100-0" class="patchtoggle" onmousedown="toggleMaxPatch('post164100-0', 'er164100-0');">&#8211; Pasted Max <span id="maxversion164100-0"></span> Patch, click to <span id="er164100-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A587.3ocyVEriaBCD8L4qvqk5sTpMfIPUuTo9WTUUY.mDuBrofoMcWs4auXCj%0AktMgBrIzdYr7fY3MuYdC9wUVvH4AVID7dvmAVVOtxxx3R6vpcuELidHNkVZN%0AFLVlkwDJ35lmoXGTF%2B9HPTdVm6sRgRPyXlG8wBNMs6IhpLtHkoLQC%2BrSYkpy%0AKp0aNUEumK180BVrpAiXBwFsFrwX8wZqCxFA9R6qvSLeQYz8uEi5ClR9CFvf%0AcrQZuOsZk1r9Ul0eh%2BcdIWJ.xsfuUQKTrBfPpX2ZdvwuGCfIngHhfqHOvdHg%0AFe7r4fyTyAeuFvaV7Hc1ykB9vYf0ZfDwJtJUBm%2BZkHXi1NbgfboBQq6lOn5m%0A4rlPC45NN.LhJ1AOEvZvxypxLu6LXknJkRJlPtiGRM1n.8LKaB6rmK4cgWJK%0AaSu4TgY%2BnNz%2BgnLeOsTVbDfmXs2Yl4OF4ZDidCNNZpE%2BR9NQMPulDycuCfrI%0A2bVIzwvJ9AFIAYHVwaxZhsoRp5pxJe33hvJs8JglE%2BgGTP9OnYgkric7VO8r%0AaBBt2OAtHqDLUVwLYY8MXBSsPBaey6XZ%2BAoqQG0XuH2D9uWG8liKkFx22vHN%0ACwH9nqgFxDYXJW7xKIaPm1%2BuySkxph3t.1N1G7L9RXkJtfppuwXuyngZuCsm%0AmjvD8u7TFOIWVeYfVLbgh1XgDYDPxiLMH4rwylnuLWXSMAeZ2B.Vcy%2Bb.qqY%0AHLdi6ocuVvFLBz5tnEauQQf5CgWtFvvwJJVPLMJdJXQqcuXtv.0t4ho5MOs5%0AWXDCoVI%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post164100-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode164100-0">----------begin_max5_patcher----------
587.3ocyVEriaBCD8L4qvqk5sTpMfIPUuTo9WTUUY.mDuBrofoMcWs4auXCj
ktMgBrIzdYr7fY3MuYdC9wUVvH4AVID7dvmAVVOtxxx3R6vpcuELidHNkVZN
FLVlkwDJ35lmoXGTF+9HPTdVm6sRgRPyXlG8wBNMs6IhpLtHkoLQC+rSYkpy
Kp0aNUEumK180BVrpAiXBwFsFrwX8wZqCxFA9R6qvSLeQYz8uEi5ClR9CFvf
crQZuOsZk1r9Ul0eh+cdIWJ.xsfuUQKTrBfPpX2ZdvwuGCfIngHhfqHOvdHg
Fe7r4fyTyAeuFvaV7Hc1ykB9vYf0ZfDwJtJUBm+ZkHXi1NbgfboBQq6lOn5m
4rlPC45NN.LhJ1AOEvZvxypxLu6LXknJkRJlPtiGRM1n.8LKaB6rmK4cgWJK
aSu4TgY+nNz+gnLeOsTVbDfmXs2Yl4OF4ZDidCNNZpE+R9NQMPulDycuCfrI
2bVIzwvJ9AFIAYHVwaxZhsoRp5pxJe33hvJs8JglE+gGTP9OnYgkric7VO8r
aBBt2OAtHqDLUVwLYY8MXBSsPBaey6XZ+AoqQG0XuH2D9uWG8liKkFx22vHN
CwH9nqgFxDYXJW7xKIaPm1+uySkxph3t.1N1G7L9RXkJtfppuwXuyngZuCsm
mjvD8u7TFOIWVeYfVLbgh1XgDYDPxiLMH4rwylnuLWXSMAeZ2B.Vcy+b.qqY
HLdi6ocuVvFLBz5tnEauQQf5CgWtFvvwJJVPLMJdJXQqcuXtv.0t4ho5MOs5
WXDCoVI
-----------end_max5_patcher-----------</code></pre></div>
</div>
</p>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164101</guid>
					<title><![CDATA[Re: evenly dividing up a stream of floats]]></title>
					<link>http://cycling74.com/forums/topic/evenly-dividing-up-a-stream-of-floats/#post-164101</link>
					<pubDate>Sat, 19 Sep 2009 00:32:30 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>That&#8217;s a good suggestion, thanks!</p>
<p>Dan</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

