source: python/bench-pitch @ cd9b142

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since cd9b142 was 4cc9fe5, checked in by Paul Brossier <piem@altern.org>, 19 years ago

added bench tools

  • Property mode set to 100755
File size: 1011 bytes
Line 
1#! /usr/bin/python
2
3#from conf.aubio_benchrc import *
4from aubio.bench.config import *
5from aubio.bench.node import *
6import os
7
8datapath = "%s%s" % (DATADIR,'/pitch/isolated/piano/011pfnof')
9respath = '/var/tmp/isolated/testing'
10
11MODES = 'yin', 'mcomb', 'fcomb', 'schmitt'
12
13#        prepareresultpath
14act_on_results(mkdir,datapath,respath,filter='d')
15
16def compute_data(input,output):
17        aubiocmd = "%s%s %s%s" % \
18                ("LD_LIBRARY_PATH=",LD_LIBRARY_PATH,AUBIOHOME,"/python/aubiopitch")
19        for m in MODES:
20                cmd = "%s --input \"%s\" --mode %s --verbose --units midi > \"%s--%s.txt\"" \
21                        % (aubiocmd,input,m,output,m)
22                runcommand(cmd,debug=0)
23
24
25#        computedata
26act_on_data(compute_data,datapath,respath,suffix='',filter='f -name \'*.wav\'')
27
28#        gatherdata
29#act_on_data(my_print,datapath,respath,suffix='.txt',filter='f -name \'*.wav\'')
30#        gatherthreshold
31#        gathermodes
32#        comparediffs
33#        gatherdiffs
34
Note: See TracBrowser for help on using the repository browser.