Play sound with "keyPressed"

Hi everybody, I want to know how can I put a sound everytime that a key is pressed ? For instance "if(keyPressed){ if((key == 'z' )){ "play a sound" } ". :-/

Answers

  • Answer ✓

    Check out the examples shipped with Processing. There is precisely what you are looking for.

  • Thank you so much !!!!!!

Sign In or Register to comment.