From cafb00ac8054cf7ef50fc29f2310fbcd95a21b74 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 3 Mar 2006 05:39:21 +0000 Subject: [PATCH] update to last bench-onset, bench-pitch update to last bench-onset, bench-pitch --- python/test/bench/onset/bench-onset | 12 +++++++----- python/test/bench/pitch/Makefile.am | 12 ++++++++++-- python/test/bench/pitch/bench-pitch | 9 +++++++-- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/python/test/bench/onset/bench-onset b/python/test/bench/onset/bench-onset index 7fdf89d9..9edc8665 100755 --- a/python/test/bench/onset/bench-onset +++ b/python/test/bench/onset/bench-onset @@ -15,11 +15,6 @@ class mybenchonset(benchonset): self.vlist = [] self.params.onsetmode = mode #self.params.localmin = True - self.params.delay = 2. - self.params.bufsize = 1024 - self.params.hopsize = 256 - self.params.step = float(self.params.hopsize)/float(self.params.samplerate) - #self.params.mintol = 8. for threshold in self.thresholds: self.params.threshold = threshold @@ -56,6 +51,13 @@ if __name__ == "__main__": benchonset = mybenchonset(datapath,respath,checkres=True,checkanno=True) benchonset.params = taskparams() + benchonset.params.dcthreshold = -1. + benchonset.params.silence = -100. + benchonset.params.delay = 3. + benchonset.params.bufsize = 1024 + benchonset.params.hopsize = 256 + benchonset.params.step = float(benchonset.params.hopsize)/float(benchonset.params.samplerate) + benchonset.params.mintol = 4.1 benchonset.task = taskonset benchonset.valuesdict = {} diff --git a/python/test/bench/pitch/Makefile.am b/python/test/bench/pitch/Makefile.am index 656e892c..453a4a2f 100644 --- a/python/test/bench/pitch/Makefile.am +++ b/python/test/bench/pitch/Makefile.am @@ -3,11 +3,19 @@ export PYTHONPATH=$(BASEDIR)/python export LD_LIBRARY_PATH=$(BASEDIR)/src/.libs:$(BASEDIR)/ext/.libs SOURCE = \ - /var/tmp/pitch \ - $(HOME)/archives/samples/pitch/isolated + $(HOME)/archives/samples/pitch/isolated/piano/011pfnof \ + $(HOME)/archives/samples/pitch/isolated/rhodes/021epnof \ + $(HOME)/archives/samples/pitch/isolated/harpsichord/031hcsim \ + $(HOME)/archives/samples/pitch/isolated/vibraphone/041vihnf test-aubiopitch: $(patsubst %, %.aubiopitch, $(SOURCE)) +plotpitch: + ../../../aubiopitch -m mcomb,fcomb,yin,schmitt -i $(HOME)/archives/samples/pitch/isolated/piano/011pfnof/011pfnof.69.wav -O 011pfnof.69.ps + ../../../aubiopitch -m mcomb,fcomb,yin,schmitt -i $(HOME)/archives/samples/pitch/isolated/rhodes/021epnof/021epnof.69.wav -O 021epnof.69.ps + ../../../aubiopitch -m mcomb,fcomb,yin,schmitt -i $(HOME)/archives/samples/pitch/isolated/harpsichord/031hcsim/031hcsim.69.wav -O 031hcsim.69.ps + ../../../aubiopitch -m mcomb,fcomb,yin,schmitt -i $(HOME)/archives/samples/pitch/isolated/vibraphone/041vihnf/041vihnf.69.wav -O 041vihnf.69.ps + %.aubiopitch: % rm -f `basename $@` ./bench-pitch $< #| tee `basename $@` diff --git a/python/test/bench/pitch/bench-pitch b/python/test/bench/pitch/bench-pitch index dc841609..a0a31a08 100755 --- a/python/test/bench/pitch/bench-pitch +++ b/python/test/bench/pitch/bench-pitch @@ -79,7 +79,10 @@ class benchpitch(bench): g('orig(x) = beta*x') g.xlabel('original pitch (Hz)') g.ylabel('detected pitch (Hz)') + g('set key left top') g('set log xy') + g('set xrange [50:2000]') + g('set yrange [50:2000]') g.plot(*d) @@ -93,8 +96,10 @@ if __name__ == "__main__": #modes = ['fcomb'] params = taskparams() - params.bufsize = 2048 - params.hopsize = params.bufsize/2 + params.bufsize = 4096 + params.hopsize = params.bufsize/4 + params.silence = -1000. + params.pitchsmooth = 50 benchpitch = benchpitch(datapath,params=params) benchpitch.task = taskpitch -- 2.26.2