projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9cb57
)
python/lib/aubio/midiconv.py: note2midi improve error message
author
Paul Brossier
<piem@piem.org>
Mon, 18 Mar 2013 15:53:41 +0000
(10:53 -0500)
committer
Paul Brossier
<piem@piem.org>
Mon, 18 Mar 2013 15:53:41 +0000
(10:53 -0500)
python/lib/aubio/midiconv.py
patch
|
blob
|
history
diff --git
a/python/lib/aubio/midiconv.py
b/python/lib/aubio/midiconv.py
index 445afd89b5ac25c237bc0139ac44df6853869c70..1ce6e68e4c0b2175d4eab6e6565b5ffc42b2eef6 100644
(file)
--- 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