shithub: aubio

Download patch

ref: ceb884df273b40b441c302cf1a0d6d7839085bdc
parent: 99aa35348d127d5d3582ad69d8f730b298766957
author: Paul Brossier <piem@piem.org>
date: Mon May 2 08:06:35 EDT 2016

Makefile: improve test sounds creation

--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 SOX=sox
 
 ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double )
-TESTSOUNDS := "python/tests/sounds"
+TESTSOUNDS := python/tests/sounds
 
 all: build
 
@@ -62,8 +62,8 @@
 create_test_sounds:
 	-[ -z `which $(SOX)` ] && ( echo $(SOX) could not be found) || true
 	-mkdir -p $(TESTSOUNDS)
-	-$(SOX) -r 44100 -b 16 -n $(TESTSOUNDS)/44100Hz_1f_silence.wav synth 1s silence 0
-	-$(SOX) -r  8000 -b 16 -n $(TESTSOUNDS)/8000Hz_30s_silence.wav synth 30 silence 0 vol 0.9
-	-$(SOX) -r 32000 -b 16 -n $(TESTSOUNDS)/32000Hz_127f_sine440.wav synth 127 sine 440 vol 0.9
-	-$(SOX) -r 22050 -b 16 -n $(TESTSOUNDS)/22050Hz_5s_brownnoise.wav synth 5 brownnoise vol 0.9
-	-$(SOX) -r 48000 -b 32 -n $(TESTSOUNDS)/48000Hz_60s_sweep.wav synth 60 sine 0.1-20000 vol 0.9
+	-$(SOX) -r 44100 -b 16 -n "$(TESTSOUNDS)/44100Hz_1f_silence.wav"      synth 1s   silence 0
+	-$(SOX) -r 22050 -b 16 -n "$(TESTSOUNDS)/22050Hz_5s_brownnoise.wav"   synth 5    brownnoise      vol 0.9
+	-$(SOX) -r 32000 -b 16 -n "$(TESTSOUNDS)/32000Hz_127f_sine440.wav"    synth 127s sine 440        vol 0.9
+	-$(SOX) -r  8000 -b 16 -n "$(TESTSOUNDS)/8000Hz_30s_silence.wav"      synth 30   silence 0       vol 0.9
+	-$(SOX) -r 48000 -b 32 -n "$(TESTSOUNDS)/48000Hz_60s_sweep.wav"       synth 60   sine 100-20000  vol 0.9