Permalink
Browse files

Allow instrument names with capital letter

  • Loading branch information...
1 parent f5683d8 commit c843c0e0e3e82d5945f8453c934e1319a38119ff @ccampbell committed Apr 21, 2012
@@ -46,7 +46,7 @@
</dict>
<dict>
<key>match</key>
- <string>(@[a-z-]{3,}[a-z\-0-9]+)\b</string>
+ <string>(@[a-z-]{3,}[a-zA-Z\-0-9]+)\b</string>
<key>name</key>
<string>storage.mmlx.instrument</string>
</dict>
Binary file not shown.
@@ -829,10 +829,10 @@ def processWord(self, word, next_word, prev_word):
return new_word
# not a valid instrument
- if not match.group(3) in self.instruments:
+ if not match.group(3).lower() in self.instruments:
return word
- new_instrument = self.instruments[match.group(3)]
+ new_instrument = self.instruments[match.group(3).lower()]
if 'O' in self.current_voices and hasattr(new_instrument, 'timbre'):
raise Exception('VRC6 sawtooth (voice O) does not support timbre attribute')

0 comments on commit c843c0e

Please sign in to comment.