Syncing multiple el.mask~ with index numbers not working ?

My problem is I cannot seem to be able to sync multiple instances of Eric Lyon’s el.mask~ object by having one as a master click triggering index numbers. I could not find any documentation about this but only Eric Lyon’s "A Sample Accurate Triggering System for Pd and Max/MSP" paper:

"It is also possible for two mask patterns of the same size to be out of sync with each other if, for example, one mask was created later in the design of a given patch. This loss of sync is usually not desirable. Thus, mask provides an option whereby the input is interpreted not as triggers, but rather as index numbers used to iterate through the mask pattern. Using the same indexing clicks
(generated from another mask of course) guarantees that all patterns so controlled remain locked in phase."

Gee, I guess I should have documented that feature :) There’s a message called indexmode which, when toggled by a non-zero will make a mask~ follow indexes (starting at 1, since 0 can’t be easily represented as a trigger). Hopefully this example will serve.

Eric

– Pasted Max Patch, click to expand. –

Copy all of the following text. Then, in Max, select New From Clipboard.

I really appreciate your hard work creating those externals. I am currently building a sequencer based on your sample-accurate click-triggering system for the Korg padKONTROL KPK-1. The previous one I built was everything but not accurate. I thought it is an impossible mission to achieve a tight timing in maxmsp until I found your work…