MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Retro FX

Add juicy 8-bit sound synthesizers, screen shakes, particle explosions, camera effects, and retro text displays to your games.

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

play pitch sweep start $startPitch end $endPitch duration $duration ms block

Parameters

NameTypeDefaultMeaning
startPitchnumber1200The beginning pitch frequency in Hertz.
endPitchnumber200The ending pitch frequency in Hertz.
durationnumber120Length 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.