Changeset be06e53


Ignore:
Timestamp:
Apr 30, 2016, 4:17:09 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
05c54ff
Parents:
95e0336
Message:

Makefile: add 'create_test_sounds' target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r95e0336 rbe06e53  
    11WAFCMD=python waf
    22
     3SOX=sox
     4
    35ENABLE_DOUBLE := $(shell [ -z $(HAVE_DOUBLE) ] || echo --enable-double )
     6TESTSOUNDS := "python/tests/sounds"
    47
    58all: build
     
    5659help:
    5760        $(WAFCMD) --help
     61
     62create_test_sounds:
     63        [ -z `which $(SOX)` ] && ( echo $(SOX) could not be found; false ) || true
     64        $(MKDIR) -p $(TESTSOUNDS)
     65        $(SOX) -r 44100 -n $(TESTSOUNDS)/44100Hz_1f_silence.wav synth 1s silence 0
     66        $(SOX) -r  8000 -n $(TESTSOUNDS)/8000Hz_30s_silence.wav synth 30 silence 0
     67        $(SOX) -r 32000 -n $(TESTSOUNDS)/32000Hz_127f_sine440.wav synth 127 sine 440
     68        $(SOX) -r 22050 -n $(TESTSOUNDS)/22050Hz_5s_brownnoise.wav synth 5 brownnoise
     69        $(SOX) -r 48000 -n $(TESTSOUNDS)/48000Hz_60s_sweep.wav synth 60 sine 200-24000
Note: See TracChangeset for help on using the changeset viewer.