Sounds#
Note
Scratch only supports MP3 and WAV files. Other formats will (as of now) not raise a warning or error, and the project will refuse to load in Scratch.
You can add sounds to a sprite by specifying their file paths relative to the project directory.
Listing Multiple Sounds#
To add multiple sounds, separate their file paths with commas. Sounds will appear in the
order you list them in the sounds
statement.
Each sound's name is taken from the file name without its extension.
Renaming Sounds#
You can rename a sound using the as
keyword.
Using Wildcards (Globs)#
You can use wildcards to include multiple sounds, such as all .mp3
files in a
directory. Use the *
wildcard for this.
Sounds added this way are sorted alphabetically.