Sound is one of the ten categories of Scratch blocks. They are color-coded pink/magenta, and are used to control sound (and formerly MIDI) functions.
There are currently 9 Sound blocks: 8 Stack blocks and 1 Reporter block.
- Main article: Music Extension
Instrument blocks (such as drum, note, rest, and tempo) were originally Sound Blocks in older versions of Scratch, but in Scratch 3.0, they were put under the Music Extension instead. This decision was made in order to prevent confusing New Scratchers.
|Note:||Click on a block to learn more about it.|
Scratch 3.0 has the following 8 Sound Stack blocks:
start sound ( v)
play sound ( v) until done
stop all sounds
change [ v] effect by ()::sound
set [ v] effect to ()::sound
clear sound effects
change volume by ()
set volume to ()%
Scratch 3.0 has the following Sound Reporter block:
Uses for Sounds
Sounds are used for many things, and many different types are used. Sounds effects may be used in games, and music can be used in the background or as part of an intro or outro.
Scratch 2.0 Sounds
|This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.|
Scratch 2.0 MIDI instruments had a fairly low sound quality because of Flash's small sound library, so the Scratch Team put their own sounds into the blocks instead. This remained in place in Scratch 3.0, due to it being developed in HTML5.