Player takes damage: buzzy drop
Sword Draw sound effect
sword-draw.wav · 940 ms · -15.2 LUFS · One-shot · CC0
sword-drawhitLoop
Take 1/4Unsheathe a sword: metallic scrape that rings out
DUR 940 msPEAK -3.4 dBFSLOUDNESS -15.2 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for sword-draw
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/hit/sword-draw_t1.wav"))
_sfx.add_stream(1, preload("res://audio/hit/sword-draw_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_sword_draw() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for sword-draw
using UnityEngine;
using UnityEngine.Audio;
public class SwordDrawTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign sword-draw_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 PlaySwordDraw()
{
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 sword-draw
preload() {
this.load.audio('sword-draw', 'audio/hit/sword-draw.wav');
}
playSwordDraw() {
const now = this.time.now;
if (now - (this._lastSwordDraw ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastSwordDraw = now;
this.sound.play('sword-draw', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for sword-draw
const ctx = new AudioContext();
let swordDrawBuf = null;
export async function loadSwordDraw() {
const res = await fetch('/audio/hit/sword-draw.wav');
swordDrawBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playSwordDraw(pitchSemitones = 0) {
if (!swordDrawBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = swordDrawBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import sword-draw.wav into Project -> Sounds, then run Audio -> Play "sword-draw" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | sword-draw |
|---|---|
| Category | Hits |
| Playback mode | One-shot |
| Duration | 0.940 s (940 ms) |
| Loudness (400 ms max) | -15.22 LUFS (target -15) |
| True peak / sample peak | -3.32 dBTP / -3.38 dBFS |
| Spectral centroid | 6425 Hz |
| Synthesis FX | Reverb |
| Export format | 44,100 Hz · 16-bit PCM Mono WAV |
| License | CC0 1.0 Public Domain |
| Take | Duration | Loudness | True peak | Audition |
|---|---|---|---|---|
| Take 1 | 940 ms | -15.22 LUFS | -3.32 dBTP | |
| Take 2 | 890 ms | -15.03 LUFS | -4.16 dBTP | |
| Take 3 | 950 ms | -14.80 LUFS | -4.12 dBTP | |
| Take 4 | 1140 ms | -14.94 LUFS | -3.51 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | noise | Broadband | 50/200/100 ms | BP 4000->6500Hz | 0.70 |
| L2 | metal | 2200 Hz | 50/200/100 ms | HP 4000Hz | 0.25 |
| L3 | modal | 1700 Hz | 1/0/700 ms | Bypass | 0.40 |
More hits sound effects
All hits SFXEnemy flinches: short high blip and smack
Enemy defeated: falling crushed tone
Blade hits armour
Shield block: dull metal clank
Critical hit: impact plus a bright ring