white noise: change tempo earlier.
[music/pretentious.git] / rules.mk
1 $(NAME): $(NAME)/$(NAME)$(GUIDE_SUFFIX).wav
2
3 $(NAME)/$(NAME)$(GUIDE_SUFFIX).wav: $(NAME)/$(NAME)$(GUIDE_SUFFIX).midi
4 fluidsynth -r 48000 -F $@ -l -R no -i -n -a alsa $(SOUNDFONT) $<
5
6 $(NAME)/parts/%.pdf: $(NAME)/parts/%.ly $(NAME)/music/%.ly
7 $(LILY_CMD) --output=$(dir $@) $<
8
9 $(NAME)/$(NAME).pdf: $(NAME)/$(NAME).ly $(wildcard $(NAME)/music/*.ly)
10 $(LILY_CMD) --output=$(dir $@) $<
11
12 $(NAME)/$(NAME)$(GUIDE_SUFFIX).midi: $(NAME)/$(NAME).ly $(wildcard $(NAME)/music/*.ly)
13 $(LILY_CMD) --output=$(dir $@) $< && mv $(subst .ly,.midi,$<) $@
14
15 $(NAME)/$(NAME)-klick-mono.wav: $(NAME)/$(NAME).tempo
16 klick -W $@ -f $<
17
18 $(NAME)/$(NAME)-klick.wav: $(NAME)/$(NAME)-klick-mono.wav
19 sox $< $@ channels 2
20
21 $(NAME)/guide$(GUIDE_SUFFIX).wav: $(NAME)/$(NAME)-klick.wav $(NAME)/$(NAME)$(GUIDE_SUFFIX).wav
22 sox --combine mix $< -v 0.25 $(word 2,$^) $@
23
24 $(NAME)/$(NAME)$(GUIDE_SUFFIX).ogg: $(NAME)/$(NAME)$(GUIDE_SUFFIX).wav
25 oggenc $<
26
27 $(NAME)/upload-ogg: $(NAME)/$(NAME)$(GUIDE_SUFFIX).ogg
28 scp $< elephly.net:~/elephly.net/secret/band/$<
29
30 $(NAME)/upload-wav: $(NAME)/$(NAME)$(GUIDE_SUFFIX).wav
31 scp $< elephly.net:~/elephly.net/secret/band/$<