testing for bang


    May 30 2012 | 7:58 am
    is there a way to test for a bang?
    and kind of related - is there a way to test for non-numeric data?
    all the operators seem to work for numeric only.
    thx

    • May 30 2012 | 8:38 am
      do you mean [sel bang] or [route bang] ?
    • May 30 2012 | 9:35 am
      I suppose it's route bang - basically I want to switch on a record~ object with non-zero but the thing that's coming down the patch cord is a bang.
      So I will test for bang and if it's a bang then change to a 1 to enable the record~.
    • May 30 2012 | 11:53 am
      In this case you could simply send the bang to a [1] message box or a [t 1] object.
    • May 30 2012 | 1:01 pm
      you can also bang a toggle to switch it on and off
    • May 30 2012 | 1:28 pm
      Broc again - I can't understand what the [t 1] object means???
      But I was using a toggle but the toggle retains it's state so only every 2nd click of the start button starts the record~ object.
      What I then did was to bang the toggle again after recording has finished to reset it but this seems more complex than it should be.
    • May 30 2012 | 1:37 pm
      [t 1] is short for the [trigger] object, you can write it [trigger 1] or just [t 1]. It's super useful - check out the help file. [t 1] will output a 1 with any input.
    • May 30 2012 | 2:12 pm
      cool thx
    • May 30 2012 | 2:59 pm
      Can't do that when I don't have access to live or max.
    • May 30 2012 | 3:14 pm
      I am at work - sorry - didn't mean to sound rude!
    • May 30 2012 | 4:57 pm
      I know - I tried looking up [t 1] and [t] in the online docs - but that cannot be found of course.
      If I had been at home I would have typed it into a patch and then it would have been clearer - anyway - I am pretty new to max as you can see.
      Hopefully won't be bothering you all too much after all your kind help.
    • May 30 2012 | 9:25 pm
      Works great. Thanks all.