<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
something like this?<br>
very arbitrary though, it should be better to receive 0 when the
condition is false.<br>
n<br>
<br>
Le 08/12/10 04:07, Ben Carney a écrit :
<blockquote
cite="mid:AANLkTi=GT=yqkECTE_01P2dyWERe+GrLhsQ7s3botsZ_@mail.gmail.com"
type="cite">I don't think I am very good at asking pure data
related questions.
<div><br>
</div>
<div>the 1000 milliseconds is an arbitrary number.</div>
<div><br>
</div>
<div>I am just trying to deduce that a 1 is not being sent
or received. for any amount of time.</div>
<div><br>
</div>
<div>so the example I gave was everything that wasn't a 1 in that
second would be spat out as a zero.</div>
<div><br>
</div>
<div>is that a bit more clear?</div>
<div><br>
</div>
<div>I am doing this as I am receiving data from someone else's
processing sketch that is sending 1s if a certain condition is
met. However, In this processing sketch there are no zeros being
sent if this condition is no longer met, so It is up to me to
decipher if whether or not this condition is true any longer.</div>
<div><br>
</div>
<div>It confuses me quite a bit too, which is why i came to the
list.</div>
<div><br>
</div>
<div><br>
</div>
<div>hope I am clear here, and thanks a bunch for taking the time
to take a look at my problem!</div>
<div><br>
<div class="gmail_quote">On Tue, Dec 7, 2010 at 9:00 PM, Mathieu
Bouchard <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:matju@artengine.ca">matju@artengine.ca</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div class="im">On Tue, 7 Dec 2010, Ben Carney wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
lets say I have a metro that sends a bang every one
second, for the rest of the 999 miliseconds, could I
somehow deduce a zero message?<br>
it doesn't need to be that granular(I don't need 999 0s
for every 1)<br>
</blockquote>
<br>
</div>
Even though the base unit of [metro]'s time is the
millisecond, it doesn't mean that a millisecond is somehow
any kind of building block of pd's concept of time. You can
have fractional delays of your choice, within the limits of
the float32 format and of the manner of writing it (not too
many decimals...).<br>
<br>
Well, actually, [metro] has an artificial lower limit at
1.000000, but if you imitate [metro] using [delay] connected
to itself, you don't have that limitation.<br>
<br>
In the light of this, the question doesn't make much
practical sense. But suppose you still want it. You have to
put a [delay 1] so that at the same time you set the "1",
you set a clock that will set the "0" after 1 ms of time.<br>
<br>
Alternately, you can have a [metro 1] connected to a counter
that loops at 1000.<br>
<br>
_______________________________________________________________________<br>
<font color="#888888">
| Mathieu Bouchard ---- tél: +1.514.383.3801 ----
Villeray, Montréal, QC<br>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
benfcarney<br>
<a moz-do-not-send="true" href="http://www.benfcarney.com">www.benfcarney.com</a><br>
Chicago, IL <br>
<br>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<a class="moz-txt-link-freetext" href="http://nim.on.free.fr">http://nim.on.free.fr</a></div>
</body>
</html>