Sound: play-stop, change pitch

Playing around with sounds.
Can not figure out how to do this :blush: :

  • While the key is pressed, play a sound
    When the key is released - stop the sound

  • Play the sound 10 times changing its pitch by X every time

  • Play the sound for 0.5 sec.

[quote]
While the key is pressed, play a sound When the key is released - stop the sound

[quote]
Condition : the key is pressed stop the pause (you need to start the sound and pause it previously)
The key isnt pressed pause the sound

I made an example project to illustrate how to do that:
play_with_sound.zip (762 KB)

Hope it helps!

1 Like

Thanks erdo for the great example! :mrgreen:

Cool! I want to see how you will use it! :sunglasses: