Moved from the question to an actual answer post:
Thanks to you cool people, I figured out the problem. In the event someone else has this problem, here is my solution. I came to realize that the problem was that I had two integers assigned in each array slot, effectively making the array a 3D array. Since the first number in each pair is just the string number, I went ahead and just got rid of it. No more warnings!**
int strings[6][12] = {8, 9, 10, 11, 12, 1 ,2 ,3, 4, 5, 6, 7, // High e 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, // B 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, //G 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, // D 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, // A 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7 }; // E
manpreet
Best Answer
2 years ago
I'm just learning Objective C and writing a program to aid people in learning to play the guitar. I wanted to create a 2D array containing (almost) all the notes on a guitar neck. Since there are six strings on the guitar and twelve notes in an octave, I created a 6 x 12 array. EDIT: solution is now at bottom
The intention here is for the array to be read as (string),(fret number).