Skip to main content

Sound

Get sounds​

Assets → 🔊 Free sounds opens 27 game sounds by Kenney (CC0, free for any game), grouped as Rewards (Coin, PowerUp, Bonus, Win, Lose), Actions (Jump, Laser, Zap…), Hits (Explosion, Punch, GlassBreak…), menu clicks and engine hums.

  • Tap ▶ to listen.
  • + Add puts it in your project; Use means it is already there.
sounds library

Make a sound​

Free sounds → 🎛 Make a sound (or Files → + New → Sound) makes a retro sound effect, the kind 8-bit games use, right in the editor.

  1. Pick a preset: Coin, Jump, Laser, Explosion, Hit, Power-up, Blip, Click, Win or Lose. It plays at once.
  2. 🎲 makes another take on the same preset. Tap it until one sounds right.
  3. Change it if you like (it plays again each time you let go of a slider).
  4. Give it a name and tap Save. It is in your project's sounds, ready for Play sound.
sound maker
SettingWhat it does
Square / Saw / Triangle / Sine / NoiseThe tone: square is classic chiptune, saw is buzzy, triangle and sine are soft, noise hisses (explosions, hits, wind).
PitchHow high it starts. For noise, how rough: low rumbles, high hisses.
Slide toThe pitch it ends on. Higher rises (a jump), lower falls (a laser, a game over). The same as Pitch stays on one note.
LengthHow long it stays at full volume.
FadeHow long it takes to fade out after that.
WobbleA vibrato: the pitch wobbles up and down.
VolumeHow loud it is.

The picture beside ▶ shows the sound, with its length in seconds.

The sound maker keeps its settings with the sound. To change one later, tap it in Files and choose Edit sound. Save then changes it in place, so every Play sound and Sound component using it plays the new one. Sounds Claude makes open the same way.

Make a beat​

Free sounds → 🥁 Make a beat (or Files → + New → Beat) opens the beat maker, laid out like FL Studio: a Rack of channels with step pads, a piano roll for tunes, a Playlist that puts patterns together into a song, and a Mixer. Everything plays while you change it, so you hear each change on the next pass.

The rack: one row per sound, 16 steps a bar
The rack: one row per sound, 16 steps a bar
The piano roll: a bass line
The piano roll: a bass line

The rack​

A new beat starts with a kick on every beat, claps on 2 and 4, hats in between, an empty Snare row and a Bass line.

  • Tap a step to turn it on or off. A bar is 16 steps (16th notes), in groups of four, one group per beat.
  • ▶ plays the pattern over and over; the step that is sounding lights up.
  • The dot at the start of a row mutes it. Hold the dot (or right-click it) to solo the row: only it plays, so you can hear it alone. Hold it again to hear everything. Solo is only for listening: it isn't saved with the beat.
  • + Channel adds a row: a drum (Kick, Snare, Clap, Hat, Open hat, Tom, Rim, Crash), one from the second kit (🪘 808, Punch kick, Tight snare, Snap, Shaker, Cowbell, Conga, Ride), a synth (Bass, Lead, Pluck, Pad, Keys, Chip), a sound from your project, or a free sound.
  • Tap a row's name for its menu: Solo, Piano roll, Step pads, Sound… (change what it plays), Instrument…, Mixer, Rename, Duplicate, Clear and Delete.

Velocity (above the rows) shows how hard each step hits, as a bar. Drag up and down on a row's steps to make them softer or louder: soft hats between loud ones give a beat its groove. A drag changes the steps that are on (and the first one you press, to turn on a single step); at the very bottom a step goes off. Tap Velocity again for the normal pads, where a softer step shows paler.

beat velocity
SettingWhat it does
BPMThe tempo: beats per minute (− and + change it by one).
SwingMakes every second step a little late, for a shuffle or hip-hop feel.
🔁On: saved as a seamless loop (what rings on past the end comes in at the start, so it repeats without a gap). Off: saved once, ringing out at the end (a jingle).
↶ ↷Undo and redo inside the beat maker.

Instruments​

Instrument… in a row's menu shapes its sound. You hear it each time you let go of a slider.

