Glad to hear it. And glad you got your matrix repaired--quite a number of wires to keep straight.operating perfectly
At the beginning of the program, make sure bLEDFlag is set to 1 so you go to preprocess and turn the LED on; make sure bPlayTune is set to 0 so the TUNE command is not executed. Then put your "wait for the hammer" code in postprocess. Any further PAUSE you want may be put here before the "wait for the hammer" code.Question, where do we write the "wait for the hammer" command?
Please post the code as an attachment so I can look at it.we changed the note speed from 8 to 15 but in the terminal window it still says 8.
Within that stream there are some pretty high (1023) and low (252) numbers, so it may be a case of needing to filter or process the data to detect strikes.Here is a test using Hippy's code.