something like this?
very arbitrary though, it should be better to receive 0 when the
condition is false.
n
Le 08/12/10 04:07, Ben Carney a écrit :
I don't think I am very good at asking pure data related questions.
the 1000 milliseconds is an arbitrary number.
I am just trying to deduce that a 1 is not being sent or received.
for any amount of time.
so the example I gave was everything that wasn't a 1 in that second
would be spat out as a zero.
is that a bit more clear?
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.
It confuses me quite a bit too, which is why i came to the list.
hope I am clear here, and thanks a bunch for taking the time to take a
look at my problem!
On Tue, Dec 7, 2010 at 9:00 PM, Mathieu Bouchard <[email protected]
<mailto:[email protected]>> wrote:
On Tue, 7 Dec 2010, Ben Carney wrote:
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?
it doesn't need to be that granular(I don't need 999 0s for
every 1)
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...).
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.
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.
Alternately, you can have a [metro 1] connected to a counter that
loops at 1000.
_______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray,
Montréal, QC
--
benfcarney
www.benfcarney.com <http://www.benfcarney.com>
Chicago, IL
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
--
http://nim.on.free.fr
#N canvas 220 77 450 300 10;
#X obj 153 65 metro 1000;
#X obj 153 93 t b b;
#X obj 180 158 f;
#X msg 153 127 0;
#X msg 246 106 1;
#X obj 245 60 receive ones;
#X obj 180 206 print;
#X obj 153 39 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 153 15 loadbang;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 1 2 0;
#X connect 2 0 6 0;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 2 1;
#X connect 7 0 0 0;
#X connect 8 0 7 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list