Changeset 5c246b0


Ignore:
Timestamp:
Nov 6, 2009, 1:25:13 AM (14 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:
7db3477
Parents:
7c4cf20
Message:

gen_pyobject.py: update, add smpl_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/gen_pyobject.py

    r7c4cf20 r5c246b0  
    3030defaultsizes = {
    3131    'resampler':    ('input->length * self->ratio', 'input->channels'),
    32     'onsetdetection': ('1', 'self->channels'),
     32    'specdesc':    ('1', 'self->channels'),
    3333    'onset':        ('1', 'self->channels'),
    3434    'pitchyin':     ('1', 'in->channels'),
     
    3838    'pitchfcomb':   ('1', 'self->channels'),
    3939    'pitch':        ('1', 'self->channels'),
    40     'tss':          ('self->hop_s', 'self->channels'),
     40    'tss':          ('self->hop_size', 'self->channels'),
    4141    'mfcc':         ('self->n_coeffs', 'in->channels'),
    42     'beattracking': ('self->winlen', 'self->channels'),
     42    'beattracking': ('self->hop_size', 'self->channels'),
    4343    'tempo':        ('1', 'self->channels'),
    4444    'peakpicker':   ('1', 'self->channels'),
     
    5555aubiodefvalue = {
    5656    # we have some clean up to do
    57     'win_s': 'Py_default_vector_length',
    58     'bufsize': 'Py_default_vector_length',
    5957    'buf_size': 'Py_default_vector_length',
    60     'winlen': 'Py_default_vector_length',
    6158    # and here too
    62     'hop_s': 'Py_default_vector_length / 2',
    63     'hopsize': 'Py_default_vector_length / 2',
    6459    'hop_size': 'Py_default_vector_length / 2',
    6560    # these should be alright
     
    7671    'thrs': '0.5',
    7772    'ratio': '0.5',
    78     'threshold': '0.5',
    79     'mode': '"default"',
    80     'onset_mode': '"default"',
    81     'type': '0',
     73    'method': '"default"',
    8274    }
    8375
     
    308300  {"%(pname)s", T_INT, offsetof (Py_%(name)s, %(pname)s), READONLY, ""},""" \
    309301        % { '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}
    310306        else:
    311307            print "-- ERROR, unknown member type ", param
Note: See TracChangeset for help on using the changeset viewer.