note

Polyphonic, Polyrythmic, Polymetric sequencer outputs notes for given step, used in conjuction with polyseq/notectrl , see help patch
Author: Mark Harris
License: GPL
Github: tb/seq/polyseq/note.axo

Inlets

int32.positive trkIdx

int32.positive stepIdx

Outlets

bool32 gate

bool32 retrig on legato

frac32.bipolar pitch

frac32.bipolar mod1

frac32.bipolar mod2

frac32.positive velocity

Attributes

objref seq

Declaration
uint32_t step_ = -1;
uint32_t gate_ = 0;
uint32_t pitch_ = 0;
uint32_t velocity_ = 0;
Control Rate
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];

Privacy

© 2024 Zrna Research