shithub: aubio

ref: dd9e6f959f2fe238c7882d86a06ce6835801e99b
dir: /tests/demo/bench/pitch/Makefile.am/

View raw version
export AUBIODIR=../../../..
export PYTHONPATH=$(AUBIODIR)/python
export LD_LIBRARY_PATH=$(AUBIODIR)/src/.libs:$(AUBIODIR)/ext/.libs

CP=cp -a

SOURCE = \
	$(BASEDIR)/isolated/vibraphone \
	$(BASEDIR)/isolated/clavinet \
	$(BASEDIR)/isolated/elecguitar \
	$(BASEDIR)/isolated/piano \
	$(BASEDIR)/isolated/rhodes \
	$(BASEDIR)/isolated


MONOSOURCE = \
	$(BASEDIR)/monophonic/Mirex04/daisy \
	$(BASEDIR)/monophonic/Mirex04/midi \
	$(BASEDIR)/monophonic/Mirex04/jazz \
	$(BASEDIR)/monophonic/Mirex04/pop \
	$(BASEDIR)/monophonic/Mirex04/opera \
	$(BASEDIR)/monophonic/Mirex04

POLYSOURCE = \
	$(BASEDIR)/polyphonic/Mirex04/daisy \
	$(BASEDIR)/polyphonic/Mirex04/midi \
	$(BASEDIR)/polyphonic/Mirex04/jazz \
	$(BASEDIR)/polyphonic/Mirex04/pop \
	$(BASEDIR)/polyphonic/Mirex04/opera \
	$(BASEDIR)/polyphonic/Mirex04

test-aubiopitch-isolated:    $(patsubst %, %.aubiopitch-isolated, $(SOURCE))
test-aubiopitch-monophonic:  $(patsubst %, %.aubiopitch-monophonic, $(MONOSOURCE))
test-aubiopitch-polyphonic:  $(patsubst %, %.aubiopitch-polyphonic, $(POLYSOURCE))

plotpitch:
	../../../aubiopitch -m fcomb,mcomb,yinfft,yin,schmitt -i jazz2REF.wav -p -t 0.2 -l 100 -M 600 -O jazz2REF.ps
	../../../aubiopitch -m fcomb,mcomb,yinfft,yin,schmitt -p -t 0.2 -l 300 -M 900 -i opera_fem2REF.wav -O opera_fem2REF.ps

timings:
	./bench-timings $(BASEDIR)/polyphonic/Mirex04/opera

%.aubiopitch-isolated: %
	$(CP) isolated/`basename $@` isolated/`basename $@`.old
	./bench-pitch-isolated $< | tee isolated/`basename $@`
	-diff isolated/`basename $@`.old isolated/`basename $@`
	-diff isolated/`basename $@`.ref isolated/`basename $@`

%.aubiopitch-monophonic: %
	$(CP) monophonic/`basename $@` monophonic/`basename $@`.old
	./bench-pitch-monophonic $< | tee monophonic/`basename $@`
	-diff monophonic/`basename $@`.ref monophonic/`basename $@`
	-diff monophonic/`basename $@`.old monophonic/`basename $@`

%.aubiopitch-polyphonic: %
	$(CP) polyphonic/`basename $@` polyphonic/`basename $@`.old
	./bench-pitch-polyphonic $< | tee polyphonic/`basename $@`
	-diff polyphonic/`basename $@`.ref polyphonic/`basename $@`
	-diff polyphonic/`basename $@`.old polyphonic/`basename $@`