parse

abjad.parsers.parse.parse(string, language='english', *, tag=None)[source]

Parses LilyPond string.

Parses LilyPond string with English note names:

>>> container = abjad.parse("{c'4 d'4 e'4 f'4}")
>>> abjad.show(container)  

Parses LilyPond string with Dutch note names:

>>> container = abjad.parse("{c'8 des' e' fis'}", language="nederlands")
>>> abjad.show(container)  

Tags output:

>>> container = abjad.parse("{c'4 d'4 e'4 f'4}", tag=abjad.Tag("FOO"))
>>> string = abjad.lilypond(container, tags=True)
>>> print(string)
  %! FOO
{
      %! FOO
    c'4
      %! FOO
    d'4
      %! FOO
    e'4
      %! FOO
    f'4
  %! FOO
}

Returns Abjad component.