Hi.
Sending a bang to a "trigger anything" object I get 0.
Is it a feature?
Thanks,
Maurizio Umberto Puxeddu.
hi again,
-- 'bang' is a special kind of a message, and in *certain cases* it is converted to an empty list. The empty list is, then, converted by a trigger to the one-element list of '0'.
I really do not know, if these 'cases' follow any pattern... If they do, then this is a feature ;)
Btw, the [print] object does the opposite -- it converts an empty list to a bang (try 'x'->[route x]->[print])...
Krzysztof
Maurizio Umberto Puxeddu wrote:
Sending a bang to a "trigger anything" object I get 0.
Is it a feature?
On Mon, 9 Sep 2002, Krzysztof Czaja wrote:
hi again,
-- 'bang' is a special kind of a message, and in *certain cases* it is converted to an empty list. The empty list is, then, converted by a trigger to the one-element list of '0'.
I really do not know, if these 'cases' follow any pattern... If they do, then this is a feature ;)
Btw, the [print] object does the opposite -- it converts an empty list to a bang (try 'x'->[route x]->[print])...
I though it was route to send a bang where no item followed the one used for routing... who knows.
Thanks to everyone.
Maurizio Umberto Puxeddu.
hi Maurizio,
you might insert a toggle before the [print], or try to start [metro] with 'x'->[route x]...
Btw, 'x'->[route x] in max sends a real bang...
K.
Maurizio Umberto Puxeddu wrote: ...
Btw, the [print] object does the opposite -- it converts an empty list to a bang (try 'x'->[route x]->[print])...
I though it was route to send a bang where no item followed the one used for routing... who knows.
This seems wrong. Also, I think "trigger list" should be putting out a bang (empty list) instead of a "0". But I should go find out what Max does for these...!
cheers Miller
On Mon, Sep 09, 2002 at 05:42:03AM +0200, Maurizio Umberto Puxeddu wrote:
Hi.
Sending a bang to a "trigger anything" object I get 0.
Is it a feature?
Thanks,
Maurizio Umberto Puxeddu.
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
hi,
in max, there is no [t a] in the Pd's sense. It is not as badly needed as in Pd, because one can use multiple connections and rely on the right-to-left order of execution.
In Pd, the simplest meaning of 'bang' -> [t a] would be, I think, to get an output of a 'bang', but
Miller Puckette wrote:
This seems wrong. Also, I think "trigger list" should be putting out a bang (empty list) instead of a "0". But I should go find out
I cannot understand the rules of bang <-> empty list conversion in Pd... I will try hard still, but if there is any simple clue, I would be grateful to know it...
...
what Max does for these...!
this was checked in max 4.0.7 (and is consistent with what is written in the reference manual): 'bang' -> [t l] gives 'list 0' in max -- which may be checked with [route list] sending via the left outlet...
Krzysztof
Btw, one can use constant args too: 'bang' -> [t llwybr] gives 'llwybr' in max, 'bang -> [t 99] gives '99', etc.