The Music.melody function can do that: https://arcade.makecode.com/developer/sound
Have a look at the old thread Sound effect demo (no extensions) for examples - various of those sound effects ended up being added to Arcade.
The Music.melody function can do that: https://arcade.makecode.com/developer/sound
Have a look at the old thread Sound effect demo (no extensions) for examples - various of those sound effects ended up being added to Arcade.