Sounds

Sound

1. play sound () until done

Plays the specified sound until the playing ends

Example:

When you click the green flag, the sprite makes the sound meow and then moves 10 steps.

2. start sound ()

Plays the specified sound

Example:

When you click the green flag, the sprite makes the sound meow while moving 10 steps.

3. stop all sounds

Stops all sounds

Example:

When you click the green flag, the sprite makes the sound meow, and when you press the space key, the sound is stopped.

4. change () effect by ()

Changes the specified effect (pitch or pan left/right) by the specified amount

A positive value indicates increasing, and a negative one indicates decreasing.

Example:

When you click the green flag, the sprite starts to make the sound meow, and when you press the space key, the pitch effect is increased by 10%.

Try clicking the green flag again after pressing the space key to see how the sound changes.

5. set () effect to ()

Sets the specified effect (pitch or pan left/right) to the specified amount

Example:

When you press the space key, the pitch effect is set to 90%, and when you click the green flag, the sprite starts to make the sound meow.

Trying setting the effect to different values to see how the sound changes.

6. clear sound effects

Removes all the sound effects

Example:

When you press the space key, all the sound effects you have set are removed.

7. change volume by ()

Changes the volume by the specified amount

Example:

When you click the green flag, the sprite starts to make the sound meow, and when you press the space key, the volume is increased by 10%.

Try clicking the green flag again after pressing the space key to see how the sound changes.

8. set volume to ()%

Sets the volume to the specified amount

Example:

When you press the space key, the volume is set to 90%, and when you click the green flag, the sprite starts to make the sound meow.

Trying setting the volume to different values to see how the sound changes.

9. volume

Reports the current volume

Example:

When you click the green flag, the sprite reports the current volume.