Changeset 08f6688 for python


Ignore:
Timestamp:
May 17, 2006, 11:14:33 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:
7cded32
Parents:
e83c895
Message:

fixes dcthreshold
fixes dcthreshold

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    re83c895 r08f6688  
    117117           if dval > 0: self.myonset.set(dval,0,0)
    118118           else:  self.myonset.set(0.,0,0)
     119        isonset, dval = self.pp.do(self.myonset),self.myonset.get(0,0)
    119120        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)
    123         return self.pp.do(self.myonset),self.myonset.get(0,0)
     121           if dval < self.dcthreshold: isonset = 0
     122        return isonset, dval
    124123
    125124class pitchdetection:
Note: See TracChangeset for help on using the changeset viewer.