Heavy dungeon door slams
Button sound effect
button.wav · 110 ms · -20.5 LUFS · One-shot · CC0
buttonmechanicLoop
Take 1/4Press a mechanical floor button
DUR 110 msPEAK -1.5 dBFSLOUDNESS -20.5 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for button
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/mechanic/button_t1.wav"))
_sfx.add_stream(1, preload("res://audio/mechanic/button_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_button() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for button
using UnityEngine;
using UnityEngine.Audio;
public class ButtonTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign button_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 PlayButton()
{
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 button
preload() {
this.load.audio('button', 'audio/mechanic/button.wav');
}
playButton() {
const now = this.time.now;
if (now - (this._lastButton ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastButton = now;
this.sound.play('button', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for button
const ctx = new AudioContext();
let buttonBuf = null;
export async function loadButton() {
const res = await fetch('/audio/mechanic/button.wav');
buttonBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playButton(pitchSemitones = 0) {
if (!buttonBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = buttonBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import button.wav into Project -> Sounds, then run Audio -> Play "button" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | button |
|---|---|
| Category | Doors & mechanics |
| Playback mode | One-shot |
| Duration | 0.110 s (110 ms) |
| Loudness (400 ms max) | -20.46 LUFS (target -17) |
| True peak / sample peak | -1.51 dBTP / -1.51 dBFS |
| Spectral centroid | 801 Hz |
| Synthesis FX | Drive |
| 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 | -20.46 LUFS | -1.51 dBTP | |
| Take 2 | 100 ms | -20.62 LUFS | -1.51 dBTP | |
| Take 3 | 110 ms | -20.50 LUFS | -1.49 dBTP | |
| Take 4 | 100 ms | -19.67 LUFS | -1.50 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | noise | Broadband | 1/0/8 ms | BP 2000Hz | 0.40 |
| L2 | modal | 240 Hz | 1/0/120 ms | Bypass | 1.20 |
| L3 | pink | Broadband | 1/0/70 ms | LP 1200->300Hz | 1.00 |
| L4 | noise | Broadband | 1/0/6 ms | BP 2600Hz | 0.40 |
| L5 | modal | 900 Hz | 1/0/30 ms | Bypass | 0.30 |
More doors & mechanics sound effects
All doors & mechanics SFXLock clicks open
Door is locked: rattle
Treasure chest creaks open
Pull a lever: clunk
Gear or crank turning