Changeset 473ab11


Ignore:
Timestamp:
Dec 2, 2016, 1:43:15 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler, yinfft+
Children:
d554321
Parents:
3d14829
Message:

python/lib/aubio/midiconv.py: add unicode double sharp and double flat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/midiconv.py

    r3d14829 r473ab11  
    1717    _valid_notenames = {'C': 0, 'D': 2, 'E': 4, 'F': 5, 'G': 7, 'A': 9, 'B': 11}
    1818    _valid_modifiers = {None: 0, u'♮': 0, '#': +1, u'♯': +1, u'\udd2a': +2,
    19                         'b': -1, u'♭': -1, u'\ufffd': -2}
     19                        u'\U0001D12A': +2,
     20                        'b': -1, u'♭': -1, u'\ufffd': -2,
     21                        u'\U0001D12B': -2,
     22                        }
    2023    _valid_octaves = range(-1, 10)
    2124    if not isinstance(note, str_instances):
Note: See TracChangeset for help on using the changeset viewer.