Changeset cadf07b for python/aubio


Ignore:
Timestamp:
May 5, 2006, 10:16:40 AM (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:
da6d9af
Parents:
80149a1
Message:

update indentation
update indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    r80149a1 rcadf07b  
    102102        self.pp       = peakpick(float(threshold))
    103103        self.derivate = derivate
    104         self.dcthreshold = dcthreshold
     104        self.dcthreshold = dcthreshold
    105105        self.oldval   = 0.
    106106
     
    109109        self.myod.do(self.myfft,self.myonset)
    110110        if self.mode == 'dual':
    111                 self.myod2.do(self.myfft,self.myonset2)
    112                 self.myonset.set(self.myonset.get(0,0)*self.myonset2.get(0,0),0,0)
     111           self.myod2.do(self.myfft,self.myonset2)
     112           self.myonset.set(self.myonset.get(0,0)*self.myonset2.get(0,0),0,0)
    113113        if self.derivate:
    114                 val         = self.myonset.get(0,0)
    115                 dval        = val - self.oldval
    116                 self.oldval = val
    117                 if dval > 0: self.myonset.set(dval,0,0)
    118                 else:  self.myonset.set(0.,0,0)
    119         if self.dcthreshold:
    120                 dval        = self.myonset.get(0,0) - self.dcthreshold
    121                 if dval > 0: self.myonset.set(dval,0,0)
    122                 else:  self.myonset.set(0.,0,0)
     114           val         = self.myonset.get(0,0)
     115           dval        = val - self.oldval
     116           self.oldval = val
     117           if dval > 0: self.myonset.set(dval,0,0)
     118           else:  self.myonset.set(0.,0,0)
     119        if self.dcthreshold:
     120           dval        = self.myonset.get(0,0) - self.dcthreshold
     121           if dval > 0: self.myonset.set(dval,0,0)
     122           else:  self.myonset.set(0.,0,0)
    123123        return self.pp.do(self.myonset),self.myonset.get(0,0)
    124124
Note: See TracChangeset for help on using the changeset viewer.