X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/91130bc31ab7163870b104407781db50a6f84980..8d0f7daae8a3ec7cda6d4a74c4c819d5ece97a8b:/examples/fft/Makefile?ds=sidebyside diff --git a/examples/fft/Makefile b/examples/fft/Makefile index fa1e89d..6d41558 100644 --- a/examples/fft/Makefile +++ b/examples/fft/Makefile @@ -1,13 +1,37 @@ SRC = fft.dsp -INPUT1 = sin_1378Hz_0.005_ampli_128samples.wav -INPUT2 = sin_2067Hz_0.005_ampli_128samples.wav -INPUT3 = sin_16536Hz_0.005_ampli_128samples.wav -INPUT4 = sin_22000Hz_0.005_ampli_128samples.wav +BASENAME = output +FORMAT = csv +CSVOUT = $(BASENAME)1.$(FORMAT) +IMGOUT = $(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) --oformat $(FORMAT) --obasename $(BASENAME) + +$(WAVIN): $(SINS) + faustine -f $(SINSUM) -l $(WAV_LENGTH) --oformat $(WAV_FORMAT) --obasename $(WAV_BASENAME) clean:: - rm -f gmon.out output* + rm -f gmon.out $(CSVOUT) $(IMGOUT) $(WAVIN) *~ + + + + + + + + + + + +