1 | export AUBIODIR=../../../.. |
---|
2 | export PYTHONPATH=$(AUBIODIR)/python |
---|
3 | export LD_LIBRARY_PATH=$(AUBIODIR)/src/.libs:$(AUBIODIR)/ext/.libs |
---|
4 | |
---|
5 | CP=cp -a |
---|
6 | |
---|
7 | SOURCE = \ |
---|
8 | $(BASEDIR)/isolated/vibraphone \ |
---|
9 | $(BASEDIR)/isolated/clavinet \ |
---|
10 | $(BASEDIR)/isolated/elecguitar \ |
---|
11 | $(BASEDIR)/isolated/piano \ |
---|
12 | $(BASEDIR)/isolated/rhodes \ |
---|
13 | $(BASEDIR)/isolated |
---|
14 | |
---|
15 | |
---|
16 | MONOSOURCE = \ |
---|
17 | $(BASEDIR)/monophonic/Mirex04/daisy \ |
---|
18 | $(BASEDIR)/monophonic/Mirex04/midi \ |
---|
19 | $(BASEDIR)/monophonic/Mirex04/jazz \ |
---|
20 | $(BASEDIR)/monophonic/Mirex04/pop \ |
---|
21 | $(BASEDIR)/monophonic/Mirex04/opera \ |
---|
22 | $(BASEDIR)/monophonic/Mirex04 |
---|
23 | |
---|
24 | POLYSOURCE = \ |
---|
25 | $(BASEDIR)/polyphonic/Mirex04/daisy \ |
---|
26 | $(BASEDIR)/polyphonic/Mirex04/midi \ |
---|
27 | $(BASEDIR)/polyphonic/Mirex04/jazz \ |
---|
28 | $(BASEDIR)/polyphonic/Mirex04/pop \ |
---|
29 | $(BASEDIR)/polyphonic/Mirex04/opera \ |
---|
30 | $(BASEDIR)/polyphonic/Mirex04 |
---|
31 | |
---|
32 | test-aubiopitch-isolated: $(patsubst %, %.aubiopitch-isolated, $(SOURCE)) |
---|
33 | test-aubiopitch-monophonic: $(patsubst %, %.aubiopitch-monophonic, $(MONOSOURCE)) |
---|
34 | test-aubiopitch-polyphonic: $(patsubst %, %.aubiopitch-polyphonic, $(POLYSOURCE)) |
---|
35 | |
---|
36 | plotpitch: |
---|
37 | ../../../aubiopitch -m fcomb,mcomb,yinfft,yin,schmitt -i jazz2REF.wav -p -t 0.2 -l 100 -M 600 -O jazz2REF.ps |
---|
38 | ../../../aubiopitch -m fcomb,mcomb,yinfft,yin,schmitt -p -t 0.2 -l 300 -M 900 -i opera_fem2REF.wav -O opera_fem2REF.ps |
---|
39 | |
---|
40 | timings: |
---|
41 | ./bench-timings $(BASEDIR)/polyphonic/Mirex04/opera |
---|
42 | |
---|
43 | %.aubiopitch-isolated: % |
---|
44 | $(CP) isolated/`basename $@` isolated/`basename $@`.old |
---|
45 | ./bench-pitch-isolated $< | tee isolated/`basename $@` |
---|
46 | -diff isolated/`basename $@`.old isolated/`basename $@` |
---|
47 | -diff isolated/`basename $@`.ref isolated/`basename $@` |
---|
48 | |
---|
49 | %.aubiopitch-monophonic: % |
---|
50 | $(CP) monophonic/`basename $@` monophonic/`basename $@`.old |
---|
51 | ./bench-pitch-monophonic $< | tee monophonic/`basename $@` |
---|
52 | -diff monophonic/`basename $@`.ref monophonic/`basename $@` |
---|
53 | -diff monophonic/`basename $@`.old monophonic/`basename $@` |
---|
54 | |
---|
55 | %.aubiopitch-polyphonic: % |
---|
56 | $(CP) polyphonic/`basename $@` polyphonic/`basename $@`.old |
---|
57 | ./bench-pitch-polyphonic $< | tee polyphonic/`basename $@` |
---|
58 | -diff polyphonic/`basename $@`.ref polyphonic/`basename $@` |
---|
59 | -diff polyphonic/`basename $@`.old polyphonic/`basename $@` |
---|