persist


Functions

as_ly

Persists argument as LilyPond file.

as_midi

Persists argument as MIDI file.

as_pdf

Persists argument as PDF.

as_png

Persists argument as PNG.

abjad.persist.as_ly(argument, ly_file_path, *, illustrate_function=None, tags=False, **keywords)[source]

Persists argument as LilyPond file.

Returns output path and elapsed formatting time when LilyPond output is written.

abjad.persist.as_midi(argument, midi_file_path, **keywords)[source]

Persists argument as MIDI file.

Returns 4-tuple of output MIDI path, Abjad formatting time, LilyPond rendering time and success boolean.

abjad.persist.as_pdf(argument, pdf_file_path, *, illustrate_function=None, tags=False, **keywords)[source]

Persists argument as PDF.

Returns output path, elapsed formatting time and elapsed rendering time when PDF output is written.

abjad.persist.as_png(argument, png_file_path, *, flags='--png', illustrate_function=None, preview=False, resolution=False, tags=False, **keywords)[source]

Persists argument as PNG.

Autogenerates file path when png_file_path is none.

Returns output path(s), elapsed formatting time and elapsed rendering time.