testing for bang

May 30, 2012 at 7:58am

testing for bang

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.


May 30, 2012 at 8:38am

do you mean [sel bang] or [route bang] ?

May 30, 2012 at 9:35am

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 at 11:53am

In this case you could simply send the bang to a [1] message box or a [t 1] object.

May 30, 2012 at 1:01pm

you can also bang a toggle to switch it on and off

May 30, 2012 at 1:28pm

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 at 1:37pm

[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 at 2:12pm

cool thx

May 30, 2012 at 2:20pm


I can’t understand what the [t 1] object means???

As it have been suggested before, the best way to learn maxMSP is to “alt + click” on every object you do not understand to open the help file then have a look on “See Also” menu in the right bottom of those patch ;-)

May 30, 2012 at 2:59pm

Can’t do that when I don’t have access to live or max.

May 30, 2012 at 3:14pm

I am at work – sorry – didn’t mean to sound rude!

May 30, 2012 at 3:48pm


don’t worry ; it doesn’t sound rude for me ; i used two computers, one for internet in mum’s house, and the other in my sweet home, during few years so i know how frustrating it is (specially the copy compressed format you have to copy/paste on a bloody usb key) ; but WIFI came !

maxMSP documentation is on-line ; sometimes it helps for those situations ;-)


May 30, 2012 at 4:57pm

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 at 9:25pm

Works great. Thanks all.


You must be logged in to reply to this topic.