hello!
total noob here so i may be approaching this the wrong way totally.
i'm trying to make my program read values sequentially from an array, so far so good:
int myarray[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
(...)
void loop() {
int i;
for (i = 0; i < 9; i = i + 1) {
usbMIDI.sendNoteOn(myarray[i], 127, 1);
as that last line says, what i'm trying to do is send items from the array/s as midi notes.
in order to introduce more variation, i wanted several arrays to choose from.
i thought having a bunch of them inside a main array would work:
int myarray[2][2] = { {3, 4}, {6, 7} };
but when i try to access those nested arrays, i get errors, of course.
any pointers on how to do this, or perhaps a completely different approach to get to the same result?
MANY THANKS!