Page 1 of 1

Step sequencer. Triggering Scripts.

Posted: 07 Oct 2014 22:00
by Mike-L
Ive set up a step sequencer to trigger a script on certain steps. The problem i have is that i can't turn it off. I was expecting it to stop triggering when I turned the step off. How do I reference the on/off state of a step in a script? Apologies for the newbie questions.
EDIT - i think i may have the answer. I missed the .x I'll try this and see how it goes.
Im trying to send multiple notes from one step & one sequencer, and as far as I can tell this is the only way of doing it - but it only half works at the moment!

Re: Step sequencer. Triggering Scripts.

Posted: 07 Oct 2014 22:33
by Mike-L
OK i can turn the scripts on & off now!
My code looks like this:

decl currentStep=getattribute(StepSwitch, 'parameters_phase');
if (x[0]==1 && currentStep==0)

{
noteout (0,a[0],127,1);
noteout (0,a[1],127,1);
noteout (0,a[2],127,1);
noteout (0,a[3],127,1);
}