cbe38a628d30ddc183cfe78890813cb12dccdf20
[Faustine.git] / examples / fft / Makefile
1 SRC = fft.dsp
2 BASENAME = output
3 FORMAT = csv
4 CSVOUT = $(BASENAME)1.$(FORMAT)
5 IMGOUT = $(SRC:.dsp=.png)
6
7 SINSUM = sinsum.dsp
8 WAV_BASENAME = $(SINSUM:.dsp=)
9 WAV_FORMAT = wav
10 WAVIN = $(WAV_BASENAME)1.$(WAV_FORMAT)
11
12 INPUT1 = sin_1378Hz_0.005_ampli_128samples.wav
13 INPUT2 = sin_2067Hz_0.005_ampli_128samples.wav
14 INPUT3 = sin_16536Hz_0.005_ampli_128samples.wav
15 INPUT4 = sin_22000Hz_0.005_ampli_128samples.wav
16
17
18 all: $(IMGOUT)
19
20 $(IMGOUT): $(CSVOUT)
21 octave -qf img_write.m
22
23 $(CSVOUT): $(SRC) $(WAVIN)
24 faustine -f $(SRC) -i $(WAVIN) --oformat $(FORMAT) --obasename $(BASENAME)
25
26 $(WAVIN): $(SINS) $(INPUT1) $(INPUT2) $(INPUT3) $(INPUT4)
27 faustine -f $(SINSUM) -i $(INPUT1) -i $(INPUT2) -i $(INPUT3) -i $(INPUT4) --oformat $(WAV_FORMAT) --obasename $(WAV_BASENAME)
28
29 clean::
30 rm -f gmon.out $(CSVOUT) $(IMGOUT) $(WAVIN) *~
31
32
33
34
35
36
37
38
39
40
41
42