Door is locked: rattle
Machine sound effect
machine.wav · 1090 ms · -16.7 LUFS · One-shot · CC0
machinemechanicLoop
Take 1/4Machine starts up and hums
DUR 1090 msPEAK -5.1 dBFSLOUDNESS -16.7 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for machine
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/mechanic/machine_t1.wav"))
_sfx.add_stream(1, preload("res://audio/mechanic/machine_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_machine() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for machine
using UnityEngine;
using UnityEngine.Audio;
public class MachineTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign machine_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 PlayMachine()
{
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 machine
preload() {
this.load.audio('machine', 'audio/mechanic/machine.wav');
}
playMachine() {
const now = this.time.now;
if (now - (this._lastMachine ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastMachine = now;
this.sound.play('machine', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for machine
const ctx = new AudioContext();
let machineBuf = null;
export async function loadMachine() {
const res = await fetch('/audio/mechanic/machine.wav');
machineBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playMachine(pitchSemitones = 0) {
if (!machineBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = machineBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import machine.wav into Project -> Sounds, then run Audio -> Play "machine" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | machine |
|---|---|
| Category | Doors & mechanics |
| Playback mode | One-shot |
| Duration | 1.090 s (1090 ms) |
| Loudness (400 ms max) | -16.67 LUFS (target -17) |
| True peak / sample peak | -5.13 dBTP / -5.14 dBFS |
| Spectral centroid | 741 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 | 1090 ms | -16.67 LUFS | -5.13 dBTP | |
| Take 2 | 1100 ms | -17.96 LUFS | -3.77 dBTP | |
| Take 3 | 1090 ms | -16.77 LUFS | -5.17 dBTP | |
| Take 4 | 1100 ms | -16.63 LUFS | -2.60 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | saw | 30 -> 110 Hz | 200/600/300 ms | LP 600Hz | 1.00 |
| L2 | square | 60 -> 220 Hz | 250/550/300 ms | BP 900Hz | 1.00 |
| L3 | sine | 240 -> 880 Hz | 300/500/300 ms | Bypass | 0.20 |
| L4 | crunch | 400 -> 1500 Hz | 300/500/300 ms | LP 5000Hz / HP 1500Hz | 0.08 |
More doors & mechanics sound effects
All doors & mechanics SFXTreasure chest creaks open
Pull a lever: clunk
Press a mechanical floor button
Gear or crank turning
Creaky wooden door opening