int32.positive trkIdx
int32.positive stepIdx
bool32 gate
bool32 retrig on legato
frac32.bipolar pitch
frac32.bipolar mod1
frac32.bipolar mod2
frac32.positive velocity
objref seq
uint32_t step_ = -1;
uint32_t gate_ = 0;
uint32_t pitch_ = 0;
uint32_t velocity_ = 0;
bool gate = attr_seq.seqValue_[inlet_trkIdx][inlet_stepIdx][0];
outlet_gate2 = gate;
if (step_ != inlet_stepIdx) {
step_ = inlet_stepIdx;
// change step
if (gate && gate_) {
outlet_gate2 = false;
}
}
gate_ = gate;
if (gate_) {
pitch_ = attr_seq.seqValue_[inlet_trkIdx][inlet_stepIdx][1];
velocity_ = attr_seq.seqValue_[inlet_trkIdx][inlet_stepIdx][2];
}
outlet_gate = gate_;
outlet_pitch = pitch_;
outlet_velocity = velocity_;
outlet_mod1 = attr_seq.seqValue_[inlet_trkIdx][inlet_stepIdx][3];
outlet_mod2 = attr_seq.seqValue_[inlet_trkIdx][inlet_stepIdx][4];