ref: 473ab11339f73c5e6a04265aab092c8bfb5c7974
parent: 3d148298842da32516a81f05446dda7f1b905c93
author: Paul Brossier <piem@piem.org>
date: Fri Dec 2 08:43:15 EST 2016
python/lib/aubio/midiconv.py: add unicode double sharp and double flat
--- a/python/lib/aubio/midiconv.py
+++ b/python/lib/aubio/midiconv.py
@@ -16,7 +16,10 @@
" convert note name to midi note number, e.g. [C-1, G9] -> [0, 127] "
_valid_notenames = {'C': 0, 'D': 2, 'E': 4, 'F': 5, 'G': 7, 'A': 9, 'B': 11}
_valid_modifiers = {None: 0, u'♮': 0, '#': +1, u'♯': +1, u'\udd2a': +2,
- 'b': -1, u'♭': -1, u'\ufffd': -2}
+ u'\U0001D12A': +2,
+ 'b': -1, u'♭': -1, u'\ufffd': -2,
+ u'\U0001D12B': -2,
+ }
_valid_octaves = range(-1, 10)
if not isinstance(note, str_instances):
raise TypeError("a string is required, got %s (%s)" % (note, str(type(note))))