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

Jaime Oliver jaime.oliver2 at gmail.com
Mon Oct 15 02:40:41 CEST 2012


many solutions that require a bit of imagination. check out the
trigger object or see attached patch.
J

On Sun, Oct 14, 2012 at 8:25 PM, Rick T <ratulloch at gmail.com> wrote:
>
> That won't work because once you bang the message box with the number "1" it
> stays at 1 and it doesn't go back to the number "0"
>
> On Sun, Oct 14, 2012 at 2:20 PM, Simon Iten <itensimon at gmail.com> wrote:
>>
>> Just connect the bang to a messagebox containing 1 ?
>>
>> On Oct 15, 2012 1:46 AM, "Rick T" <ratulloch at gmail.com> wrote:
>>>
>>> Greetings All
>>>
>>> I'm trying to output a a number "0" every second (to a text file) unless
>>> a bang is sent, in which case a number "1" will be written to the text file
>>> instead of a zero.  The problem I'm having is converting a bang into a
>>> number.  I tried using moses but moses has no number for bang.  Any work
>>> arounds?
>>>
>>> Example:
>>> bng
>>> |
>>> moses 1
>>> |          |
>>> 0(         1(
>>>
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list
>>>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>



-- 
Jaime E Oliver LR

jo2357 at columbia.edu
www.jaimeoliver.pe
858 750 0924 (cel)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: one-bang.pd
Type: application/octet-stream
Size: 542 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121014/4bd18f8c/attachment.obj>


More information about the Pd-list mailing list