4. Sound
Sound code blocks controls sounds.
4.1. Playing sound
![_images/00-play-sound-meow-until-done.png](_images/00-play-sound-meow-until-done.png)
This code block plays a sound and blocks all code following it until the sound is finished playing.
![_images/01-start-sound-meow.png](_images/01-start-sound-meow.png)
This code block plays a sound and is not blocking.
![_images/02-stop-all-sounds.png](_images/02-stop-all-sounds.png)
This code block stops all sounds.
4.2. Changing pitch and pan effects
![_images/03-change-pitch-effect-by-10.png](_images/03-change-pitch-effect-by-10.png)
This code block changes the pitch
effect by an amount.
![_images/04-change-pan-left-right-effect-by-10.png](_images/04-change-pan-left-right-effect-by-10.png)
This code block changes the pan left-right
effect by an amount.
![_images/05-set-pitch-effect-to-100.png](_images/05-set-pitch-effect-to-100.png)
This code block sets the pitch
effect.
![_images/06-set-pan-left-right-effect-to-100.png](_images/06-set-pan-left-right-effect-to-100.png)
This code block sets the pan left-right
effect.
![_images/07-clear-sound-effects.png](_images/07-clear-sound-effects.png)
This code block clears the sound effects.
4.3. Changing volume
![_images/08-change-volume-by-minus-10.png](_images/08-change-volume-by-minus-10.png)
This code block changes the volume by an amount.
![_images/09-set-volume-to-100-percent.png](_images/09-set-volume-to-100-percent.png)
This code block changes the volume by a percentage.