Hello,
i have created a prefilledpattern function (you can choose between 72 pre defined drum lines), it works fine !
So...
i setup a special knob that everytime you turn it, it fills the sequence with a pre defined drum line (1, 5, 9, 13 are filled for instance).
if i want to see the new sequence on the steps i have to switch pages !
here is my code:
// rstephane : My prefilled pattern
void seq_setPrePatternFill(uint8_t voiceNr, uint8_t msgdata2)
{
uint8_t i,maxsteps = 16;
// clear current pattern in the memory
seq_clearTrack(voiceNr, seq_activePattern);
// we fill the track
for (i=0; i<maxsteps; i++)
{
if (prefilledPattern[msgdata2-1][i]>=1 && prefilledPattern[msgdata2-1][i]<=16)
seq_toggleMainStep(voiceNr, prefilledPattern[msgdata2-1][i]-1, seq_activePattern);
else
{
frontParser_updateTrackLeds(voiceNr, seq_activePattern);
return; // we arrived at the end of the steps that are ON so we quit.
}
}
}
i think, the solution is in the command:
void frontParser_updateTrackLeds(const uint8_t trackNr, uint8_t patternNr);
but this function only switch LEDs if they are ON :-)
what shall i do to light off leds ?
cheers!