Changeset dbc0351 for python/aubio


Ignore:
Timestamp:
Feb 17, 2006, 5:03:04 PM (19 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
677b267
Parents:
0cd995a
Message:

start using results structure, move onset specific out of node
start using results structure, move onset specific out of node

Location:
python/aubio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/bench/node.py

    r0cd995a rdbc0351  
    144144                act_on_results(mkdir,self.datadir,self.resdir,filter='d')
    145145
    146         def pretty_print(self,values):
     146        def pretty_print(self,values,sep='|'):
    147147                for i in range(len(values)):
    148                         print self.formats[i] % values[i],
     148                        print self.formats[i] % values[i], sep,
    149149                print
    150150
    151151        def dir_exec(self):
    152152                """ run file_exec on every input file """
    153                 self.orig, self.missed, self.merged, self.expc, \
    154                         self.bad, self.doubled = 0, 0, 0, 0, 0, 0
    155                 self.l , self.mean = [], 0
    156                 act_on_files(self.file_exec,self.sndlist,self.reslist, \
    157                         suffix='',filter=sndfile_filter)
    158        
     153                pass
     154
    159155        def dir_eval(self):
    160156                pass
  • python/aubio/tasks.py

    r0cd995a rdbc0351  
    402402                                onset_roc(ltru,lres,self.params.tol)
    403403                elif mode == 'rocloc':
    404                         self.orig, self.missed, self.merged, \
    405                                 self.expc, self.bad, self.doubled, \
    406                                 self.l, self.mean = \
     404                        self.v = {}
     405                        self.v['orig'], self.v['missed'], self.v['Tm'], \
     406                                self.v['expc'], self.v['bad'], self.v['Td'], \
     407                                self.v['l'], self.v['labs'] = \
    407408                                onset_rocloc(ltru,lres,self.params.tol)
    408409
Note: See TracChangeset for help on using the changeset viewer.