Changeset 5c246b0 for interfaces/python
- Timestamp:
- Nov 6, 2009, 1:25:13 AM (15 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:
- 7db3477
- Parents:
- 7c4cf20
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interfaces/python/gen_pyobject.py
r7c4cf20 r5c246b0 30 30 defaultsizes = { 31 31 'resampler': ('input->length * self->ratio', 'input->channels'), 32 ' onsetdetection':('1', 'self->channels'),32 'specdesc': ('1', 'self->channels'), 33 33 'onset': ('1', 'self->channels'), 34 34 'pitchyin': ('1', 'in->channels'), … … 38 38 'pitchfcomb': ('1', 'self->channels'), 39 39 'pitch': ('1', 'self->channels'), 40 'tss': ('self->hop_s ', 'self->channels'),40 'tss': ('self->hop_size', 'self->channels'), 41 41 'mfcc': ('self->n_coeffs', 'in->channels'), 42 'beattracking': ('self-> winlen', 'self->channels'),42 'beattracking': ('self->hop_size', 'self->channels'), 43 43 'tempo': ('1', 'self->channels'), 44 44 'peakpicker': ('1', 'self->channels'), … … 55 55 aubiodefvalue = { 56 56 # we have some clean up to do 57 'win_s': 'Py_default_vector_length',58 'bufsize': 'Py_default_vector_length',59 57 'buf_size': 'Py_default_vector_length', 60 'winlen': 'Py_default_vector_length',61 58 # and here too 62 'hop_s': 'Py_default_vector_length / 2',63 'hopsize': 'Py_default_vector_length / 2',64 59 'hop_size': 'Py_default_vector_length / 2', 65 60 # these should be alright … … 76 71 'thrs': '0.5', 77 72 'ratio': '0.5', 78 'threshold': '0.5', 79 'mode': '"default"', 80 'onset_mode': '"default"', 81 'type': '0', 73 'method': '"default"', 82 74 } 83 75 … … 308 300 {"%(pname)s", T_INT, offsetof (Py_%(name)s, %(pname)s), READONLY, ""},""" \ 309 301 % { 'pname': param[1], 'ptype': param[0], 'name': name} 302 elif param[0] == 'smpl_t': 303 s += """ 304 {"%(pname)s", T_FLOAT, offsetof (Py_%(name)s, %(pname)s), READONLY, ""},""" \ 305 % { 'pname': param[1], 'ptype': param[0], 'name': name} 310 306 else: 311 307 print "-- ERROR, unknown member type ", param
Note: See TracChangeset
for help on using the changeset viewer.