5f7a8e5301
* update yotta defaults for 16kb devices * refactor deprecated blocks * updates for button events * update button events * update refference * update docs * update docs * update button event blocks * update docs * update block id
897 B
897 B
builtin Sound Effect
Get a sound expression string for a built-in sound effect.
music.builtinSoundEffect(soundExpression.giggle)
A collection of built-in sound effects are available as sound expressions. You choose one by selecting the name of the effect
Parameters
- soundExpression: A sound expression name. The available effects are:
giggle
happy
hello
mysterious
sad
slide
soaring
spring
twinkle
yawn
Returns
Example
Play the built-in sound effect for giggle
.
music.playSoundEffect(music.builtinSoundEffect(soundExpression.giggle), SoundExpressionPlayMode.UntilDone)