del note

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 note.axo

Inlets

bool32.rising delNote

int32.positive note

Outlets

None

Attributes

objref seq

Declaration
bool dtrig;
Control Rate
if (inlet_delNote && !dtrig) {
  dtrig = 1;
  int i;
  for (i = 0; i < 512; i++)
    if ((attr_seq.array[i] & 255) - 1 == inlet_note)
      attr_seq.array[i] = 0;
}
if (!inlet_delNote)
  dtrig = 0;

Privacy

© 2024 Zrna Research