Sound blocks are used to control sound functions.
What sound blocks are?
Sound blocks are used to control sound functions. There are 9 sound blocks available in Scratch 3.x. These blocks are used to play sound in the background of the story or game. Sound blocks are applicable for both Sprites and Backdrops.
Please refer Chapter 4 to understand sound tab on the block pallet and how to add sound
How to use “play sound () until done” block?
This block allows to play sound until done. No parallel event. You must wait until the sound file is fully played, and then go to the next instruction.
In the above code the instruction move 10 steps doesn’t happen until the song is done.
The above drop down will show all the sounds added to the selected sprite or backdrop in the sound tab.
How to use “Start Sound ()” block?
This block allows to start play sound. There will be a parallel event. Other instruction starts before this sound is done.
In the above code move 10 steps instruction take place while sound is playing. No need to wait until done.
How to use “stop all sound” block?
This block allows to stop all the sounds currently playing for the selected sprite or backdrop.
How to use “change pitch effect by ()” block?
This block allows to change the pitch of the sound we selected. It’s not onetime event, you can change again and again by using repeat or forever loop.
How to use “change pan left/right effect by ()” block?
This block allows to change the pan left/right effect.
How to use “set pitch effect to ()” block?
This block allows to set the pitch for specific value. This is one time action. You can’t continuously change.
How to use “set pan left/right effect to ()” block?
This block allows to set the pan left/right effect to a specific value. This is onetime action. You can’t change continuously.
How to use “clear sound effects” block?
This block allows to clear all the sound effects applied to the selected sprite or backdrop.
How to use “change volume by ()” block?
This block allows to change the volume. Its continuous action. You are not setting, instead changing the volume.
The maximum volume is 100, you can’t increase after that. You can decrease volume using negative value (-10).
How to use “set volume to () %” block
This block allows you to set the volume for a specific percentage. Using this block, you set the volume and not change the volume. Its onetime action.
How to show “volume” on the stage?
This block allows to show the volume on the stage. You can check the check box next to the block to show on the stage and uncheck it to remove from the stage.
Also, this block can be used in if condition with operators
1. What are the sounds you hear in nature at home or school? (It can be bird, dog or cat) List all of them.
2. Which is your favorite sound? And why? (You like pitch of the sound or volume or any reason)
3. Can you record one of the sounds you hear in the nature and upload to your Scratch? Write your experience.