Changes in / [189c6ae:fb4ab89]


Ignore:
Files:
7 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    r189c6ae rfb4ab89  
    33    'buf_size': 'Py_default_vector_length',
    44    'win_s': 'Py_default_vector_length',
    5     'size': 'Py_default_vector_length',
    65    # and here too
    76    'hop_size': 'Py_default_vector_length / 2',
     
    8483        'filterbank': 'self->n_filters',
    8584        'tss': 'self->buf_size',
    86         'dct': 'self->size',
    8785        }
    8886
     
    193191            out += self.gen_del()
    194192            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')
    200193            out += self.gen_memberdef()
    201194            out += self.gen_set()
     
    378371        return out
    379372
    380     def gen_do(self, method = 'do'):
     373    def gen_do(self):
    381374        out = """
    382375// do {shortname}
    383376static PyObject*
    384 Pyaubio_{shortname}_{method}  (Py_{shortname} * self, PyObject * args)
    385 {{""".format(**self.__dict__, method = method)
     377Py_{shortname}_do  (Py_{shortname} * self, PyObject * args)
     378{{""".format(**self.__dict__)
    386379        input_params = self.do_inputs
    387380        output_params = self.do_outputs
     
    523516  {{"{shortname}", (PyCFunction) Py{name},
    524517    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)
    531518        out += """
    532519  {NULL} /* sentinel */
     
    554541  0,
    555542  0,
    556   (ternaryfunc)Pyaubio_{shortname}_do,
     543  (ternaryfunc)Py_{shortname}_do,
    557544  0,
    558545  0,
  • python/lib/gen_external.py

    r189c6ae rfb4ab89  
    182182            shortname = o[6:-2]  # without aubio_ prefix and _t suffix
    183183
    184         lib[shortname] = {'struct': [], 'new': [], 'del': [], 'do': [], 'rdo': [], 'get': [], 'set': [], 'other': []}
     184        lib[shortname] = {'struct': [], 'new': [], 'del': [], 'do': [], 'get': [], 'set': [], 'other': []}
    185185        lib[shortname]['longname'] = o
    186186        lib[shortname]['shortname'] = shortname
     
    196196                elif '_do' in fn:
    197197                    lib[shortname]['do'].append(fn)
    198                 elif '_rdo' in fn:
    199                     lib[shortname]['rdo'].append(fn)
    200198                elif 'new_' in fn:
    201199                    lib[shortname]['new'].append(fn)
  • src/aubio.h

    r189c6ae rfb4ab89  
    183183#include "temporal/c_weighting.h"
    184184#include "spectral/fft.h"
    185 #include "spectral/dct.h"
    186185#include "spectral/phasevoc.h"
    187186#include "spectral/filterbank.h"
  • src/aubio_priv.h

    r189c6ae rfb4ab89  
    8686#define aubio_vDSP_mmov       vDSP_mmov
    8787#define aubio_vDSP_vmul       vDSP_vmul
    88 #define aubio_vDSP_vsmul      vDSP_vsmul
    89 #define aubio_vDSP_vsadd      vDSP_vsadd
    9088#define aubio_vDSP_vfill      vDSP_vfill
    9189#define aubio_vDSP_meanv      vDSP_meanv
     
    10098#define aubio_vDSP_mmov       vDSP_mmovD
    10199#define aubio_vDSP_vmul       vDSP_vmulD
    102 #define aubio_vDSP_vsmul      vDSP_vsmulD
    103 #define aubio_vDSP_vsadd      vDSP_vsaddD
    104100#define aubio_vDSP_vfill      vDSP_vfillD
    105101#define aubio_vDSP_meanv      vDSP_meanvD
Note: See TracChangeset for help on using the changeset viewer.