int32.positive note
int32.positive velo
None
uint8_t pren;
uint8_t prev;
static const uint8_t LENGTHPOW = 7;
static const uint8_t LENGTH = 1 << 7;
static const uint8_t LENGTHMASK = (1 << 7) - 1;
static const uint8_t BITS = 8;
static const uint8_t GAIN = 20;
uint8_t array[LENGTH];
int i;
{
for (i = 0; i < LENGTH; i++)
array[i] = 0;
}
if ((inlet_note != pren) || (inlet_velo != prev)) {
array[__USAT((inlet_note), LENGTHPOW)] = inlet_velo;
pren = inlet_note;
prev = inlet_velo;
}