Changeset b8976d6
- Timestamp:
- Aug 8, 2005, 10:53:36 PM (19 years ago)
- 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:
- 8d84c0b
- Parents:
- 54bf847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/aubioclass.py
r54bf847 rb8976d6 24 24 def __del__(self): 25 25 del_cvec(self()) 26 def get(self,pos,chan): 27 return fvec_read_sample(self(),chan,pos) 26 28 27 29 class sndfile: … … 204 206 205 207 def getpitch(filein,mode=aubio_mcomb,bufsize=1024,hopsize=512,omode=aubio_freq, 206 samplerate=44100. ):208 samplerate=44100.,silence=-70): 207 209 frameread = 0 208 210 filei = sndfile(filein) … … 218 220 freq = pitchdet(myvec) 219 221 #print "%.3f %.2f" % (now,freq) 220 mylist.append(freq) 222 if (aubio_silence_detection(myvec(),silence)!=1): 223 mylist.append(freq) 224 else: 225 mylist.append(0) 221 226 frameread += 1 222 227 return mylist
Note: See TracChangeset
for help on using the changeset viewer.