SynthsWhat it does
AttackHow long a note takes to get loud: short for a punch, long for a soft swell.
DecayHow long it then takes to fall to the sustain level.
SustainHow loud it stays while the note is held (0 = it fades away even when held, like a pluck).
ReleaseHow long it rings on after the note ends.
ToneDark (low) to bright (high).
TuneShifts every note up or down, in semitones (12 = an octave).
WaveThe oscillator: the synth's own voice (its name), or a plain Saw, Square, Tri (triangle) or Sine.
OctavePlays every note one or two octaves higher or lower.
UnisonPlays each note with up to 5 voices at once, spread apart by Detune: thick and wide. A saw with 5 voices and some detune is the "supersaw" of trance and EDM.
GlideEach note slides from the pitch of the one before, taking this long: the rubbery 303 and 808 bass lines. Off jumps straight there.
LFOA slow wobble. To picks what it moves: the Pitch (vibrato), the Filter (a wobble bass, at a Rate of 2-4 Hz) or the Volume (tremolo). Depth is how much; Off turns it off.

Drums and sounds have Tune, Tone, Attack and Length (how long it plays: Full, or cut short for a tight, dry hit).

beat instrument

Patterns​

A pattern is a bar or a few of every channel's steps and notes: a beat, a fill, a chorus. The bar under the tabs shows the pattern you are editing.

  • The pattern menu switches patterns. + makes a new, empty one.
  • ⋯ renames, duplicates, clears or deletes it.
  • 1 bar / 2 bars / 4 bars is the pattern's length (16, 32 or 64 steps).

The channels are the same in every pattern; each pattern has its own steps and notes for them. To make a variation, duplicate a pattern and change the copy.

The piano roll​

Piano roll in a row's menu opens its notes in the current pattern (a row in the piano roll shows them small in place of its steps: tap them to open it again). Up is higher, and each column is a step.

  • Tap an empty spot to put a note in. Drag while you put it in to make it longer.
  • Drag a note to move it (higher, lower, earlier, later), or drag its end to make it longer or shorter.
  • Tap a note to take it out.
  • 1/16 … 1 is how long a new note is (a step, an eighth, a quarter, a half or a whole bar); it follows the last note you stretch.
  • Tap a key on the left to hear that pitch.
  • Two fingers scroll.
  • ← Rack goes back.

A drum or sound in the piano roll plays higher or lower with each note, so a single sound can become a tune. The other channels' notes show faintly behind, so a melody can follow the bass.

✏ Draw is the tool above. ⬚ Select picks notes to change together:

  • Tap a note to select it, or drag a box around some. Drag a selected note to move them all.
  • All selects every note; Copy and Paste copy them to the same steps in another pattern or channel (or another beat); ⧉ repeats them right after themselves; ↑ ↓ move them up or down; 🗑 deletes them.

♬ Chord (in Draw) puts a whole chord in with each tap, on the note you tap: Triad (scale) and 7th (scale) build it from the scale's notes (so in A minor, tapping A gives A minor and tapping C gives C major), or pick a fixed Major, Minor, Diminished, Sus2, Sus4, 7, Maj7, Min7, Power (root, fifth, octave) or Octave. Dragging stretches the whole chord. Single notes turns it off.

⋯ changes the selected notes (in Select), or all of the channel's notes in the pattern:

ToolWhat it does
ArpeggiatePlays each chord one note after another through its length: Up, Down or Up and down, at 1/16, 1/8 or 1/4. Single notes stay.
QuantizeMoves notes to the nearest 1/8, 1/4, 1/2 or whole bar.
HumanizeVaries each note's velocity a little, as a player would.
LegatoHolds each note until the next one starts.

Vel, along the bottom, has a bar for each note: drag up and down on it to make notes softer or louder (in Select, only the selected ones).

Scale picks a key and scale (Major, Minor, Dorian, Pentatonic, Minor pentatonic, Blues). The notes outside it are shaded and the key's note is marked, and new and moved notes land on the scale, so every note fits. ↑ ↓ then move along the scale. Chromatic turns it off.

The playlist​

