jitter pitch
Problem it solves
You want synthesized chiptune tones to have slight pitch fluctuations so sound effects do not sound static or robotic.
What this block does
Adds a random offset within a positive and negative range to a base pitch value.
The block
Block ID: retro_jitter_pitch
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| pitch | number | 600 | Base pitch frequency in Hertz. |
| amount | number | 15 | Maximum random deviation added or subtracted. |
Returns
number — The jittered pitch frequency.
Example
let newPitch = Retro.jitterPitch(440, 20) console.log(newPitch)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.