projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New version name (Version 1.0) for access from the FEEVER website.
[Faustine.git]
/
examples
/
fft
/
Makefile
diff --git
a/examples/fft/Makefile
b/examples/fft/Makefile
index
fa1e89d
..
67d69cc
100644
(file)
--- a/
examples/fft/Makefile
+++ b/
examples/fft/Makefile
@@
-1,13
+1,37
@@
SRC = fft.dsp
SRC = fft.dsp
-INPUT1 = sin_1378Hz_0.005_ampli_128samples.wav
-
INPUT2 = sin_2067Hz_0.005_ampli_128samples.wa
v
-INPUT3 = sin_16536Hz_0.005_ampli_128samples.wav
-I
NPUT4 = sin_22000Hz_0.005_ampli_128samples.wav
+BASENAME = output
+
FORMAT = cs
v
+CSVOUT = $(BASENAME)1.$(FORMAT)
+I
MGOUT = $(SRC:.dsp=.png)
-all: clean fft
+SINSUM = sinsum.dsp
+WAV_BASENAME = $(SINSUM:.dsp=)
+WAV_FORMAT = wav
+WAVIN = $(WAV_BASENAME)1.$(WAV_FORMAT)
+WAV_LENGTH = 128
-fft: $(SRC) $(INPUT1) $(INPUT2) $(INPUT3) $(INPUT4)
- faustine -d $(SRC) -i $(INPUT1) -i $(INPUT2) -i $(INPUT3) -i $(INPUT4)
+all: $(IMGOUT)
+
+$(IMGOUT): $(CSVOUT)
+ octave -qf img_write.m
+
+$(CSVOUT): $(SRC) $(WAVIN)
+ faustine -f $(SRC) -i $(WAVIN) > $@
+
+$(WAVIN): $(SINS)
+ faustine -f $(SINSUM) -l $(WAV_LENGTH) > $@
clean::
clean::
- rm -f gmon.out output*
+ rm -f gmon.out $(CSVOUT) $(IMGOUT) $(WAVIN) *~
+
+
+
+
+
+
+
+
+
+
+
+