History

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

Paul Brossier committed 13 years ago

Commit 9615b031 parent 8e9cb571 file · +1 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/aubio/midiconv.py+1−1
@@ -28,7 +28,7 @@ def note2midi(note): · 27 unmodified lines
28 if notename not in _valid_notenames:28 if notename not in _valid_notenames:
29 raise ValueError, "%s is not a valid note name" % notename29 raise ValueError, "%s is not a valid note name" % notename
30 if modifier not in _valid_modifiers:30 if modifier not in _valid_modifiers:
31 raise ValueError, "only # and b are acceptable modifiers, not %s" % modifier31 raise ValueError, "%s is not a valid modifier" % modifier
32 if octave not in _valid_octaves:32 if octave not in _valid_octaves:
33 raise ValueError, "%s is not a valid octave" % octave33 raise ValueError, "%s is not a valid octave" % octave
34 34

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t