io.show

abjad.tools.io.show(expr, template=None, title=None, footer=None, lilytime=10)

Format expr as a valid string of LilyPond input.

Call LilyPond on the formatted version of expr.

Open the PDF that LilyPond creates.

Render t and open the resulting PDF:

abjad> t = Note(0, (1, 4))
abjad> show(t)

Render t with the tangiers.ly template and then open the resulting PDF:

abjad> show(t, template = 'tangiers')

Render t with a score title and open the resulting PDF:

abjad> show(t, title = 'Score Title')

Render t with a multiline score title and open the resulting PDF:

abjad> show(t, title = ['Score Title', 'score subtitle', 'more subtitle'])

New in version 1.1.1: Render t with a footer and open the resulting PDF:

abjad> show(t, footer = '"This is footer text."')

Render t and open the resulting PDF. Alert the composer if LilyPond takes greater than 60 seconds to render:

abjad> show(t, lilytime = 60)

Note

By default, Abjad writes LilyPond input files to the ~/.abjad/output directory. You may change this by setting the abjad_output variable in the config.py file.

Previous topic

io.play

Next topic

io.write_and_show

This Page