summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-02-21 22:07:02 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-02-21 22:07:02 +0100
commit2b728849631db9edb2bb213cc5d1376a1e2701b3 (patch)
treeff342dbaaebaf2403a77e26b9e0a5ba08873b6f1
parent9dfda6c3aa70540301123353349d181b5aa57e47 (diff)
Add target to render guide track.
-rw-r--r--targets.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/targets.mk b/targets.mk
index f566a21..e0c232c 100644
--- a/targets.mk
+++ b/targets.mk
@@ -20,11 +20,21 @@ parts/%.pdf: parts/%.ly music/%.ly
%.wav: %.midi
fluidsynth -r 48000 -F $@ -l -R no -i -n -a alsa $(SOUNDFONT) $<
+%-klick-mono.wav: %.tempo
+ klick -W $@ -f $<
+
+%-klick.wav: %-klick-mono.wav
+ sox $< $@ channels 2
+
+%-guide.wav: %-klick.wav %.wav
+ sox --combine mix $*-klick.wav -v 0.25 $*.wav $@
+
%.ogg: %.wav
oggenc $<
wav: $(NAME).wav
ogg: $(NAME).ogg
+guide: $(NAME)-guide.wav
upload-ogg: ogg
scp $(NAME).ogg elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).ogg