lilypondfiletools.LilyPondFile

Inheritance diagram of abjad.tools.lilypondfiletools.LilyPondFile.LilyPondFile.LilyPondFile

class abjad.tools.lilypondfiletools.LilyPondFile.LilyPondFile.LilyPondFile[source]

New in version 2.0.

Abjad model of LilyPond input file:

abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> lilypond_file = lilypondfiletools.make_basic_lilypond_file(staff)
abjad> lilypond_file.file_initial_user_comments.append('File construct as an example.')
abjad> lilypond_file.file_initial_user_comments.append('Parts shown here for positioning.')
abjad> lilypond_file.file_initial_user_includes.append('external-settings-file-1.ly')
abjad> lilypond_file.file_initial_user_includes.append('external-settings-file-2.ly')
abjad> lilypond_file.default_paper_size = 'letter', 'portrait'
abjad> lilypond_file.global_staff_size = 16
abjad> lilypond_file.header_block.composer = markuptools.Markup('Josquin')
abjad> lilypond_file.header_block.title = markuptools.Markup('Missa sexti tonus')
abjad> lilypond_file.layout_block.indent = 0
abjad> lilypond_file.layout_block.left_margin = 15
abjad> lilypond_file.paper_block.oddFooterMarkup = markuptools.Markup('The odd-page footer')
abjad> lilypond_file.paper_block.evenFooterMarkup = markuptools.Markup('The even-page footer')
abjad> f(lilypond_file) # doctest: +SKIP
% Abjad revision 3719
% 2010-09-24 09:01

% File construct as an example.
% Parts shown here for positioning.

\version "2.13.32"
\include "english.ly"
\include "/Users/trevorbaca/Documents/abjad/trunk/abjad/cfg/abjad.scm"

\include "external-settings-file-1.ly"
\include "external-settings-file-2.ly"

#(set-default-paper-size "letter" 'portrait)
#(set-global-staff-size 16)

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

\layout {
    indent = #0
    left-margin = #15
}

\paper {
    evenFooterMarkup = \markup { The even-page footer }
    oddFooterMarkup = \markup { The odd-page footer }
}

\new Staff {
    c'8
    d'8
    e'8
    f'8
}

Read-only Properties

LilyPondFile.format[source]

Format-time contribution of LilyPond file.

Read/write Properties

LilyPondFile.default_paper_size[source]

LilyPond default paper size.

LilyPondFile.file_initial_system_comments[source]

Read-only list of file-initial system comments.

LilyPondFile.file_initial_system_includes[source]

List of file-initial system include commands.

LilyPondFile.file_initial_user_comments[source]

Read-only list of file-initial user comments.

LilyPondFile.file_initial_user_includes[source]

List of file-initial user include commands.

LilyPondFile.global_staff_size[source]

LilyPond global staff size.

Methods

LilyPondFile.append()

L.append(object) – append object to end

Note

Inherited from __builtin__.list

LilyPondFile.count(value) → integer -- return number of occurrences of value

Note

Inherited from __builtin__.list

LilyPondFile.extend()

L.extend(iterable) – extend list by appending elements from the iterable

Note

Inherited from __builtin__.list

LilyPondFile.index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

Note

Inherited from __builtin__.list

LilyPondFile.insert()

L.insert(index, object) – insert object before index

Note

Inherited from __builtin__.list

LilyPondFile.pop([index]) → item -- remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

Note

Inherited from __builtin__.list

LilyPondFile.remove()

L.remove(value) – remove first occurrence of value. Raises ValueError if the value is not present.

Note

Inherited from __builtin__.list

LilyPondFile.reverse()

L.reverse() – reverse IN PLACE

Note

Inherited from __builtin__.list

LilyPondFile.sort()

L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; cmp(x, y) -> -1, 0, 1

Note

Inherited from __builtin__.list

Special Methods

LilyPondFile.__add__()

x.__add__(y) <==> x+y

Note

Inherited from __builtin__.list

LilyPondFile.__contains__()

x.__contains__(y) <==> y in x

Note

Inherited from __builtin__.list

LilyPondFile.__delattr__()

x.__delattr__(‘name’) <==> del x.name

Note

Inherited from __builtin__.object

LilyPondFile.__delitem__()

x.__delitem__(y) <==> del x[y]

Note

Inherited from __builtin__.list

LilyPondFile.__delslice__()

x.__delslice__(i, j) <==> del x[i:j]

Use of negative indices is not supported.

Note

Inherited from __builtin__.list

LilyPondFile.__eq__()

x.__eq__(y) <==> x==y

Note

Inherited from __builtin__.list

LilyPondFile.__ge__()

x.__ge__(y) <==> x>=y

Note

Inherited from __builtin__.list

LilyPondFile.__getitem__()

x.__getitem__(y) <==> x[y]

Note

Inherited from __builtin__.list

LilyPondFile.__getslice__()

x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.

Note

Inherited from __builtin__.list

LilyPondFile.__gt__()

x.__gt__(y) <==> x>y

Note

Inherited from __builtin__.list

LilyPondFile.__iadd__()

x.__iadd__(y) <==> x+=y

Note

Inherited from __builtin__.list

LilyPondFile.__imul__()

x.__imul__(y) <==> x*=y

Note

Inherited from __builtin__.list

LilyPondFile.__iter__() <==> iter(x)

Note

Inherited from __builtin__.list

LilyPondFile.__le__()

x.__le__(y) <==> x<=y

Note

Inherited from __builtin__.list

LilyPondFile.__len__() <==> len(x)

Note

Inherited from __builtin__.list

LilyPondFile.__lt__()

x.__lt__(y) <==> x<y

Note

Inherited from __builtin__.list

LilyPondFile.__mul__()

x.__mul__(n) <==> x*n

Note

Inherited from __builtin__.list

LilyPondFile.__ne__()

x.__ne__(y) <==> x!=y

Note

Inherited from __builtin__.list

LilyPondFile.__repr__()[source]
LilyPondFile.__reversed__()

L.__reversed__() – return a reverse iterator over the list

Note

Inherited from __builtin__.list

LilyPondFile.__rmul__()

x.__rmul__(n) <==> n*x

Note

Inherited from __builtin__.list

LilyPondFile.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

LilyPondFile.__setitem__()

x.__setitem__(i, y) <==> x[i]=y

Note

Inherited from __builtin__.list

LilyPondFile.__setslice__()

x.__setslice__(i, j, y) <==> x[i:j]=y

Use of negative indices is not supported.

Note

Inherited from __builtin__.list

LilyPondFile.__str__() <==> str(x)

Note

Inherited from __builtin__.object

Table Of Contents

This Page