feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 77671b4 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 * |
---|
4 | from aubio.bench.config import * |
---|
5 | from aubio.bench.node import * |
---|
6 | import os |
---|
7 | |
---|
8 | datapath = "%s%s" % (DATADIR,'/pitch/isolated/piano/011pfnof') |
---|
9 | respath = '/var/tmp/isolated/testing' |
---|
10 | |
---|
11 | MODES = 'yin', 'mcomb', 'fcomb', 'schmitt' |
---|
12 | |
---|
13 | # prepareresultpath |
---|
14 | act_on_results(mkdir,datapath,respath,filter='d') |
---|
15 | |
---|
16 | def 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 |
---|
26 | act_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.