charptr32 text0
charptr32 text1
charptr32 text2
charptr32 text3
charptr32 text4
charptr32 text5
charptr32 text6
charptr32 text7
bool32.risingfalling mute
bool32.rising redraw
int32 row
int32 test
objref LEDmaster
spinner row
bool trig;
bool mtrig;
bool doit;
uint8_t prerow;
if (!inlet_mute) {
if (inlet_redraw && !trig) {
trig = 1;
doit = 1;
}
if (!inlet_mute && !mtrig) {
mtrig = 1;
doit = 1;
}
if (inlet_row != prerow) {
doit = 1;
prerow = inlet_row;
}
if (doit && !attr_LEDmaster.ROW) {
doit = 0;
memset(&attr_LEDmaster.array[8], 32, 68);
memcpy(&attr_LEDmaster.array[8], inlet_text0, strlen(inlet_text0));
memcpy(&attr_LEDmaster.array[17], inlet_text1, strlen(inlet_text1));
memcpy(&attr_LEDmaster.array[25], inlet_text2, strlen(inlet_text2));
memcpy(&attr_LEDmaster.array[34], inlet_text3, strlen(inlet_text3));
memcpy(&attr_LEDmaster.array[42], inlet_text4, strlen(inlet_text4));
memcpy(&attr_LEDmaster.array[51], inlet_text5, strlen(inlet_text5));
memcpy(&attr_LEDmaster.array[59], inlet_text6, strlen(inlet_text6));
memcpy(&attr_LEDmaster.array[68], inlet_text7, strlen(inlet_text7));
attr_LEDmaster.array[16] = 32;
attr_LEDmaster.array[33] = 32;
attr_LEDmaster.array[50] = 32;
attr_LEDmaster.array[67] = 32;
attr_LEDmaster.ROW = ((inlet_row + attr_row) + 1) % 5;
}
}
if (inlet_mute)
mtrig = 0;
if (!inlet_redraw)
trig = 0;