using a momentary push button as an on/off switch through arduino

bigxjeff's icon

Hey guys so I have a momentary push switch connected to an arduino and coming into MAX. I am getting a 1 as the button is pushed and a 0 when it is released. I need this to only send one signal when the button is pushed instead of 1 and 0. can anybody give me some objects or ideas?

notechnotech's icon

select 1

left inlet will bang when 1 is pushed, ignore the right inlet and you'll ignore the 0 message.