del step

records notes,as pitch and velocity,to a table with the same name as the object. after recording,the recorded notes are translated to a sequence with 512ppq resolution. the maximum recording length is 42 seconds,with a maxium of 512 events (or,256 notes played) outlet 'length' provides the recording length,in order to drive a 'ktransport' -object. use 'note play' to play the sequence.
Author: Robert Schirmer
License: BSD
Github: rbrt/mloop/del step.axo

Inlets

bool32.risingfalling delete

int32 index

Outlets

None

Attributes

objref seq

objref hold

Declaration
int prev;
bool dtrig;
Control Rate
if ((inlet_delete) && (inlet_index != prev)) {
  prev = inlet_index;
  int i;
  for (i = 0; i < 128; i++) {
    if (attr_hold.array[i]) {
      if (((attr_seq.array[inlet_index] & 255) - 1 == i) &&
          (attr_seq.array[inlet_index] >> 8))
        attr_seq.array[inlet_index] = 0;
    }
  }
}

Privacy

© 2024 Zrna Research