We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm fairly new to processing, started in september. In my class right now were making experments based off of pacman. Right now I'm trying to have the waka waka sound play upon a key press and use loop to repeat it. The problem is that as I continue to use the keys the sound starts over again mutiple times overlapping each over. How can I make the audio run once until the key is released to stop the sound and repeat itself again.
Answers
https://forum.Processing.org/two/discussions/tagged?Tag=isplaying()
Update: I set up an int/float for number of times the key was pressed and put in an if statement inside of key pressed for Everytime # of key presses would = 1 it ran a code that played the file in a loop and put in key released that when key released the #KP would reset to zero and the file would stop.