Changeset b31f262 for python/aubio


Ignore:
Timestamp:
Jun 14, 2005, 1:07:08 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:
1397c6e
Parents:
0ce9acc3
Message:

add Kullback Liebler onset detection function and its modified version

Location:
python/aubio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    r0ce9acc3 rb31f262  
    7777        self.myfft    = cvec(bufsize,channels)
    7878        self.pv       = pvoc(bufsize,hopsize,channels)
    79         if mode in [complexdomain,hfc,phase,energy,specdiff]  :
    80                 self.myod     = onsetdetection(mode,bufsize,channels)
    81                 self.myonset  = fvec(1,channels)
    82         else:
     79        if mode in ['dual'] :
    8380                self.myod     = onsetdetection(hfc,bufsize,channels)
    8481                self.myod2    = onsetdetection(complexdomain,bufsize,channels)
    8582                self.myonset  = fvec(1,channels)
    8683                self.myonset2 = fvec(1,channels)
     84        else:
     85                self.myod     = onsetdetection(mode,bufsize,channels)
     86                self.myonset  = fvec(1,channels)
    8787        self.mode     = mode
    8888        self.pp       = peakpick(float(threshold))
  • python/aubio/gnuplot.py

    r0ce9acc3 rb31f262  
    151151        from aubio.onsetcompare import onset_roc
    152152
     153        if len(onsets) == 0: onsets = [0.];
     154
    153155        # onset detection function
    154156        downtime = (hopsize/samplerate)*numarray.arange(len(ofunc))
Note: See TracChangeset for help on using the changeset viewer.