Changeset 67ee29f for python/lib/aubio


Ignore:
Timestamp:
Sep 12, 2017, 4:47:42 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:
896c3a8
Parents:
965adee
Message:

python/lib/aubio/cmd.py: split buffer and hop sizes

File:
1 edited

Legend:

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

    r965adee r67ee29f  
    119119
    120120def parser_add_buf_hop_size(parser, buf_size=512, hop_size=256):
     121    parser_add_buf_size(parser, buf_size=buf_size)
     122    parser_add_hop_size(parser, hop_size=hop_size)
     123
     124def parser_add_buf_size(parser, buf_size=512):
    121125    parser.add_argument("-B","--bufsize",
    122126            action="store", dest="buf_size", default=buf_size,
    123127            metavar = "<size>", type=int,
    124128            help="buffer size [default=%d]" % buf_size)
     129
     130def parser_add_hop_size(parser, hop_size=256):
    125131    parser.add_argument("-H","--hopsize",
    126132            metavar = "<size>", type=int,
Note: See TracChangeset for help on using the changeset viewer.