0 //while pressing and holding the button, shows 0
0
Serial monitor read from processing:
10
13
49...
plus some pattern on occasions, but no visible changes when the button is pressed. Always shows the same random numbers.
With this code, we are trying to get our sound to play when the button is pressed in, and to stop playing when released, and at the same time, our LedPin is supposed be on all the time, which it is now.