The Playlist is the song: patterns placed in time, one bar per column, like FL Studio's playlist.

  • Tap an empty spot to put the current pattern there. Pick another pattern in the pattern menu to place that one.
  • Drag a clip to move it to another bar or track.
  • Drag a clip's right edge to make it longer or shorter, in quarter bars. Longer repeats the pattern (lines mark each repeat), so one 1-bar drum pattern can run under a whole verse; shorter cuts it off.
  • Tap a clip for Edit pattern (opens it in the rack), Duplicate (a copy right after it), Make unique (a copy only this clip plays, to change it alone), Pattern length (after a resize) and Remove.
  • Clips on different tracks play together: drums on one track and a melody pattern on another, say.
  • ▶ in the playlist plays the song; in the rack and piano roll it plays the current pattern.

The ruler along the top (the bar numbers):

  • Tap a bar number to play the song from that bar. The ▲ marks where ▶ starts from.
  • Drag along the ruler to loop those bars: they play over and over, so you can work on a part. 🔁 2–3 ✕ above shows the loop; tap it to play the whole song again. Like solo, the loop is only for listening; Done saves the whole song.

↻ (when the beat loops) picks the bar the loop starts again from: a song with an intro. Pick Bar 3 and bars 1-2 play once, then bar 3 to the end repeats; a dashed green line marks it. Bar 1 loops all of it. The game plays it the same way.

⬚ Select picks clips: tap them, or drag a box across empty space. Drag one to move them all together. All picks every clip, ⧉ copies them right after themselves (a 4-bar section becomes 8 bars), 🗑 removes them. ✏ Draw goes back to placing clips.

With an empty playlist, the song is the current pattern.

beat playlist

The mixer​

The Mixer has a strip for each channel and one for the whole song (Master). Changes are heard at once.

ChannelWhat it does
VolumeHow loud the channel is.
PanLeft or right.
FilterCuts the highs above this (muffled, far away, underwater); Open lets everything through.
ResonanceMakes the filter ring at its cutoff: the classic squelchy synth sound.
ReverbHow much of the channel goes into the shared reverb (a room around it).
DelayHow much goes into the shared echo.
DriveDistortion: warm and fuzzy at a little, crunchy and loud at a lot. Good on bass and leads.
PumpSidechain: the channel ducks every time a kick (Kick, Punch kick or 808) hits and swells back up, the pumping sound of house and EDM. Try it on pads and bass.

M and S by a channel's name mute and solo it.

MasterWhat it does
VolumeThe whole song.
RoomThe reverb's size, from a small room to a long hall.
DelayThe echo's timing, in step with the tempo: 1/8, 3/16 (dotted eighth) or 1/4.
FeedbackHow many times the echo repeats.
beat mixer

Layers (adaptive music)​

A beat can be saved in layers that the game turns up and down while it plays, all in time: calm music while the player explores, the drums coming in when an enemy sees them, a danger melody on top in a fight. It's the vertical layering of FMOD and Wwise, made in the beat maker.

  • 🧅 on a channel's mixer card, or Layer in its menu in the rack, puts it in a layer: one there is, or New layer… with a name (Drums, Danger…). None takes it out.
  • Channels in no layer always play.
  • The chips at the top of the Mixer turn each layer off and on, to hear what the game will do. Like solo, that's only for listening: the beat saves with every layer.

