Hello!
I would like to generate a frame with a series of clicks at specific positions.
6 9 13 would simply give:
“0 0 0 0 0 1 0 0 1 0 0 0 1 0”
What would be the easiest way to do it?
I think that I am missing some sort of “fl.subs” which would do multiple substitutions at once (like bach.subs).
Or a clever way using the already existing “fl.lookup~”?
O.
For a one-off, the most straightforward route is to build the frame outside frameLib: make a Max buffer of the right length filled with zeros, poke a 1.0 at each click position, then read that buffer as a frame. That handles any number of clicks without chaining substitutions, and you can keep the position list in a coll or a message to regenerate it. If you prefer staying inside frameLib, an index-to-value mapping stage fed with the position list and matching 1.0s does the same in one pass — but the buffer route is easier to inspect while debugging.