I am creating an OS X app that will allow the user to play piano (using a MIDI keyboard). Notes will scroll from left to right and it is up to the user to play the correct note at the correct time, somewhat similar to Rock Band or any of those other games. The notes that will be scrolling will be generated from a text file or some sort of input source and it may look like this:
C4 D4 B3 A3 C4 ...
I am creating a dictionary for music notes. In music, there are 12 unique values, so let's just say that there are 12 unique letter types. The value of "C" would be 0, "C#" would be 1, "D" would be 2, etc. I need to codify them in this way because MIDI data that the user will be playing is produced numerically. "C" will always be 0, so this data needs to be hardcoded. What is the best practice for sharing this dictionary between multiple classes so that each instance of that class also has access to it?