Done saves the beat as usual, and each layer as well (they don't show in Files: they go with the beat). The layers together sound exactly like the beat; each one takes as much space as the beat again.

In the game, play the beat with Play music and fade layers with Set music layer (see Music).

beat layers

Saving​

Tap Done and name it: the song (or the pattern, with an empty playlist) becomes a sound in your project. Play it with Play sound, with Loop on for background music. A bar at 120 BPM is 2 seconds; saved as OGG (see Sound files) an 8-bar song is about 100-300 KB.

To change it later, tap it in Files and choose Edit beat. Done changes the sound in place, so everything using it plays the new one.

With Claude​

Through the Claude link, Claude can make beats and songs in the beat maker, and read and change the ones you made. Each is a normal beat: open it with Edit beat and carry on by hand.

  • Make a fast chiptune loop for the boss fight, 160 BPM.
  • Make a calm 8-bar song for the menu in C major: soft keys, a bass line, and a drum fill at the end.
  • Make the hats in my Groove beat softer and add a clap on 2 and 4.
  • Make a house loop at 124 BPM: punch kick, an 808 bass line with glide, and supersaw chords pumping to the kick.
  • Make boss music at 140 BPM with a 2-bar intro that plays once, then loops.
  • Make adaptive music for the forest level: a calm base, a Drums layer and a Danger layer, and bring the drums in when an enemy is near the player.

Claude can't hear: listen with ▶ and say what to change.

Make music​

Free sounds → 🎹 Make music (or Files → + New → Music) opens a music editor: BeepBox, a free song maker for chiptune-style game music, built into the editor (it works offline).

  • The grid: tap to put a note in, tap it again to take it out, drag one to make it longer. Up is higher.
  • The numbers below it: the song from left to right, one row per channel (the top rows are tunes, the bottom one drums). Each number is a pattern: tap a box to edit that part of the song, and give two boxes the same number to repeat a pattern.
  • Play listens to the song from the start.
  • Instrument Settings choose each channel's sound (Type: piano, synth, guitar, drums…) and Customize Instrument changes it further.
  • Song Settings set the Tempo (speed), Key, Scale and Rhythm.

Tap Done and name it: the song becomes a sound in your project, played once from start to end. It ends at the last bar with notes in it (a new song is 16 bars long, mostly empty, and the empty end is left out). Play it with Play sound and Loop on for background music.

music maker

To change it later, tap it in Files and choose Edit music. Done changes the sound in place, so everything using it plays the new one.

Keep songs short

A song is saved as a sound file (OGG: about 200 KB per 30 seconds; WAV: about 2 MB). A short loop with Loop on sounds the same in a game as a long song and keeps the game small. The song's length is in Edit → Change Song Length.

Your own sounds: Assets → ⬆ Import an MP3, OGG, WAV or M4A. Preview any sound from its menu in the Assets tab (Preview sound); tap the player bar at the bottom to stop it.

Play a sound from an event​

The simplest way: Add action → Audio → Play sound, choose the sound, a volume and whether it loops. It can also play through a mixer group, at another pitch (1 = normal, 1.2 = a little higher and faster; a small random pitch like random(0.9, 1.1) keeps repeated sounds from sounding the same) and fade in. Stop sound stops one sound or all of them, with an optional fade out. Is sound playing checks whether one is still going.

Example — a coin sound: WHEN Player collides with Coin → Audio: Play sound Coin.

The Sound component​

For a sound that belongs to an object — an engine hum on a car, a waterfall, background music — add the Sound component:

FieldWhat it does
Sound fileThe sound asset (or pick a free one).
Play on startStarts when the scene starts.
LoopRepeats forever.
Volume0–1.
Pitch1 = normal; 2 = an octave up and twice as fast.
Mixer groupThe group of the audio mixer it plays through (Master = none).
3D soundQuieter when the object is far from the camera, and from the side it is on.
Full volume within(3D) Closer than this, it plays at full volume.
Heard up to(3D) How far it carries.
Fade with distance(3D) Natural fades like real sound and never quite goes silent; Linear reaches silence at Heard up to.

Actions Play its sound / Stop its sound (with a fade out) control it.

card audio
Sound on phones

Browsers only allow sound after the player touches the screen. Exported games show a Tap to play screen that unlocks sound; in the editor the ▶ Play tap does it.

Music​

Play music plays one track at a time: starting another cross-fades from the one playing over the time you give (1 s by default), and asking for the track that is already playing only changes its volume. Stop music fades it out; Is music playing checks it. Use it for level music, a menu theme, or a boss fight that takes over.

Set music layer fades one layer of a beat to a volume (0 = off, 1 = full) over the time you give, while the music goes on in time. A layer set before the music starts starts that way: set Danger to 0 just before Play music, and the music starts calm. A layer keeps its volume until you change it, from track to track.

EventSet music layer
On start of sceneDanger to 0 (fade 0), then Play music Forest
Enemy is near the player (distance under 10)Danger to 1 (fade 2)
ElseDanger to 0 (fade 3)

In time with the music​

A beat knows its tempo, so the game can keep to its beat. For other music (imported, or from the music editor) set it in Files → Tempo (in beats a minute; 4 beats to a bar).

  • Play music with In time with the music set to On the next bar (or beat) starts the new track there, and the one playing fades out from there: going from explore to fight music lands on the beat instead of cutting in mid-note. Use tracks at the same tempo.
  • Play sound has the same choice: a sting or jingle (an enemy spotted, a level up) waits for the next beat or bar so it fits the music.
  • On music beat is true once on each beat of the music (or every 2nd, 4th… from the beat you give), and On music bar once on each bar: lights that pulse, enemies that hop or shoot on the beat, a rhythm game.
  • musicbeat() counts the beats since the music started (0, 1, 2 …; -1 with no music that has a tempo), musicbar() the bars, musictime() the seconds, musicbpm() the tempo. musicbeat() % 4 is the beat in the bar (0-3).
EventActions
On music beatLights: Set scale to 1.2, then Tween scale to 1 in 0.2 s
Enemy sees the player, Trigger once while truePlay music Fight (on the next bar)
On music beat (every 2)Turret spawns Bullet

When the music changes on a bar, the beats count from 0 again for the new track (the old one keeps counting until then).

Sound files​

Sounds you make (the sound maker, the beat maker, the music editor and Claude) are saved as OGG, compressed about 10 to 20 times smaller than a WAV and sounding the same in a game, as the free sounds are. Loops stay seamless.

Project settings → Audio mixer → Saved sounds picks how:

Saved soundsWhat it gives
OGG, smallerThe smallest files; fine for effects and busy music.
OGG, balancedThe default: small, and clear for music.
OGG, bestAbout twice the size of balanced, for music with quiet, detailed parts.
WAVNot compressed (about 10 times bigger).

Sounds already in the project (imported WAVs, or made before) stay as they are:

  • Compress… in a sound's menu in Files makes that one OGG, at the quality you pick. Everything using it plays the new file.
  • 🗜 Compress all sounds under Saved sounds does every sound that isn't OGG yet, at the project's quality. It shows how many there are and their size, and goes away when there are none.

Compressing keeps a made sound's settings: Edit beat, Edit music and Edit sound still open it, and saving there makes it again.

The audio mixer​

Project settings → Audio mixer holds the game's groups, like Unity's Audio Mixer: for example Music, SFX and Voices. A sound plays through the group you pick (in Play sound, Play music or the Sound component); a group sets the volume of everything in it.

Group settingWhat it does
NameWhat sounds and events call it. Renaming it renames it on every Sound component.
OnOff mutes the group.
Volume0–1, under the master volume.
Low-passMuffles the group (in Hz; 0 = off). 500–800 sounds like being under water or behind a wall.

While playing:

BlockDoes
Set group volumeA group's volume, faded over the time you give. Master is the master volume. An options menu's music slider is one of these.
Mute groupSilence a group, or bring it back.
Set group low-passMuffle a group (fade it in when the player dives, out when they come up).
Pause all sounds / Resume all soundsFor a pause menu: everything stops where it is and carries on later.

In scripts​

const hit = audio.play('Punch', { group: 'SFX', pitch: random(0.9, 1.1) })
const engine = audio.play('Engine', { loop: true, fadeIn: 0.5 })
engine.pitch = 0.8 + speed / 20 // change it while it plays
engine.stop(1) // fade out over 1 s

audio.playMusic('Boss', { fade: 2 }) // cross-fade from the level music
audio.setMusicLayer('Danger', 1, 2) // a layer of the music in, over 2 s
audio.playMusic('Fight', { sync: 'bar' }) // on the next bar
audio.play('Sting', { sync: 'beat' }) // on the next beat
if (audio.musicBeat % 4 === 0) { } // the first beat of a bar
audio.setGroupVolume('Music', 0.3, 1) // duck the music for a cutscene
audio.setGroupLowpass('SFX', 600, 0.3) // under water
audio.pauseAll()

audio.play() returns the sound: volume, pitch, playing, stop(fadeOut) and fadeTo(volume, seconds). Also audio.stop(tag, fadeOut), audio.isPlaying(tag), audio.music, audio.stopMusic(fade), audio.getMusicLayer(layer), audio.musicBeat, audio.musicBar, audio.musicTime, audio.musicBpm, audio.getGroupVolume(group), audio.setGroupMuted(group, muted), audio.resumeAll(), and entity.stopSound(fadeOut).