analog to digital converter to generate on/off array

bertrandfraysse's icon

I came across this idea, and this seem pretty powerful.
the idea is to store an array of on/off switches with just one number.

then it would be possible to easily store and retrieve these arrays of on/off switches at audio rate, which would be a total mess or complicated otherwise.

but I'm not sure the analog to digital converter is implemented the simplest way, i'm sure there's a better way of doing it.
it would be nice to be able to rotate the sequence too, but there's no >> operator, the other methods I've found are expensive and too complicated.

here is a very quickly made patch to show what I mean.

Max Patch
Copy patch and select New From Clipboard in Max.

If you have any idea to develop these ideas, you are welcome.