[PD] convert bang to 1 else it's a 0

zmoelnig at iem.at zmoelnig at iem.at
Mon Oct 15 09:01:23 CEST 2012


Quoting Rick T <ratulloch at gmail.com>:
> moses 1


hmm, it seems that you expect [moses] to have super-cow powers (or
propbably super-saint powers), why do you think that it will convert
[bang(s to numbers?
you should really read the help-patch of this object (right-click on
it and select "Help").
(btw, i am a long time patcher and personally don't use this object
very often; it hardly ever solves a problem for me - unlike [trigger] :-))

anyhow converting a bang to a number is as simple as sending the bang
into a number object

[bang(
|
[f 12]
|

will output "12" whenever you click on bang.

your specificproblem is more of resetting the number to 0 after you
have output 1.

something like

[metro 1000]
|
| [bang(
| |
| [f 1]
|
| +------------+
[f]            |
|              |
[t f b]        |
|     |        |
|     [f 0]    |
|     |        |
|     +--------+
|

dfmSR#
IOhannes






More information about the Pd-list mailing list