for (int i=0; i<bools .size(); i++) if (bools.get(i).b) APCOut.sendNoteOn (bools.get(i).col, bools.get(i).row, 1);
else APCOut.sendNoteOff (bools.get(i).col, bools.get(i).row, 0);
}
for (int i=0; i<bools .size(); i++) if (bools.get(i).b) APCOut.sendNoteOn (bools.get(i).col, bools.get(i).row, 1);
else APCOut.sendNoteOff (bools.get(i).col, bools.get(i).row, 0);
}