reactive sound
Problem it solves
You want the engine hum of a race car or the pitch of a metal detector to react dynamically to distance or speed.
What this block does
Maps a game value from a minimum and maximum range into a pitch frequency between 300Hz and 900Hz and plays the tone.
The block
Block ID: retro_reactive_sound
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| value | number | 50 | The current game variable value. |
| min | number | 0 | The lowest expected variable value. |
| max | number | 100 | The highest expected variable value. |
Example
Retro.reactiveSound(75, 0, 100)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.