diff options
author | B. Watson <urchlay@slackware.uk> | 2025-02-01 23:40:47 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-02-01 23:40:47 -0500 |
commit | 09da294e23b6e443e5b21bf1576781fb5b5fbde7 (patch) | |
tree | 10878f1b5ecc83f437d3fc01c03bff2f53c8f7e0 /ztunekey | |
parent | b55d75e94ca96e3fa371925096bdc8fba2d06b58 (diff) | |
download | misc-scripts-09da294e23b6e443e5b21bf1576781fb5b5fbde7.tar.gz |
ztunekey: save retuned files as flac
Diffstat (limited to 'ztunekey')
-rwxr-xr-x | ztunekey | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -66,6 +66,11 @@ P="$( perl -MPOSIX=round -e "printf '%+2.2f', round(100 * ($S - $TUNING / 100)) newfile="$( echo "$bn" | sed 's,\.[^.]*$,'$P'.wav,' )" mkdir -p ~/retuned -rubberband --pitch $P $tmpfile ~/retuned/"$newfile" | zenity --progress --no-cancel $ZOPT --icon-name=ztunekey --text "Retuning $bn by $P semitones." --pulsate --auto-close -audtool --playlist-addurl-to-new-playlist ~/retuned/"$newfile" +cd ~/retuned +rubberband --pitch $P $tmpfile "$newfile" | zenity --progress --no-cancel $ZOPT --icon-name=ztunekey --text "Retuning $bn by $P semitones." --pulsate --auto-close +flacfile="$( basename "$newfile" .wav )".flac +flac -f --delete-input-file -o "$flacfile" "$newfile" | zenity --progress --no-cancel $ZOPT --icon-name=ztunekey --text "Encoding $flacfile" --pulsate --auto-close +id3cp "$file" "$flacfile" +id3 -2 -t "%|%t||%_f|? (Retuned $P)" "$flacfile" +audtool --playlist-addurl-to-new-playlist ~/retuned/"$flacfile" |