Ignore:
Timestamp:
Jul 11, 2012, 2:09:20 AM (12 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:
1458de5, 451b05d
Parents:
c325a11
Message:

updated setup to generate files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/gen_pyobject.py

    rc325a11 rc71e405  
    2525# There is no way of knowing that output1 is actually input2. In the future,
    2626# const could be used for the inputs in the C prototypes.
     27
     28def write_msg(*args):
     29  pass
     30  # uncomment out for debugging
     31  #print args
    2732
    2833def split_type(arg):
     
    226231""" % locals()
    227232        else:
    228             print "ERROR, unknown type of parameter %s %s" % (ptype, pname)
     233            write_msg ("ERROR, unknown type of parameter %s %s" % (ptype, pname) )
    229234    s += """\
    230235
     
    346351        % { 'pname': param[1], 'ptype': param[0], 'name': name}
    347352        else:
    348             print "-- ERROR, unknown member type ", param
     353            write_msg ("-- ERROR, unknown member type ", param )
    349354    s += """
    350355AUBIO_MEMBERS_STOP(%(name)s)
     
    363368        assert params[0][0] == "aubio_"+name+"_t*", \
    364369            "get method is not in 'aubio_<name>_t"
    365         print method
    366         print params[1:]
     370        write_msg (method )
     371        write_msg (params[1:])
    367372        setter_args = "self->o, " +",".join([p[1] for p in params[1:]])
    368373        parse_args = ""
Note: See TracChangeset for help on using the changeset viewer.