Changeset ca1abdd for python


Ignore:
Timestamp:
Oct 19, 2009, 10:51:59 AM (15 years ago)
Author:
Paul Brossier <piem@piem.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:
b14107f
Parents:
9f07d52
Message:

rename aubio_pitchdetection to aubio_pitch

Location:
python/aubio
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    r9f07d52 rca1abdd  
    127127        return isonset, dval
    128128
    129 class pitchdetection:
     129class pitch:
    130130    def __init__(self,mode="mcomb",bufsize=2048,hopsize=1024,
    131131        channels=1,samplerate=44100.,omode="freq",tolerance=0.1):
    132         self.pitchp = new_aubio_pitchdetection(mode,bufsize,hopsize,channels,
     132        self.pitchp = new_aubio_pitch(mode,bufsize,hopsize,channels,
    133133            samplerate)
    134134        self.mypitch = fvec(1, channels)
    135         aubio_pitchdetection_set_unit(self.pitchp,omode)
    136         aubio_pitchdetection_set_tolerance(self.pitchp,tolerance)
     135        aubio_pitch_set_unit(self.pitchp,omode)
     136        aubio_pitch_set_tolerance(self.pitchp,tolerance)
    137137        #self.filt     = filter(srate,"adsgn")
    138138    def __del__(self):
    139         del_aubio_pitchdetection(self.pitchp)
     139        del_aubio_pitch(self.pitchp)
    140140    def __call__(self,myvec):
    141         aubio_pitchdetection_do(self.pitchp,myvec(), self.mypitch())
     141        aubio_pitch_do(self.pitchp,myvec(), self.mypitch())
    142142        return self.mypitch.get(0,0)
    143143
  • python/aubio/task/notes.py

    r9f07d52 rca1abdd  
    1414                        dcthreshold=self.params.dcthreshold,
    1515                        derivate=self.params.derivate)
    16                 self.pitchdet  = pitchdetection(mode=self.params.pitchmode,
     16                self.pitchdet  = pitch(mode=self.params.pitchmode,
    1717                        bufsize=self.params.pbufsize,
    1818                        hopsize=self.params.phopsize,
  • python/aubio/task/pitch.py

    r9f07d52 rca1abdd  
    1313                else:
    1414                        tolerance = 0.
    15                 self.pitchdet   = pitchdetection(mode=self.params.pitchmode,
     15                self.pitchdet   = pitch(mode=self.params.pitchmode,
    1616                        bufsize=self.params.bufsize,
    1717                        hopsize=self.params.hopsize,
Note: See TracChangeset for help on using the changeset viewer.