Hello,
[spigot] confuses me a little. It seems that the only creation argument that it accepts is a "zero". However, "zero" is the default state for spigot even without the creation argument?
Would it make sense to re-write [spigot] to accept "0" or "1" as a creation argument which could then effectively be used to define its default state?
Can somebody clarify this issue for me?
Many thanks, Dave Sabine
David Sabine wrote:
Hello,
[spigot] confuses me a little. It seems that the only creation argument that it accepts is a "zero". However, "zero" is the default state for spigot even without the creation argument?
true additionally, you could pass any symbol to the [spigot] object. however, this has no meaning too.
Would it make sense to re-write [spigot] to accept "0" or "1" as a creation argument which could then effectively be used to define its default state?
definitely. thomas' [gate] object does this, but i would rather have this functionality built into pd's spigot than use an external for such thing. on the other hand, you could open the [spigot] with a loadbang in most cases.
Can somebody clarify this issue for me?
not really. it seems, like miller did it in a hurry (in days yonder) and since it works, it was never touched again. since [spigot] is no max-object, there are no compatibility issues either.
mfg.cds.sdf IOhannes
Many thanks,
Dave Sabine
Hmm, maybe it would be best to avoid sending arguments to spigot in case I can figure out a good way to generalize it someday... for the moment, I'm thinking about offering a max-compatible "gate" such as already exists as an extern.
cheers Miller
On Mon, Jun 24, 2002 at 01:40:14PM -0600, David Sabine wrote:
Hello,
[spigot] confuses me a little. It seems that the only creation argument that it accepts is a "zero". However, "zero" is the default state for spigot even without the creation argument?
Would it make sense to re-write [spigot] to accept "0" or "1" as a creation argument which could then effectively be used to define its default state?
Can somebody clarify this issue for me?
Many thanks, Dave Sabine
To be quite frank, I like the [spigot] more than MAX's [gate]. (I realize that they offer different core functionality, but if I had to choose one or the other - I'd choose [spigot].
It seems that [spigot] can be used easily to build gate-like structures...but using [gate] for spigot-like functionality is not as intuitive.
my 2 cents.
I do agree however with IOhannes, it would be nice to be able to 'initialize' spigot with either a "1" or "0". But at the same time Miller, I agree that until it works consistently that way, it would be better to eliminate all possibility of defining creation arguments.
Regards, Dave Sabine
----- Original Message ----- From: "Miller Puckette" mpuckett@man104-1.ucsd.edu To: "David Sabine" dave@davesabine.com Cc: pd-list@iem.kug.ac.at Sent: Monday, June 24, 2002 1:59 PM Subject: Re: [PD] Spigot Creation agruments?
Hmm, maybe it would be best to avoid sending arguments to spigot in case I can figure out a good way to generalize it someday... for the moment,
I'm
thinking about offering a max-compatible "gate" such as already exists as an extern.
cheers Miller
On Mon, Jun 24, 2002 at 01:40:14PM -0600, David Sabine wrote:
Hello,
[spigot] confuses me a little. It seems that the only creation argument
that it accepts is a "zero". However, "zero" is the default state for spigot even without the creation argument?
Would it make sense to re-write [spigot] to accept "0" or "1" as a
creation argument which could then effectively be used to define its default state?
Can somebody clarify this issue for me?
Many thanks, Dave Sabine
Hi, David Sabine hat gesagt: // David Sabine wrote:
I do agree however with IOhannes, it would be nice to be able to 'initialize' spigot with either a "1" or "0".
It's rather easy to build an abstraction around spigot, that makes this possible. See attached files.
Frank Barknecht _ ______footils.org__
hi Dave,
what spigot functionality is not available in gate?
Ok, spigot is more intuitive, if one is looking at a patch and reading it right-to-left, but, if I am right about its functionality, it is a subset of gate's. In order to replace a spigot with a gate, one simply makes input connections crossed.
Gate may be created with multiple outlets (up to 100 in max4, no limit in cyclone), and its state might be queried.
Btw, gate also accepts a '<flag> <anything>' message in left inlet, but (for whatever reason I am afraid to ask about) the <flag> closes/opens the gate only after this message was processed (of course I do know what is the technical reason...)
Krzysztof
David Sabine wrote: ...
It seems that [spigot] can be used easily to build gate-like structures...but using [gate] for spigot-like functionality is not as intuitive.