shithub: aubio

Download patch

ref: 9615b037a9ca58c549a529eaa3543309af37e5fd
parent: 8e9cb57943fd56c7270308df786b6e1e48e49fb2
author: Paul Brossier <piem@piem.org>
date: Mon Mar 18 06:53:41 EDT 2013

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

--- a/python/lib/aubio/midiconv.py
+++ b/python/lib/aubio/midiconv.py
@@ -28,7 +28,7 @@
     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