Cyclical mute / unmute of tracks

Menno's icon

Hey guys,

This is my first Max for live patch so forgive me if this is a stupid question. I've been trying to make a patch where i can cycle between different tracks. There are 3 tracks in total but I only want 1 to play at a time. Evey time when I hit the same midi button it should unmute one and mute the 2 others. Every new hit on this same midi button should unmute one of the other tracks and mute the rest.

I think everything works fine until I reach the live.object. I send a '0' message for mute and a '1' message for unmute to the live.object but I keep getting the "live.object doesn't understand "int"' error.

Does anyone know what I am doing wrong here?

Thank you so much in advance!

Source Audio's icon

you can do same using mute message.

here are 2 examples using different control messages