play custom sound
Problem it solves
You want to play a preset retro sound but need explicit control over its output volume and pitch frequency.
What this block does
Plays a retro sound preset alongside a custom chiptune tone synthesized at your chosen volume and pitch.
The block
Block ID: retro_custom_sound
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sound | Retro.Sounds | Retro.Sounds.LevelUp | The base retro sound preset. |
| volume | number | 120 | The volume level (0 to 255). |
| pitch | number | 600 | The audio pitch frequency in Hertz. |
Example
Retro.playCustomSound(Retro.Sounds.LevelUp, 180, 880)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.