From: Paul Brossier Date: Mon, 18 Mar 2013 15:53:41 +0000 (-0500) Subject: python/lib/aubio/midiconv.py: note2midi improve error message X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9615b037a9ca58c549a529eaa3543309af37e5fd;p=aubio.git python/lib/aubio/midiconv.py: note2midi improve error message --- diff --git a/python/lib/aubio/midiconv.py b/python/lib/aubio/midiconv.py index 445afd89..1ce6e68e 100644 --- a/python/lib/aubio/midiconv.py +++ b/python/lib/aubio/midiconv.py @@ -28,7 +28,7 @@ def note2midi(note): if notename not in _valid_notenames: raise ValueError, "%s is not a valid note name" % notename if modifier not in _valid_modifiers: - raise ValueError, "only # and b are acceptable modifiers, not %s" % modifier + raise ValueError, "%s is not a valid modifier" % modifier if octave not in _valid_octaves: raise ValueError, "%s is not a valid octave" % octave