Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -72,7 +72,7 @@ def note2midi(note): · 71 unmodified lines | |||
| 72 | if len(note) not in range(2, 5): | 72 | if len(note) not in range(2, 5): |
| 73 | msg = "string of 2 to 4 characters expected, got {:d} ({:s})" | 73 | msg = "string of 2 to 4 characters expected, got {:d} ({:s})" |
| 74 | raise ValueError(msg.format(len(note), note)) | 74 | raise ValueError(msg.format(len(note), note)) |
| 75 | notename, modifier, octave = [None]*3 | 75 | notename, modifier, octave = [None] * 3 |
| 76 | 76 | ||
| 77 | if len(note) == 4: | 77 | if len(note) == 4: |
| 78 | notename, modifier, octave_sign, octave = note | 78 | notename, modifier, octave_sign, octave = note |