Cast a line: rod whip, reel whirr and a plop
Dig sound effect
dig.wav · 240 ms · -16.9 LUFS · One-shot · CC0
digfarmLoop
Take 1/4Shovel into soil
DUR 240 msPEAK -1.5 dBFSLOUDNESS -16.9 LUFSPCM 44.1 kHz / 16-bit
Take
Engine integration code
Bus: SFX# Godot 4 (GDScript) — Multi-take AudioStreamRandomizer for dig
extends Node
var _sfx := AudioStreamRandomizer.new()
@onready var _player := AudioStreamPlayer.new()
func _ready() -> void:
_sfx.add_stream(0, preload("res://audio/farm/dig_t1.wav"))
_sfx.add_stream(1, preload("res://audio/farm/dig_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_dig() -> void:
_player.play()// Unity (C#) — Pooled pitch-jittered one-shot playback for dig
using UnityEngine;
using UnityEngine.Audio;
public class DigTrigger : MonoBehaviour
{
[SerializeField] private AudioClip[] takes; // Assign dig_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 PlayDig()
{
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 dig
preload() {
this.load.audio('dig', 'audio/farm/dig.wav');
}
playDig() {
const now = this.time.now;
if (now - (this._lastDig ?? 0) < 35) return; // 35ms anti-stack cooldown
this._lastDig = now;
this.sound.play('dig', {
volume: 0.85,
detune: Phaser.Math.Between(-50, 50), // cents
});
}// Web Audio API (ES Module) — Zero-dependency playback for dig
const ctx = new AudioContext();
let digBuf = null;
export async function loadDig() {
const res = await fetch('/audio/farm/dig.wav');
digBuf = await ctx.decodeAudioData(await res.arrayBuffer());
}
export function playDig(pitchSemitones = 0) {
if (!digBuf) return;
if (ctx.state === 'suspended') ctx.resume();
const src = ctx.createBufferSource();
src.buffer = digBuf;
src.loop = false;
src.playbackRate.value = Math.pow(2, pitchSemitones / 12);
src.connect(ctx.destination);
src.start();
return src;
}
// Construct 3: Import dig.wav into Project -> Sounds, then run Audio -> Play "dig" (not looping) on tag "sfx".Acoustic specs & synthesis layers
| Identifier | dig |
|---|---|
| Category | Farm & crafting |
| Playback mode | One-shot |
| Duration | 0.240 s (240 ms) |
| Loudness (400 ms max) | -16.86 LUFS (target -17) |
| True peak / sample peak | -1.46 dBTP / -1.51 dBFS |
| Spectral centroid | 4626 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 | 240 ms | -16.86 LUFS | -1.46 dBTP | |
| Take 2 | 240 ms | -18.71 LUFS | -1.44 dBTP | |
| Take 3 | 240 ms | -16.37 LUFS | -1.37 dBTP | |
| Take 4 | 240 ms | -16.77 LUFS | -1.34 dBTP |
| Layer | Wave | Pitch / sweep | Env (A/H/D) | Filter | Gain |
|---|---|---|---|---|---|
| L1 | noise | Broadband | 10/0/180 ms | BP 1500->600Hz | 1.00 |
| L2 | brown | Broadband | 5/0/200 ms | LP 400Hz | 0.70 |
| L3 | pink | Broadband | 1/0/20 ms | BP 2000Hz | 0.30 |
| L4 | pink | Broadband | 1/0/20 ms | BP 2000Hz | 0.30 |
| L5 | pink | Broadband | 1/0/20 ms | BP 2000Hz | 0.30 |
More farm & crafting sound effects
All farm & crafting SFXBobber dips: something is biting!
Axe bites into a log
Tree creaks, topples and crashes down
Pickaxe strikes rock
Pop a seed into the ground: soft pat and sprout chime