possible for bang to act like toggle


    Nov 30 2007 | 10:44 pm
    Hi
    This is a very , very basic question I almost feel stupid but I haven't been able to answer it.
    I want a bang to act like a toggle in a [>= ] situation.
    To be more precise, when you have a toggle connected to a >= object, it displays that it is "on" when greater than and "off" when smaller than. Great, this is ok when you want to turn something on or off. But what I want is a bang once if greater than.
    With select, it bangs once if matches. But as I said, I don't want a specific number, I want a specific range.
    thanks alots
    phil

    • Nov 30 2007 | 11:22 pm
      Try the [if] like so:
      On Nov 30, 2007, at 3:44 PM, phil wrote:
      > > Hi > > This is a very , very basic question I almost feel stupid but I > haven't been able to answer it. > > I want a bang to act like a toggle in a [>= ] situation. > > To be more precise, when you have a toggle connected to a >= > object, it displays that it is "on" when greater than and "off" > when smaller than. Great, this is ok when you want to turn > something on or off. But what I want is a bang once if greater than. > > With select, it bangs once if matches. But as I said, I don't want > a specific number, I want a specific range. > >
      ---- Steven M. Miller Professor, Contemporary Music Program College of Santa Fe
      Home SFIFEM Atrium Sound Space OVOS CMP
    • Nov 30 2007 | 11:40 pm
      you could use onebang to make sure it only bangs once.
    • Dec 01 2007 | 12:36 am
      ---------------------------------------------------- But what I want is a bang once if greater than. ----------------------------------------------------
      You can use [change] between comparison and select objects:
      Best.
    • Dec 01 2007 | 12:36 am
      Quote: philippehughes@hotmail.com wrote on Fri, 30 November 2007 14:44 ---------------------------------------------------- > Hi > > This is a very , very basic question I almost feel stupid but I haven't been able to answer it. > > I want a bang to act like a toggle in a [>= ] situation. > >
      I tend to have comparisons followed by sel 1 or sel 0 very frequently. Sometimes I throw in change. ASCII style:
      [>= 3.14] | | [change] (optional) | | [sel 1]
      That gives me a bang when the input passes above a certain threshold.
      mz
    • Dec 01 2007 | 4:26 am
      At 3:44 PM -0700 11/30/07, phil wrote: >With select, it bangs once if matches. But as I said, I don't want a specific number, I want a specific range.
      It sounds like you want something like a window comparator. Try this:
      -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno
    • Dec 01 2007 | 4:12 pm
      try these, remember things like counter and comparisons don't work like most beginners think, a bang is any change of state, so sending an led a 0 is still a bang. Comparisons send out a 1 for ever number that's 'true' and a 0 for ever number that's 'false'. But this means it'll always bang even if you don't expect it to.