j'aurais besoin d'aide pour un script.
J'utilise Soundstretch en ligne de commande pour manipuler des fichiers wav.
Pour un seul fichier, ça va. Par ex pour baisser de 3 demi-tons:
Code: Select all
soundstretch input.wav output.wav -pitch=-3
Code: Select all
#!/bin/bash
pitch=-3
for f in *.wav; do
fname=$(basename $f)
ext="${fname##*.}"
base="${fname%.*}"
./soundstretch $f $base$pitch.$ext -pitch=$pitch
done
La page de soundstrecht
https://www.surina.net/soundtouch/soundstretch.html