expr_to_bidirectional_lilypond_symbol

stringtools.expr_to_bidirectional_lilypond_symbol(expr)

Changes expr to bidirectional LilyPond symbol.

>>> stringtools.expr_to_tridirectional_lilypond_symbol(Up)
'^'
>>> stringtools.expr_to_tridirectional_lilypond_symbol(Down)
'_'
>>> stringtools.expr_to_tridirectional_lilypond_symbol(1)
'^'
>>> stringtools.expr_to_tridirectional_lilypond_symbol(-1)
'_'

Returns expr when expr is ‘^’ or ‘_’.

Returns string or none.