to_tridirectional_lilypond_symbol

stringtools.to_tridirectional_lilypond_symbol(argument)

Changes argument to tridirectional LilyPond symbol.

>>> stringtools.to_tridirectional_lilypond_symbol(Up)
'^'
>>> stringtools.to_tridirectional_lilypond_symbol('neutral')
'-'
>>> stringtools.to_tridirectional_lilypond_symbol('default')
'-'
>>> stringtools.to_tridirectional_lilypond_symbol(Down)
'_'
>>> stringtools.to_tridirectional_lilypond_symbol(1)
'^'
>>> stringtools.to_tridirectional_lilypond_symbol(0)
'-'
>>> stringtools.to_tridirectional_lilypond_symbol(-1)
'_'

Returns none when argument is none.

Returns argument when argument is ‘^’, ‘-‘ or ‘_’.

Returns string or none.