Changes in / [fb4ab89:189c6ae]
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_code.py
rfb4ab89 r189c6ae 3 3 'buf_size': 'Py_default_vector_length', 4 4 'win_s': 'Py_default_vector_length', 5 'size': 'Py_default_vector_length', 5 6 # and here too 6 7 'hop_size': 'Py_default_vector_length / 2', … … 83 84 'filterbank': 'self->n_filters', 84 85 'tss': 'self->buf_size', 86 'dct': 'self->size', 85 87 } 86 88 … … 191 193 out += self.gen_del() 192 194 out += self.gen_do() 195 if len(self.prototypes['rdo']): 196 self.do_proto = self.prototypes['rdo'][0] 197 self.do_inputs = [get_params_types_names(self.do_proto)[1]] 198 self.do_outputs = get_params_types_names(self.do_proto)[2:] 199 out += self.gen_do(method='rdo') 193 200 out += self.gen_memberdef() 194 201 out += self.gen_set() … … 371 378 return out 372 379 373 def gen_do(self ):380 def gen_do(self, method = 'do'): 374 381 out = """ 375 382 // do {shortname} 376 383 static PyObject* 377 Py _{shortname}_do(Py_{shortname} * self, PyObject * args)378 {{""".format(**self.__dict__ )384 Pyaubio_{shortname}_{method} (Py_{shortname} * self, PyObject * args) 385 {{""".format(**self.__dict__, method = method) 379 386 input_params = self.do_inputs 380 387 output_params = self.do_outputs … … 516 523 {{"{shortname}", (PyCFunction) Py{name}, 517 524 METH_NOARGS, ""}},""".format(name = name, shortname = shortname) 525 for m in self.prototypes['rdo']: 526 name = get_name(m) 527 shortname = name.replace('aubio_%s_' % self.shortname, '') 528 out += """ 529 {{"{shortname}", (PyCFunction) Py{name}, 530 METH_VARARGS, ""}},""".format(name = name, shortname = shortname) 518 531 out += """ 519 532 {NULL} /* sentinel */ … … 541 554 0, 542 555 0, 543 (ternaryfunc)Py _{shortname}_do,556 (ternaryfunc)Pyaubio_{shortname}_do, 544 557 0, 545 558 0, -
python/lib/gen_external.py
rfb4ab89 r189c6ae 182 182 shortname = o[6:-2] # without aubio_ prefix and _t suffix 183 183 184 lib[shortname] = {'struct': [], 'new': [], 'del': [], 'do': [], ' get': [], 'set': [], 'other': []}184 lib[shortname] = {'struct': [], 'new': [], 'del': [], 'do': [], 'rdo': [], 'get': [], 'set': [], 'other': []} 185 185 lib[shortname]['longname'] = o 186 186 lib[shortname]['shortname'] = shortname … … 196 196 elif '_do' in fn: 197 197 lib[shortname]['do'].append(fn) 198 elif '_rdo' in fn: 199 lib[shortname]['rdo'].append(fn) 198 200 elif 'new_' in fn: 199 201 lib[shortname]['new'].append(fn) -
src/aubio.h
rfb4ab89 r189c6ae 183 183 #include "temporal/c_weighting.h" 184 184 #include "spectral/fft.h" 185 #include "spectral/dct.h" 185 186 #include "spectral/phasevoc.h" 186 187 #include "spectral/filterbank.h" -
src/aubio_priv.h
rfb4ab89 r189c6ae 86 86 #define aubio_vDSP_mmov vDSP_mmov 87 87 #define aubio_vDSP_vmul vDSP_vmul 88 #define aubio_vDSP_vsmul vDSP_vsmul 89 #define aubio_vDSP_vsadd vDSP_vsadd 88 90 #define aubio_vDSP_vfill vDSP_vfill 89 91 #define aubio_vDSP_meanv vDSP_meanv … … 98 100 #define aubio_vDSP_mmov vDSP_mmovD 99 101 #define aubio_vDSP_vmul vDSP_vmulD 102 #define aubio_vDSP_vsmul vDSP_vsmulD 103 #define aubio_vDSP_vsadd vDSP_vsaddD 100 104 #define aubio_vDSP_vfill vDSP_vfillD 101 105 #define aubio_vDSP_meanv vDSP_meanvD
Note: See TracChangeset
for help on using the changeset viewer.