ref: cafb00ac8054cf7ef50fc29f2310fbcd95a21b74
parent: 3043081e687361cd891ee289cfddea0974b6173f
author: Paul Brossier <piem@altern.org>
date: Fri Mar 3 00:39:21 EST 2006
update to last bench-onset, bench-pitch update to last bench-onset, bench-pitch
--- a/python/test/bench/onset/bench-onset
+++ b/python/test/bench/onset/bench-onset
@@ -15,11 +15,6 @@
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 @@
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 = {}
--- a/python/test/bench/pitch/Makefile.am
+++ b/python/test/bench/pitch/Makefile.am
@@ -3,10 +3,18 @@
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 $@`
--- a/python/test/bench/pitch/bench-pitch
+++ b/python/test/bench/pitch/bench-pitch
@@ -79,7 +79,10 @@
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 @@
#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