play sound bank variation
Problem it solves
You want to play random sounds from a list while also introducing subtle pitch shifts each time.
What this block does
Picks a random sound from a list and synthesizes a tone with pitch jitter applied.
The block
Block ID: retro_sound_bank_var
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sounds | Retro.Sounds[] | [Retro.Sounds.EnemyHit] | A list of sound effects to choose from. |
| variation | number | 20 | Maximum pitch jitter offset applied to the sound. |
Example
Retro.playSoundBankVariation([Retro.Sounds.EnemyHit, Retro.Sounds.BreakBlock], 30)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.