comparison tools/cut_sounds.py @ 36:a464bd43b76c 1.0.0

clean documentation rewrite
author ark
date 2026-10-21 22:34 +0200
parents 85d23328a215
children
comparison
equal deleted inserted replaced
35:0d40f346059c 36:a464bd43b76c
2 cut the voice recordings in art/sound_sources/ into game sounds in art/sounds/. 2 cut the voice recordings in art/sound_sources/ into game sounds in art/sounds/.
3 3
4 python3 tools/cut_sounds.py [NAME ...] 4 python3 tools/cut_sounds.py [NAME ...]
5 5
6 without names, every recording is processed. a recording is named after its 6 without names, every recording is processed. a recording is named after its
7 game event (doc/sound.md). one with several variants, listed in VARIANTS, is 7 game event (doc/art.md, sound). one with several variants, listed in
8 split into that many sounds, written as NAME_1.mp3, NAME_2.mp3 and so on; any 8 VARIANTS, is split into that many sounds, written as NAME_1.mp3, NAME_2.mp3
9 other recording becomes one sound, NAME.mp3. 9 and so on; any other recording becomes one sound, NAME.mp3.
10 10
11 each sound is filtered against low rumble, trimmed to the voice with a short 11 each sound is filtered against low rumble, trimmed to the voice with a short
12 margin, faded in and out, brought to the same peak level and written as mono 12 margin, faded in and out, brought to the same peak level and written as mono
13 mp3. a recording is split at its longest pauses: as many as it takes to give 13 mp3. a recording is split at its longest pauses: as many as it takes to give
14 the listed number of variants. pauses inside one sound are left alone. 14 the listed number of variants. pauses inside one sound are left alone.