None
int32 counter position
bool32 clock active
bool32 clock signal
bool32 reset/1st trigger to use to do something
bool32 randomise/2nd trigger to use to do something
bool32 trg1
bool32 trg2
bool32 trg3
spinner CH
spinner CC
int32_t _active;
int32_t _pos;
int clck, active, ccv;
_active = 0;
_pos = 0;
outlet_active = _active;
outlet_clock = clck;
outlet_position = _pos;
clck = 0;
outlet_reset = ccv & 1;
outlet_random = (ccv >> 1) & 1;
outlet_trg1 = (ccv >> 2) & 1;
outlet_trg2 = (ccv >> 3) & 1;
outlet_trg3 = (ccv >> 4) & 1;
ccv = 0;
if ((status == (attr_CH - 1) + MIDI_CONTROL_CHANGE) && (data1 == attr_CC)) {
ccv = data2;
}
if (status == MIDI_TIMING_CLOCK) {
clck = 1;
} else if (status == MIDI_START) {
_active = 1;
ccv = ccv - (ccv & 1) + 1;
} else if (status == MIDI_STOP) {
_active = 0;
} else if (status == MIDI_CONTINUE) {
_active = 1;
} else if (status == MIDI_SONG_POSITION) {
_pos = ((data2 << 7) + data1);
}