So the user Dogmeat sent me a max patch he was having some troubles with. Actually, the patch is almost there. I only had to add maybe one or two objects.
The main issues were:
• Added a way to choose which MIDI note should be triggered on an toggled beat (the i object stores the number and the sel object triggers the value for each '1' it receives from the coll).
• Changed the ints for the counter maximum count from 4, 8 and 16 to 3, 7 and 15 because the counter starts at 0.
Download the fixed version here.