Changeset ee123a0 for python/lib/aubio


Ignore:
Timestamp:
Sep 12, 2017, 5:10:13 PM (7 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
Children:
b24c909
Parents:
896c3a8
Message:

python/lib/aubio/cmd.py: split add_subcommands

File:
1 edited

Legend:

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

    r896c3a8 ree123a0  
    2323            metavar="")
    2424
     25    parser_add_subcommand_onset(subparsers)
     26    parser_add_subcommand_pitch(subparsers)
     27    parser_add_subcommand_beat(subparsers)
     28    parser_add_subcommand_tempo(subparsers)
     29    parser_add_subcommand_notes(subparsers)
     30    parser_add_subcommand_mfcc(subparsers)
     31    parser_add_subcommand_melbands(subparsers)
     32    parser_add_subcommand_quiet(subparsers)
     33
     34    return parser
     35
     36def parser_add_subcommand_onset(subparsers):
    2537    # onset subcommand
    2638    subparser = subparsers.add_parser('onset',
     
    3951    subparser.set_defaults(process=process_onset)
    4052
     53def parser_add_subcommand_pitch(subparsers):
    4154    # pitch subcommand
    4255    subparser = subparsers.add_parser('pitch',
     
    5366    subparser.set_defaults(process=process_pitch)
    5467
     68def parser_add_subcommand_beat(subparsers):
    5569    # beat subcommand
    5670    subparser = subparsers.add_parser('beat',
     
    6276    subparser.set_defaults(process=process_beat)
    6377
     78def parser_add_subcommand_tempo(subparsers):
    6479    # tempo subcommand
    6580    subparser = subparsers.add_parser('tempo',
     
    7186    subparser.set_defaults(process=process_tempo)
    7287
     88def parser_add_subcommand_notes(subparsers):
    7389    # notes subcommand
    7490    subparser = subparsers.add_parser('notes',
     
    8096    subparser.set_defaults(process=process_notes)
    8197
     98def parser_add_subcommand_mfcc(subparsers):
    8299    # mfcc subcommand
    83100    subparser = subparsers.add_parser('mfcc',
     
    89106    subparser.set_defaults(process=process_mfcc)
    90107
     108def parser_add_subcommand_melbands(subparsers):
    91109    # melbands subcommand
    92110    subparser = subparsers.add_parser('melbands',
     
    98116    subparser.set_defaults(process=process_melbands)
    99117
     118def parser_add_subcommand_quiet(subparsers):
    100119    # quiet subcommand
    101120    subparser = subparsers.add_parser('quiet',
     
    107126    parser_add_verbose_help(subparser)
    108127    subparser.set_defaults(process=process_quiet)
    109 
    110     return parser
    111128
    112129def parser_add_input(parser):
Note: See TracChangeset for help on using the changeset viewer.