Re: [PD] convert bang to 1 else it's a 0
Quoting Rick T : 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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] convert bang to 1 else it's a 0
BTW-- have you read the tutorial /doc/2.control.examples? If not, click to bring up the help browser, click "Pure Data", then 2.control.examples. Then double click one of the patches to bring it up. Those tutorials should explain some of these concepts you're asking about. Best, Jonathan > > From: Rick T >To: Jaime Oliver >Cc: PD List >Sent: Sunday, October 14, 2012 8:47 PM >Subject: Re: [PD] convert bang to 1 else it's a 0 > > >Thanks that worked > > >On Sun, Oct 14, 2012 at 2:40 PM, Jaime Oliver wrote: > >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 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 wrote: >>>> >>>> Just connect the bang to a messagebox containing 1 ? >>>> >>>> On Oct 15, 2012 1:46 AM, "Rick T" 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@iem.at mailing list >>>>> UNSUBSCRIBE and account-management -> >>>>> http://lists.puredata.info/listinfo/pd-list >>>>> >>> >>> >>> ___ >>> Pd-list@iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> http://lists.puredata.info/listinfo/pd-list >>> >> >> >> >>-- >>Jaime E Oliver LR >> >>jo2...@columbia.edu >>www.jaimeoliver.pe >>858 750 0924 (cel) >> > >___ >Pd-list@iem.at mailing list >UNSUBSCRIBE and account-management -> >http://lists.puredata.info/listinfo/pd-list > > > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] convert bang to 1 else it's a 0
Thanks that worked On Sun, Oct 14, 2012 at 2:40 PM, Jaime Oliver wrote: > 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 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 wrote: > >> > >> Just connect the bang to a messagebox containing 1 ? > >> > >> On Oct 15, 2012 1:46 AM, "Rick T" 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@iem.at mailing list > >>> UNSUBSCRIBE and account-management -> > >>> http://lists.puredata.info/listinfo/pd-list > >>> > > > > > > ___ > > Pd-list@iem.at mailing list > > UNSUBSCRIBE and account-management -> > > http://lists.puredata.info/listinfo/pd-list > > > > > > -- > Jaime E Oliver LR > > jo2...@columbia.edu > www.jaimeoliver.pe > 858 750 0924 (cel) > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] convert bang to 1 else it's a 0
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 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 wrote: >> >> Just connect the bang to a messagebox containing 1 ? >> >> On Oct 15, 2012 1:46 AM, "Rick T" 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@iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> http://lists.puredata.info/listinfo/pd-list >>> > > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > -- Jaime E Oliver LR jo2...@columbia.edu www.jaimeoliver.pe 858 750 0924 (cel) one-bang.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] convert bang to 1 else it's a 0
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 wrote: > Just connect the bang to a messagebox containing 1 ? > On Oct 15, 2012 1:46 AM, "Rick T" 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@iem.at mailing list >> UNSUBSCRIBE and account-management -> >> http://lists.puredata.info/listinfo/pd-list >> >> ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list