Skip to content

Commit f0184e8

Browse files
committed
feat: preparar três finais de Saída da Caverna
1 parent 3f6a978 commit f0184e8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
PASTA="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
SOUNDFONT="${SOUNDFONT:-/usr/share/sounds/sf2/FluidR3_GM.sf2}"
6+
FLUIDSYNTH="${FLUIDSYNTH:-fluidsynth}"
7+
8+
python3 "$PASTA/finais.py"
9+
command -v "$FLUIDSYNTH" >/dev/null 2>&1 || { echo "FluidSynth não encontrado." >&2; exit 1; }
10+
[[ -f "$SOUNDFONT" ]] || { echo "SoundFont não encontrada: $SOUNDFONT" >&2; exit 1; }
11+
12+
for nome in luminoso suspenso sereno; do
13+
"$FLUIDSYNTH" -ni "$SOUNDFONT" "$PASTA/final_${nome}.mid" \
14+
-F "$PASTA/final_${nome}.wav" -r 44100 -g 0.65
15+
done
16+
python3 "$PASTA/montar_comparacao.py"

0 commit comments

Comments
 (0)