Hi,
Creating a sequencer where each step can be enabled via MIDI is possible but can get a bit complex. Here's a sample project showing how to toggle the activation of each column of the sequencer by pressing the MIDI notes from 1 to 16 on channel 1. The activation state of each column is also saved into the project file since the source last value is saved.
The formula for the source that is computing what column of the sequencer to activate looks like:
xtopercent(
let( beatDivisor, 4, // move forward every Xth beat
signal, pulse(0.5), // the input for the beat detection, like an audio band
let( lookAt,
floor(counter( 0,
(grid.lastx+1)*beatDivisor-1,
onbeat(trigger(signal,0,10,30,0.2)) // clean the signal with the trigger and detect beats
| grid.powerat(x,0)==0, // skip disabled steps
0,
grid.onactivated // reset the counter when the grid is activated
)/beatdivisor),
// update the memory only when the step is enabled
if(grid.powerat(lookAt,0)>0, mem(0, lookAt), lookAt)
)
)
)
For testing purpose, I'm using a pulse(0.5) signal. Replace it by the audio if you want.
You need to put the attributes corresponding to the effects on the grid. I don't see a way to do this only via MIDI.