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.