Nimbin[12]?SDL & Graphics / mapcreator / scripts/audio/audio_normalize.sh

mapcreator git · master

SDL3 2.5D game and engine using assets, with map editor

sdl3 c++ game engine map-editor cmake · first commit 2025-10-31 · last commit 2026-09-07 (1 month ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-spieleentwicklung/map_creator

C++ 99.3%
git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gz
scripts/audio/audio_normalize.sh 558 B · 30 lines raw
#!/bin/bash

set -euo pipefail

SRC_DIR="music"
DST_DIR="music_cleaned"

mkdir -p "$DST_DIR"

for f in "$SRC_DIR"/*.wav; do
    [ -e "$f" ] || continue
    name=$(basename "$f")

    ffmpeg -hide_banner -loglevel error \
        -i "$f" \
        -af "
            highpass=f=120,
            afftdn=nf=-20,
            agate=threshold=-40dB:ratio=2:attack=5:release=50,
            loudnorm=I=-18:TP=-1.5:LRA=7
        " \
        -ar 44100 \
        -ac 1 \
        -c:a pcm_s16le \
        "$DST_DIR/$name"

    echo "Processed: $name"
done

echo "Done."