Changeset 9615b03 for python/lib


Ignore:
Timestamp:
Mar 18, 2013, 4:53:41 PM (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:
ab7b1b7
Parents:
8e9cb57
Message:

python/lib/aubio/midiconv.py: note2midi improve error message

File:
1 edited

Legend:

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

    r8e9cb57 r9615b03  
    2929        raise ValueError, "%s is not a valid note name" % notename
    3030    if modifier not in _valid_modifiers:
    31         raise ValueError, "only # and b are acceptable modifiers, not %s" % modifier
     31        raise ValueError, "%s is not a valid modifier" % modifier
    3232    if octave not in _valid_octaves:
    3333        raise ValueError, "%s is not a valid octave" % octave
Note: See TracChangeset for help on using the changeset viewer.