make_basic_lilypond_file

lilypondfiletools.make_basic_lilypond_file(music=None, date_time_token=None, default_paper_size=None, comments=None, includes=None, global_staff_size=None, lilypond_language_token=None, lilypond_version_token=None, use_relative_includes=None)

Makes basic LilyPond file.

Example 1. Makes basic LilyPond file:

>>> score = Score([Staff("c'8 d'8 e'8 f'8")])
>>> lilypond_file = lilypondfiletools.make_basic_lilypond_file(score)
>>> lilypond_file.header_block.title = Markup('Missa sexti tonus')
>>> lilypond_file.header_block.composer = Markup('Josquin')
>>> lilypond_file.layout_block.indent = 0
>>> lilypond_file.paper_block.top_margin = 15
>>> lilypond_file.paper_block.left_margin = 15
>>> print(format(lilypond_file)) 
% 2016-10-22 15:20

\version "2.19.44"
\language "english"

\header {
    composer = \markup { Josquin }
    title = \markup { "Missa sexti tonus" }
}

\layout {
    indent = #0
}

\paper {
    left-margin = #15
    top-margin = #15
}

\score {
    \new Score <<
        \new Staff {
            c'8
            d'8
            e'8
            f'8
        }
    >>
}
>>> show(lilypond_file) 

Wraps music in LilyPond \score block.

Adds LilyPond \header, \layout, \paper and \score blocks to LilyPond file.

Returns LilyPond file.