Objects for exporting music21 data as braille.
Translates a stream Part consisting of two stream Parts, a right hand and left hand, into braille music bar over bar format.
Translates an arbitrary object to Braille. Doesn’t yet work on notes:
>>> from music21 import *
>>> tns = tinyNotation.TinyNotationStream('C4 D16 E F G# r4 e2.', '3/4')
>>> x = braille.translate.objectToBraille(tns)
>>> print x
⠀⠀⠀⠀⠀⠀⠀⠼⠉⠲⠀⠀⠀⠀⠀⠀⠀
⠼⠁⠀⠸⠹⠵⠋⠛⠩⠓⠧⠀⠐⠏⠄⠣⠅
For normal users, you’ll just call this, which starts a text editor:
>>> tns.show('braille')
⠀⠀⠀⠀⠀⠀⠀⠼⠉⠲⠀⠀⠀⠀⠀⠀⠀
⠼⠁⠀⠸⠹⠵⠋⠛⠩⠓⠧⠀⠐⠏⠄⠣⠅