play pitch sweep
Problem it solves
You need a rising sound for a teleport or a falling sound when an enemy falls into a pit.
What this block does
Plays a continuous tone that smoothly glides from a starting pitch to an ending pitch over a set duration.
The block
Block ID: retro_pitch_sweep
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| startPitch | number | 1200 | The beginning pitch frequency in Hertz. |
| endPitch | number | 200 | The ending pitch frequency in Hertz. |
| duration | number | 120 | Length of the sweep in milliseconds. |
Example
Retro.pitchSweep(1200, 200, 150)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.