sounds
Get a sound string for a built-in sound.
music.sounds(Sounds.BaDing)
There are some built-in sounds you can play so you don’t have to compose everything. You can use these sounds to make actions with the Adafruit Circuit Playground Express seem more interesting.
Parameters
name
: the name of the built-in sound you want.
Returns
- a string that is the composed sound of a built-in sound.
Example
Set a variable for the wand sound
. Play the sound set in the variable.
let wandSound = music.sounds(Sounds.MagicWand);
music.playSoundUntilDone(wandSound)
See also
music