Three in a row: bright glassy pop
Swap sound effect
swap.wav · 110 ms · -17.3 LUFS · One-shot · CC0
swappuzzleLoop
Take 1/4Swap two tiles: quick two-way swish
DUR 110 msPEAK -1.5 dBFSLOUDNESS -17.3 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for swap
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/puzzle/swap_t1.wav"))
_sfx.add_stream(1, preload("res://audio/puzzle/swap_t2.wav"))
_sfx.random_pitch = 1.05
_sfx.random_volume_offset_db = 1.2
_player.bus = "SFX"
_player.max_polyphony = 4
_player.stream = _sfx
add_child(_player)
func play_swap() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for swap
using UnityEngine;
using UnityEngine.Audio;
public class SwapTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign swap_t1..t4.wav
[SerializeField] private AudioMixerGroup mixerGroup; // Route to SFX
private AudioSource[] _pool;
private int _cursor;
private void Awake()
{
_pool = new AudioSource[4];
for (int i = 0; i < _pool.Length; i++)
{
_pool[i] = gameObject.AddComponent<AudioSource>();
_pool[i].playOnAwake = false;
_pool[i].outputAudioMixerGroup = mixerGroup;
}
}
public void PlaySwap()
{
if (takes == null || takes.Length == 0) return;
AudioSource src = _pool[_cursor++ % _pool.Length];
src.pitch = Random.Range(0.96f, 1.04f);
src.PlayOneShot(takes[Random.Range(0, takes.Length)], 0.9f);
}
}// Phaser 3 (JS) — Rate-limited one-shot with detune variance for swap
preload() {
this.load.audio('swap', 'audio/puzzle/swap.wav');
}
playSwap() {
const now = this.time.now;
if (now - (this._lastSwap ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastSwap = now;
this.sound.play('swap', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for swap
const ctx = new AudioContext();
let swapBuf = null;
export async function loadSwap() {
const res = await fetch('/audio/puzzle/swap.wav');
swapBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playSwap(pitchSemitones = 0) {
if (!swapBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = swapBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import swap.wav into Project -> Sounds, then run Audio -> Play "swap" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | swap |
|---|---|
| Category | Puzzle |
| Playback mode | One-shot |
| Duration | 0.110 s (110 ms) |
| Loudness (400 ms max) | -17.26 LUFS (target -17) |
| True peak / sample peak | -1.49 dBTP / -1.51 dBFS |
| Spectral centroid | 3588 Hz |
| Synthesis FX | Dry signal |
| Export format | 44,100 Hz · 16-bit PCM Mono WAV |
| License | CC0 1.0 Public Domain |
| Take | Duration | Loudness | True peak | Audition |
|---|---|---|---|---|
| Take 1 | 110 ms | -17.26 LUFS | -1.49 dBTP | |
| Take 2 | 110 ms | -17.24 LUFS | -1.47 dBTP | |
| Take 3 | 110 ms | -17.19 LUFS | -1.51 dBTP | |
| Take 4 | 110 ms | -17.27 LUFS | -1.47 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | sine | 600 -> 900 Hz | 2/0/60 ms | Bypass | 0.50 |
| L2 | sine | 900 -> 600 Hz | 2/0/60 ms | Bypass | 0.50 |
| L3 | noise | Broadband | 30/0/60 ms | BP 2500->4000Hz | 0.25 |
More puzzle sound effects
All puzzle SFXCascade combo: each step a little higher (pitch it per chain)
Clear a row: zipper sweep and a chime
Falling piece locks in place: tight thunk
Two items merge into a bigger one: whoomp and sparkle