4. Sound

Sound code blocks controls sounds.

4.1. Playing sound

_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

This code block plays a sound and is not blocking.

_images/02-stop-all-sounds.png

This code block stops all sounds.

Code

4.2. Changing pitch and pan effects

_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

This code block changes the pan left-right effect by an amount.

_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

This code block sets the pan left-right effect.

_images/07-clear-sound-effects.png

This code block clears the sound effects.

Code

4.3. Changing volume

_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

This code block changes the volume by a percentage.

Code