parse_rtm_syntax

rhythmtreetools.parse_rtm_syntax(rtm)

Parses RTM syntax.

>>> import abjad
>>> from abjad.tools import rhythmtreetools

Parses tuplet:

>>> rtm = '(1 (1 (1 (1 1)) 1))'
>>> tuplet = rhythmtreetools.parse_rtm_syntax(rtm)
>>> show(tuplet) 

Also supports fractional durations:

>>> rtm = '(3/4 (1 1/2 (4/3 (1 -1/2 1))))'
>>> tuplet = rhythmtreetools.parse_rtm_syntax(rtm)
>>> show(tuplet) 

Returns tuplet or container.