Changeset 0561c54


Ignore:
Timestamp:
Mar 24, 2017, 4:22:51 AM (8 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, sampler
Children:
70ab9fe
Parents:
cc4987a (diff), 2615dd9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'aubiocmd'

Files:
2 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/cut.py

    • Property mode changed from 100755 to 100644
    rcc4987a r0561c54  
    77import sys
    88
    9 usage = "usage: %s [options] -i soundfile" % sys.argv[0]
    10 usage += "\n help: %s -h" % sys.argv[0]
    11 
    129def parse_args():
    1310    from optparse import OptionParser
     11    usage = "usage: %s [options] -i soundfile" % sys.argv[0]
     12    usage += "\n help: %s -h" % sys.argv[0]
    1413    parser = OptionParser(usage=usage)
    1514    parser.add_option("-i", "--input", action = "store", dest = "source_file",
     
    134133    (options, args) = parser.parse_args()
    135134    if not options.source_file:
    136         import os.path
    137135        if len(args) == 1:
    138136            options.source_file = args[0]
     
    142140    return options, args
    143141
    144 if __name__ == '__main__':
     142def main():
    145143    options, args = parse_args()
    146144
     
    150148    source_file = options.source_file
    151149
    152     from aubio import onset, tempo, source, sink
     150    from aubio import onset, tempo, source
    153151
    154152    s = source(source_file, samplerate, hopsize)
  • setup.py

    rcc4987a r0561c54  
    5858    packages = ['aubio'],
    5959    package_dir = {'aubio':'python/lib/aubio'},
    60     scripts = ['python/scripts/aubiocut'],
    6160    ext_modules = [aubio_extension],
    6261    description = 'a collection of tools for music analysis',
     
    7675        'build_ext': build_ext,
    7776        },
     77    entry_points = {
     78        'console_scripts': [
     79            'aubio = aubio.cmd:main',
     80            'aubiocut = aubio.cut:main',
     81        ],
     82    },
    7883    test_suite = 'nose2.collector.collector',
    7984    extras_require = {
Note: See TracChangeset for help on using the changeset viewer.