I'm making a piano where lasers are shining on photoresistors, and when the laser beam is blocked, the resistance is high and the Audino plays a note. I have 13 of these attached to a Mux shield on the Arduino where each of them plays a different note. Using the Tone Library, what would be the easiest way to tell the Arduino that if two lasers are blocked, play two notes, or three lasers and three notes? I could write out every possible combination, but that would take much too long. Could someone please give me some sample code to work with?
Best regards, Charles