Swap two tiles: quick two-way swish
Line Clear sound effect
line-clear.wav · 900 ms · -17.0 LUFS · One-shot · CC0
line-clearpuzzleLoop
Take 1/4Clear a row: zipper sweep and a chime
DUR 900 msPEAK -6.9 dBFSLOUDNESS -17.0 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for line-clear
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/puzzle/line-clear_t1.wav"))
_sfx.add_stream(1, preload("res://audio/puzzle/line-clear_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_line_clear() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for line-clear
using UnityEngine;
using UnityEngine.Audio;
public class LineClearTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign line-clear_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 PlayLineClear()
{
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 line-clear
preload() {
this.load.audio('line-clear', 'audio/puzzle/line-clear.wav');
}
playLineClear() {
const now = this.time.now;
if (now - (this._lastLineClear ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastLineClear = now;
this.sound.play('line-clear', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for line-clear
const ctx = new AudioContext();
let lineClearBuf = null;
export async function loadLineClear() {
const res = await fetch('/audio/puzzle/line-clear.wav');
lineClearBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playLineClear(pitchSemitones = 0) {
if (!lineClearBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = lineClearBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import line-clear.wav into Project -> Sounds, then run Audio -> Play "line-clear" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | line-clear |
|---|---|
| Category | Puzzle |
| Playback mode | One-shot |
| Duration | 0.900 s (900 ms) |
| Loudness (400 ms max) | -17.02 LUFS (target -17) |
| True peak / sample peak | -6.93 dBTP / -6.94 dBFS |
| Spectral centroid | 3151 Hz |
| Synthesis FX | Reverb, FM |
| Export format | 44,100 Hz · 16-bit PCM Mono WAV |
| License | CC0 1.0 Public Domain |
| Take | Duration | Loudness | True peak | Audition |
|---|---|---|---|---|
| Take 1 | 900 ms | -17.02 LUFS | -6.93 dBTP | |
| Take 2 | 890 ms | -16.84 LUFS | -6.70 dBTP | |
| Take 3 | 870 ms | -17.18 LUFS | -6.82 dBTP | |
| Take 4 | 840 ms | -16.98 LUFS | -7.07 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | square | 400 -> 1600 Hz | 2/120/80 ms | LP 5000Hz | 0.45 |
| L2 | noise | Broadband | 10/0/200 ms | BP 2000->7000Hz | 0.30 |
| L3 | sine | 2093 Hz | 2/0/450 ms | Bypass | 0.45 |
More puzzle sound effects
All puzzle SFXThree in a row: bright glassy pop
Cascade combo: each step a little higher (pitch it per chain)
Falling piece locks in place: tight thunk
Two items merge into a bigger one: whoomp and sparkle