<div dir="ltr">Thanks for the solution. I can understand the actual problem on 32bit. But I think still this is a bug.<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">|<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">| +------+<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">[f]      |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">|        |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">[+ 1]    |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">|        |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">[% 6]    |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">|        |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">[t f f]  |<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">|     +--+<br></span><span style="font-family:arial,sans-serif;font-size:12.6666669845581px">|</span></blockquote><div><span style="font-family:arial,sans-serif;font-size:12.6666669845581px"><br></span></div><div>Could you give me the patch again with easily drawing? Sorry I can't recognize your patch drawing... <br></div><div><br></div><div>Many thanks,</div><div>akntk</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 1:22 AM,  <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">(had to find a real compuer before anwering the actual question)<div><div class="h5"><br>
<br>
Quoting Jonghyun Kim <<a href="mailto:agitato816@gmail.com" target="_blank">agitato816@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Pd 0.45.5 (Vanilla)<br>
Mac OS X Mavericks 10.9.5<br>
<br>
<br>
I don't really know why this bug cause, or only my problem. This bug<br>
sometimes appears. I think this is very critical bug.<br>
[f] storing bug<br>
<br>
[metro 1]<br>
|<br>
[f 0]<br>
|  /<br>
[+ 1]<br>
|<br>
[% 6]<br>
<br>
respected result: 0, 1, 2, 3, 4, 5 (repeat)<br>
<br>
bug: 4, 4, 4, 4, 4 (always 4)<br>
</blockquote>
<br>
<br></div></div>
this very much sounds like a problem with floating point precision overrun.<br>
an [f] object (and actually *any* number within the Pd universe) will hold a single precision 32bit floating point number, which can only represent *consecutive* integer values up to 16777216.<br>
(consecutive means, that [f] can hold representations of both (e.g.) 1000023 and 1000024).<br>
if the numbers go higher, singple precision floats will have gaps bigger than 1.0 inbetween them (e.g. the next number after 16777216 representable by [f] is 16777218) - this breaks a counter that increments 1 (since  16777216+1 will be evaulated to ~16777216!)<br>
<br>
the solution is actually quite simple: never allow your number to grow as big as that.<br>
<br>
in your counter this means, that the feeback part, must include the [% 6] (so the numbers in the counter will only ever stay in the range 0..6):<br>
<br>
|<br>
| +------+<br>
[f]      |<br>
|        |<br>
[+ 1]    |<br>
|        |<br>
[% 6]    |<br>
|        |<br>
[t f f]  |<br>
|     +--+<br>
|<br>
<br>
btw, you ASCII rendering of the patch did not use [trigger]. you should always use it when you want to connect multiple inlets to a single outlet.<br>
<br>
mfgsdr<span class=""><font color="#888888"><br>
IOhannes</font></span><div class=""><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div></div>