--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The shapeNoteStyles property gives you the ability to define various
+note heads styles for each step of the scale (as defined by the key
+signature or the \"tonic\" property).
+
+This property requires a set of symbols, which can be purely arbitrary
+(geometrical expressions such as triangle, cross, xcircle etc. are
+allowed) or based on old American engraving tradition (you can use some
+latin note names as well).
+
+That said, if you're trying to imitate old American song books, you may
+also want to try LilyPond's predefined note heads styles, through
+shortcut commands such as \\aikenHeads or \\sacredHarpHeads.
+
+This exemple shows different ways to obtain shape note heads, and
+demonstrates the ability to transpose a melody without losing the
+correspondance between harmonic functions and note heads styles.
+" }
+
+fragment = {
+ \key c \major
+ c1 d e f g a b c
+ \break
+}
+
+\relative {
+ \set shapeNoteStyles = ##(do re mi fa #f la ti)
+ \fragment
+}
+
+% temporary change help LSR integration -gp
+%{
+\transpose c d
+ \relative {
+ \set shapeNoteStyles = ##(do re mi fa #f la ti)
+ \fragment
+}
+
+\relative {
+ \set shapeNoteStyles = ##(cross triangle fa #f mensural xcircle diamond)
+ \fragment
+}
+%}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The \\whiteout command underlays a white box under a markup. Since
+staff lines are in a lower layer than most other grobs, this white box
+will not overlap any other grob.
+" }
+
+\paper
+{
+ ragged-right = ##t
+}
+{
+ \override TextScript #'extra-offset = #'(2 . 4)
+ c'4-\markup { \whiteout \pad-markup #0.5 foo } c
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Individual noteheads in a chord can be modified with the @code{\\tweak}
+command inside a chord, by altering the @code{'font-size} property.
+
+
+Inside the chord (within the brackets @code{< >}), before the note to
+be altered, place the @code{\\tweak} command, followed by
+@code{#'font-size} and define the proper size like @code{#-2} (a tiny
+notehead).
+
+
+The code for the chord example shown: @code{}
+" }
+
+\header{
+ title = "Modify an individual notehead's size in a chord"
+}
+
+Notes = \relative {
+ <\tweak #'font-size #+2 c e g c \tweak #'font-size #-2 e>1^\markup{A tiny e}_\markup{A big c}
+}
+
+\score{
+ \Notes
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The appearance of slurs may be changed from solid to dotted or dashed.
+
+
+" }
+
+\score{
+ \relative c'{
+ c( d e c) |
+ \slurDotted
+ c( d e c) |
+ \slurSolid
+ c( d e c) |
+ \slurDashed
+ c( d e c) |
+ \slurSolid
+ c( d e c) |
+ }
+ \layout{ raggedright=##t }
+}
+
+
+
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The command @code{\\clef \"treble_8\"} is equivalent to setting
+@code{clefGlyph}, @code{clefPosition} (which controls the Y position of
+the clef), @code{middleCPosition} and @code{clefOctavation}. A clef is
+printed when any of these properties are changed. The following
+example shows possibilities when setting properties manually.
+" }
+
+{
+ \set Staff.clefGlyph = #"clefs.F"
+ \set Staff.clefPosition = #2
+ c'4
+ \set Staff.clefGlyph = #"clefs.G"
+ c'4
+ \set Staff.clefGlyph = #"clefs.C"
+ c'4
+ \set Staff.clefOctavation = #7
+ c'4
+ \set Staff.clefOctavation = #0
+ \set Staff.clefPosition = #0
+ c'4
+ \clef "bass"
+ c'4
+ \set Staff.middleCPosition = #4
+ c'4
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+ The clef indicates which lines of the staff correspond to which
+pitches. The clef is set with the @code{\\clef} command
+
+
+ @{ c''2 \\clef alto g'2 @}
+
+
+Supported clefs include:
+
+@code{treble, violin, G, G2} G clef on 2nd line @code{alto, C} C clef
+on 3rd line @code{tenor} C clef on 4th line. @code{bass, F} F clef on
+4th line @code{french} G clef on 1st line, so-called French violin clef
+@code{soprano} C clef on 1st line @code{mezzosoprano} C clef on 2nd
+line @code{baritone} C clef on 5th line @code{varbaritone} F clef on
+3rd line @code{subbass} F clef on 5th line @code{percussion} percussion
+clef @code{tab} tablature clef
+
+ By adding @code{_8} or @code{^8} to the clef name, the clef is
+transposed one octave down or up, respectively, and @code{_15} and
+@code{^15} transposes by two octaves. The argument clefname must be
+enclosed in quotes when it contains underscores or digits. See the last
+two bars for an example.
+" }
+
+{ g'2 \clef alto g'2
+ \clef tenor g'2 \clef bass g'2
+ \clef french g'2 \clef soprano g'2
+ \clef mezzosoprano g'2 \clef baritone g'2
+ \clef varbaritone g'2 \clef subbass g'2
+ \clef percussion g'2 \clef tab g'2
+% TO TRANSPOSE THE CLEF ONE OCTAVE UP OR DOWN SEE THE FOLLOWING BARS:
+ \clef "G_8" c'1 \clef "G^8" c'1
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+LilyPond gives you the ability to assign different colors to any grob
+in your score, such as NoteHeads, Alterations, Beams and so on, by
+simply overriding the #'color property and choosing your color (over
+200 colors are available, see the \"List of Colors\" Appendix in the
+Manual).
+" }
+
+\relative {
+ \override Accidental #'color = #darkgreen
+ \override Beam #'color = #cyan
+ \override NoteHead #'color = #darkyellow
+ c4
+ \override NoteHead #'color = #red
+ f
+ \override NoteHead #'color = #darkmagenta
+ g
+ \override NoteHead #'color = #darkblue
+ b
+ \override NoteHead #'color = #green
+ \override Stem #'color = #blue
+ e8 es d dis e4 r
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+In \"simple\" lead-sheets, sometimes no actual notes are written,
+instead only \"rhythmic patterns\" and chords above the measures are
+noted giving the structure of a song. Such a feature is for example
+useful while creating/transcribing the structure of a song and also
+when sharing lead sheets with guitarists or jazz musicians.
+
+The standard support for this is described in section \"Measure
+repeats\", but then the first beat has to be an ordinary note or rest.
+
+This example shows two solutions to this problem, by redefining
+ordinary rests to be printed as slashes. (If the duration of each beat
+is not a quarter note, replace the r4 in the definitions by a rest of
+the appropriate duration).
+" }
+
+% Macro to print single slash
+rs = {
+\once \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
+\once \override Rest #'thickness = #'0.48
+\once \override Rest #'slope = #'1.7
+r4
+}
+
+
+% Function to print a specified number of slashes
+comp = #(define-music-function (parser location count) ( integer?)
+#{
+\override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
+\override Rest #'thickness = #'0.48
+\override Rest #'slope = #'1.7
+\repeat unfold $count { r4 }
+\revert Rest #'stencil
+#})
+
+\score{
+\relative c'{
+ c d e f | \rs \rs \rs \rs | \comp #4 |
+}
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\header {
+ texidoc = "Arrows can be applied to text-spanners and line-spanners (such as the Glissando)"
+}
+
+\version "2.10.0"
+
+\paper {
+ ragged-right = ##t
+}
+
+\relative c'' {
+ \override TextSpanner #'bound-padding = #1.0
+ \override TextSpanner #'dash-fraction = #'()
+ \override TextSpanner #'bound-details #'right #'arrow = ##t
+ \override TextSpanner #'bound-details #'left #'text = #"fof"
+ \override TextSpanner #'bound-details #'right #'text = #"gag"
+ \override TextSpanner #'bound-details #'right #'padding = #0.6
+
+ \override TextSpanner #'bound-details #'right #'stencil-align-dir-y = #CENTER
+ \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER
+
+ \override Glissando #'bound-details #'right #'arrow = ##t
+ \override Glissando #'arrow-length = #0.5
+ \override Glissando #'arrow-width = #0.25
+
+ a8\startTextSpan gis8 a4 b4\glissando
+ b,4 | g' c\stopTextSpan c
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+A chord is formed by a enclosing a set of pitches in < and >. A chord
+may be followed by a duration, and a set of articulations, just like
+simple notes
+" }
+
+\relative c'
+{
+<c e g>4 <c>8
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The part combiner tool ( \\partcombine command ) allows you to combine
+different parts on a same Staff. You can choose whether you want or
+don't want to add texts such as \"solo\" or \"a2\", by defining the
+printPartCombineTexts property.
+
+For vocal scores (hymns), there is no need to add \"solo\"/\"a2\"
+texts, so they should be switched off. However, you'd better not use it
+if there are any solos, as they won't be indicated. In such cases, you
+may simply want to use standard LilyPond polyphony.
+
+This snippet presents the three ways two parts can be printed on a same
+staff : standard polyphony, \\partcombine whitout texts, and
+\\partcombine with texts.
+
+
+" }
+
+musicUp = { \time 4/4
+ \relative c'' {
+ a4 c4.(g8) a4 |
+ g4 e' g,( a8 b) |
+ c b a2.
+ }
+}
+
+musicDown = {
+ \relative c'' {
+ g4 e4.(d8) c4 |
+ r2 g'4( f8 e) |
+ d2 a
+ }
+}
+\score{
+ \new Staff {
+ \set Staff.instrumentName = "Standard polyphony "
+ << \musicUp \\ \musicDown >>
+ }
+ \layout{
+ indent = 6.0\cm
+ }
+}
+
+\score{
+ \context Staff {
+ \set Staff.instrumentName = "PartCombine without texts "
+ \partcombine \musicUp \musicDown
+ }
+ \layout{
+ indent = 6.0\cm
+ \context {
+ \Voice
+ printPartCombineTexts = ##f
+ }
+ }
+}
+
+\score{
+ \context Staff {
+ \set Staff.instrumentName = "PartCombine with texts "
+ \partcombine \musicUp \musicDown
+ }
+ \layout{
+ indent = 6.0\cm
+ \context {
+ \Voice
+ printPartCombineTexts = ##t
+ }
+ }
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+LilyPond makes drums input quite easy, with powerful pre-configured
+tools such as the \\drummode function and the DrumStaff context: drums
+are placed to their own staff positions (with a special clef symbol)
+and have note heads according to the drum. You can easily attach an
+extra symbol to the drum, and restrict the number of lines.
+" }
+
+drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh \repeat "unfold" 5 {hhc8 hho hhc8 hh16 hh} hhc4 r4 r2 }
+drl = \drummode {\repeat "unfold" 3 {bd4 sn8 bd bd4 << bd ss >> } bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
+timb = \drummode { \repeat "unfold" 2 {timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb} }
+
+\score {
+ \repeat "volta" 2 {
+ <<
+ \new DrumStaff \with {
+ drumStyleTable = #timbales-style
+ \override StaffSymbol #'line-count = #2
+ \override BarLine #'bar-size = #2
+ } <<
+ \set Staff.instrumentName = "timbales"
+ \timb
+ >>
+ \new DrumStaff <<
+ \set Staff.instrumentName = "drums"
+ \new DrumVoice {\stemUp \drh }
+ \new DrumVoice {\stemDown \drl }
+ >>
+ >>
+ }
+ \layout {}
+
+ \midi {
+ \context {
+ \Score
+ tempoWholesPerMinute = #(ly:make-moment 120 4)
+ }
+ }
+
+
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+You can alter the number of stems in a beam. In this example, two sets
+of four 32nds are joined, as if they were 8th notes.
+
+
+
+" }
+
+\relative {
+ #(override-auto-beam-setting '(end * * * *) 1 4)
+ f32 g a b b a g f
+
+ f32 g a
+ \set stemRightBeamCount = #1 b
+ \set stemLeftBeamCount = #1 b
+ a g f
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Lilypond can subdivide beams automatically. Set the property
+subdivideBeams, and beams are subdivided at beat positions (as
+specified in beat length)
+" }
+
+\relative{ b'32^"default"[ a g f c' b a g f e d' c b a g f ]
+ \set subdivideBeams = ##t
+ b32^"subdivision enabled"[ a g f c' b a g f e d' c b a g f ]
+ \set Score.beatLength = #(ly:make-moment 1 8)
+ b32^"beatLength 1 8"[ a g f c' b a g f e d' c b a g f ]
+ \set Score.beatLength = #(ly:make-moment 1 16)
+ b32^"beatLength 1 16"[ a g f c' b a g f e d' c b a g f ]
+ }
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+By default, beams can't be printed across line breaks. Here's a way to
+force the line break, by setting the @code{#'breakable} property. See
+also in the manual the \"Line Breaking\" and \"Manual beams\" sections.
+" }
+
+\layout { ragged-right= ##t }
+
+\relative c'' {
+ \override Score.Beam #'breakable = ##t
+ \time 3/16 c16-[ d e \break f-]
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+This form of notation is used for the chant of the Psalms, where verses
+aren't always the same length.
+" }
+
+stemon = { \override Staff.Stem #'transparent = ##f }
+stemoff = { \override Staff.Stem #'transparent = ##t }
+
+\score {
+\new Staff \with {\remove "Time_signature_engraver" }
+{
+ \key g \minor
+ \set Score.timing = ##f
+ \stemoff a'\breve bes'4 g'4
+ \stemon a'2 \bar "||"
+ \stemoff a'\breve g'4 a'4
+ \stemon f'2 \bar "||"
+ \stemoff a'\breve^\markup { \italic flexe }
+ \stemon g'2 \bar "||"
+}
+\layout { raggedright = ##t}
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Default behaviour of tuplet-bracket visibility is to print a bracket
+unless there is a beam of the same length as the tuplet. To control the
+visibility of tuplet brackets, you can set the property TupletBracket
+#'bracket-visibility to either ##t (always print a bracket), ##f (never
+print a bracket) or #'if-no-beam (only print a bracket if there is no
+beam).
+" }
+
+mus = \relative c'' {
+ \times 2/3 {c16 [ d e } f8]
+ \times 2/3 {c8 d e }
+ \times 2/3 { c4 d e }
+}
+
+\new Voice \relative c'{
+ << \mus s4^"default" >>
+ \override TupletBracket #'bracket-visibility = #'if-no-beam
+ << \mus s4^"'if-no-beam" >>
+ \override TupletBracket #'bracket-visibility = ##t
+ << \mus s4^"#t" >>
+ \override TupletBracket #'bracket-visibility = ##f
+ << \mus s4^"#f" >>
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+In \"simple\" lead-sheets, sometimes no actual notes are written,
+instead only \"rhythmic patterns\" and chords above the measures are
+noted giving the structure of a song. Such a feature is for example
+useful while creating/transcribing the structure of a song and also
+when sharing lead sheets with guitarists or jazz musicians.
+
+The standard support for this is described in section \"Measure
+repeats\", but then the first beat has to be an ordinary note or rest.
+
+This example shows two solutions to this problem, by redefining
+ordinary rests to be printed as slashes. (If the duration of each beat
+is not a quarter note, replace the r4 in the definitions by a rest of
+the appropriate duration).
+" }
+
+% Macro to print single slash
+rs = {
+\once \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
+\once \override Rest #'thickness = #'0.48
+\once \override Rest #'slope = #'1.7
+r4
+}
+
+
+% Function to print a specified number of slashes
+comp = #(define-music-function (parser location count) ( integer?)
+#{
+\override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
+\override Rest #'thickness = #'0.48
+\override Rest #'slope = #'1.7
+\repeat unfold $count { r4 }
+\revert Rest #'stencil
+#})
+
+\score{
+\relative c'{
+ c d e f | \rs \rs \rs \rs | \comp #4 |
+}
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Individual noteheads in a chord can be modified with the @code{\\tweak}
+command inside a chord, by altering the @code{'font-size} property.
+
+
+Inside the chord (within the brackets @code{< >}), before the note to
+be altered, place the @code{\\tweak} command, followed by
+@code{#'font-size} and define the proper size like @code{#-2} (a tiny
+notehead).
+
+
+The code for the chord example shown: @code{}
+" }
+
+\header{
+ title = "Modify an individual notehead's size in a chord"
+}
+
+Notes = \relative {
+ <\tweak #'font-size #+2 c e g c \tweak #'font-size #-2 e>1^\markup{A tiny e}_\markup{A big c}
+}
+
+\score{
+ \Notes
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+A chord is formed by a enclosing a set of pitches in < and >. A chord
+may be followed by a duration, and a set of articulations, just like
+simple notes
+" }
+
+\relative c'
+{
+<c e g>4 <c>8
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Clusters are a device to denote that a complete range of notes is to be
+played.
+" }
+
+\layout {
+ ragged-right = ##t
+}
+
+fragment = \relative c' {
+ c4 f4 <e d'>4
+ <g a>8 <e a> a4 c2 <d b>4 e4
+ c4
+}
+
+<<
+ \new Staff \fragment
+ \new Staff \makeClusters \fragment
+>>
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The part combiner tool ( \\partcombine command ) allows you to combine
+different parts on a same Staff. You can choose whether you want or
+don't want to add texts such as \"solo\" or \"a2\", by defining the
+printPartCombineTexts property.
+
+For vocal scores (hymns), there is no need to add \"solo\"/\"a2\"
+texts, so they should be switched off. However, you'd better not use it
+if there are any solos, as they won't be indicated. In such cases, you
+may simply want to use standard LilyPond polyphony.
+
+This snippet presents the three ways two parts can be printed on a same
+staff : standard polyphony, \\partcombine whitout texts, and
+\\partcombine with texts.
+
+
+" }
+
+musicUp = { \time 4/4
+ \relative c'' {
+ a4 c4.(g8) a4 |
+ g4 e' g,( a8 b) |
+ c b a2.
+ }
+}
+
+musicDown = {
+ \relative c'' {
+ g4 e4.(d8) c4 |
+ r2 g'4( f8 e) |
+ d2 a
+ }
+}
+\score{
+ \new Staff {
+ \set Staff.instrumentName = "Standard polyphony "
+ << \musicUp \\ \musicDown >>
+ }
+ \layout{
+ indent = 6.0\cm
+ }
+}
+
+\score{
+ \context Staff {
+ \set Staff.instrumentName = "PartCombine without texts "
+ \partcombine \musicUp \musicDown
+ }
+ \layout{
+ indent = 6.0\cm
+ \context {
+ \Voice
+ printPartCombineTexts = ##f
+ }
+ }
+}
+
+\score{
+ \context Staff {
+ \set Staff.instrumentName = "PartCombine with texts "
+ \partcombine \musicUp \musicDown
+ }
+ \layout{
+ indent = 6.0\cm
+ \context {
+ \Voice
+ printPartCombineTexts = ##t
+ }
+ }
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+This snippets shows you how to bring the lyrics line closer to the
+Staff.
+" }
+
+% Default layout:
+\score{
+<<
+\new Staff \new Voice = m \relative c'{ c4 d e f g f e d c1 }
+\new Lyrics \lyricsto m {aa aa aa aa aa aa aa aa aa }
+ >>
+}
+
+% Reducing the minimum space below the Staff and above the Lyrics:
+\score{
+<<
+\new Staff \with {\override VerticalAxisGroup #'minimum-Y-extent = #'(-1
+. 4)}
+ \new Voice = m \relative c'{ c4 d e f g f e d c1 }
+\new Lyrics \with {\override VerticalAxisGroup #'minimum-Y-extent =
+#'(-1.2 . 1)}
+\lyricsto m {aa aa aa aa aa aa aa aa aa }
+ >>
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Instrument names are generally printed at the left side of the staves.
+To align the names of several different intruments, you can put them in
+a \\markup block and use one of the following possibilites:
+
+
+*
+ Right-aligned instrument names: this is LilyPond's default behavior
+
+*
+ Center-aligned instrument names: with the \\hcenter-in #n syntax, you
+ can place the instrument names inside a padded box (n being the width
+ of the box)
+
+*
+ Left-aligned instrument names: you have to print the names on top of an
+ empty box, using the \\combine command
+ with a \\hspace #n object.
+
+
+" }
+
+\paper{
+ indent = #0
+ left-margin = #30
+ line-width = #160
+}
+
+\new StaffGroup \relative
+<<
+ \new Staff {
+ \set Staff.instrumentName = "blabla"
+ c1^"default" c1 \break
+ \set Staff.instrumentName = \markup { \hcenter-in #10 "blabla" }
+ c1^"centered" c1 \break
+ \set Staff.instrumentName = \markup {\combine \hspace #8 "blabla" }
+ c1^"left-aligned" c1
+
+ }
+ \new Staff {
+ \set Staff.instrumentName = "blo"
+ c1 c1 \break
+ \set Staff.instrumentName = \markup { \hcenter-in #10 "blo" }
+ c1 c1 \break
+ \set Staff.instrumentName = \markup {\combine \hspace #8 "blo" }
+ c1 c1
+ }
+
+>>
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+You can specify different horizontal alignment for your lyrics, by
+overriding the #'self-alignment-X property of the LyricText object. #-1
+is left, #0 is center and #1 is right; however, you can use #LEFT,
+#CENTER and #RIGHT as well.
+" }
+
+\relative c'' {
+c1 c c}
+\addlyrics {\once \override LyricText #'self-alignment-X = #LEFT "This is left-aligned"
+\once \override LyricText #'self-alignment-X = #CENTER "This is centered"
+\once \override LyricText #'self-alignment-X = #1 "this is right-aligned" }
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The \\whiteout command underlays a white box under a markup. Since
+staff lines are in a lower layer than most other grobs, this white box
+will not overlap any other grob.
+" }
+
+\paper
+{
+ ragged-right = ##t
+}
+{
+ \override TextScript #'extra-offset = #'(2 . 4)
+ c'4-\markup { \whiteout \pad-markup #0.5 foo } c
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+This example provides a function to typeset hairpin (de)crescendo with
+some additional text below it, such as \"molto\" or \"poco\".
+
+The example also illustrates how to use modify the way an object
+normally is printed, using some Scheme code.
+" }
+
+hairpinWithCenteredText = #(define-music-function
+ (parser location text) (markup?)
+#{
+\override Voice.Hairpin #'stencil = #(lambda (grob)
+ (ly:stencil-aligned-to
+ (ly:stencil-combine-at-edge
+ (ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER)
+ Y
+ DOWN
+ (ly:stencil-aligned-to (ly:text-interface::print grob) X CENTER))
+ X LEFT))
+\override Voice.Hairpin #'text = $text
+#})
+
+
+hairpinMolto = \hairpinWithCenteredText \markup {\italic "molto"}
+hairpinMore = \hairpinWithCenteredText \markup {\bigger "moltissimo"}
+
+\new Staff {
+ \hairpinMolto c'2\< c'2\f
+ \hairpinMore c'2\< c'2\f
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+Some dynamics may involve text indications (such as \"più forte\",
+\"piano subito\", etc.). They can be produced using a \\markup bloc.
+" }
+
+\layout{ragged-right = ##t}
+
+piuf = \markup { \italic "molto" \dynamic "f" }
+
+\relative c''{
+ c-\piuf
+ c
+ c2\< c2\!
+
+ c2\< c2\!
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+The part combiner tool ( \\partcombine command ) allows you to combine
+different parts on a same Staff. You can choose whether you want or
+don't want to add texts such as \"solo\" or \"a2\", by defining the
+printPartCombineTexts property.
+
+For vocal scores (hymns), there is no need to add \"solo\"/\"a2\"
+texts, so they should be switched off. However, you'd better not use it
+if there are any solos, as they won't be indicated. In such cases, you
+may simply want to use standard LilyPond polyphony.
+
+This snippet presents the three ways two parts can be printed on a same
+staff : standard polyphony, \\partcombine whitout texts, and
+\\partcombine with texts.
+
+
+" }
+
+musicUp = { \time 4/4
+ \relative c'' {
+ a4 c4.(g8) a4 |
+ g4 e' g,( a8 b) |
+ c b a2.
+ }
+}
+
+musicDown = {
+ \relative c'' {
+ g4 e4.(d8) c4 |
+ r2 g'4( f8 e) |
+ d2 a
+ }
+}
+\score{
+ \new Staff {
+ \set Staff.instrumentName = "Standard polyphony "
+ << \musicUp \\ \musicDown >>
+ }
+ \layout{
+ indent = 6.0\cm
+ }
+}
+
+\score{
+ \context Staff {
+ \set Staff.instrumentName = "PartCombine without texts "
+ \partcombine \musicUp \musicDown
+ }
+ \layout{
+ indent = 6.0\cm
+ \context {
+ \Voice
+ printPartCombineTexts = ##f
+ }
+ }
+}
+
+\score{
+ \context Staff {
+ \set Staff.instrumentName = "PartCombine with texts "
+ \partcombine \musicUp \musicDown
+ }
+ \layout{
+ indent = 6.0\cm
+ \context {
+ \Voice
+ printPartCombineTexts = ##t
+ }
+ }
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.12"
+
+\header { texidoc = "
+A demonstration of all headers.
+" }
+
+\header {
+copyright = "copyright"
+title = "title"
+subtitle = "subtitle"
+composer = "composer"
+arranger = "arranger"
+instrument = "instrument"
+metre = "metre"
+opus = "opus"
+piece = "piece"
+poet = "poet"
+texidoc = "All header fields with special meanings."
+ copyright = "public domain"
+ enteredby = "jcn"
+ source = "urtext"
+
+}
+
+
+\score {
+ \relative c'' { c1 c1 c1 c1 }
+}
+
+\score {
+ \relative c'' { c1 c1 c1 c1 }
+
+ \header {
+
+ title = "localtitle"
+ subtitle = "localsubtitle"
+ composer = "localcomposer"
+ arranger = "localarranger"
+ instrument = "localinstrument"
+ metre = "localmetre"
+ opus = "localopus"
+ piece = "localpiece"
+ poet = "localpoet"
+ copyright = "localcopyright"
+ }
+}
+
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.11.25"
+
+\header {
+ texidoc = "Text that can spread over pages is entered with the
+@code{\\markuplines} command."
+}
+
+#(set-default-paper-size "a6")
+
+#(define-markup-list-command (paragraph layout props args) (markup-list?)
+ (interpret-markup-list layout props
+ (make-justified-lines-markup-list (cons (make-hspace-markup 2) args))))
+
+%% Candide, Voltaire
+\markuplines \override-lines #'(baseline-skip . 2.5) {
+ \paragraph {
+ Il y avait en Westphalie, dans le château de M. le baron de
+ Thunder-ten-tronckh, un jeune garçon à qui la nature avait donné
+ les mœurs les plus douces. Sa physionomie annonçait son âme.
+ Il avait le jugement assez droit, avec l'esprit le plus simple ;
+ c'est, je crois, pour cette raison qu'on le nommait Candide. Les
+ anciens domestiques de la maison soupçonnaient qu'il était fils
+ de la sœur de monsieur le baron et d'un bon et honnête
+ gentilhomme du voisinage, que cette demoiselle ne voulut jamais
+ épouser parce qu'il n'avait pu prouver que soixante et onze
+ quartiers, et que le reste de son arbre généalogique avait été
+ perdu par l'injure du temps.
+ }
+ \paragraph {
+ Monsieur le baron était un des plus puissants seigneurs de la
+ Westphalie, car son château avait une porte et des fenêtres. Sa
+ grande salle même était ornée d'une tapisserie. Tous les chiens
+ de ses basses-cours composaient une meute dans le besoin ; ses
+ palefreniers étaient ses piqueurs; le vicaire du village était
+ son grand-aumônier. Ils l'appelaient tous monseigneur, et ils
+ riaient quand il faisait des contes.
+ }
+}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+\version "2.10.0"
+
+%% Edit this file using a Unicode aware editor, such as GVIM, GEDIT, Emacs
+
+%{
+
+You may have to install additional fonts.
+
+Red Hat Fedora
+
+ taipeifonts fonts-xorg-truetype ttfonts-ja fonts-arabic \
+ ttfonts-zh_CN fonts-ja fonts-hebrew
+
+Debian GNU/Linux
+
+ apt-get install emacs-intl-fonts xfonts-intl-.* \
+ ttf-kochi-gothic ttf-kochi-mincho \
+ xfonts-bolkhov-75dpi xfonts-cronyx-100dpi xfonts-cronyx-75dpi
+%}
+
+\header {
+
+ texidoc = "Various scripts may be used for texts (like titles and
+lyrics) introduced by entering them in UTF-8 encoding, and using a
+Pango based backend. Depending on the fonts installed, this fragment
+will render Bulgarian (Cyrillic), Hebrew, Japanese and Portuguese.
+
+"
+
+}
+
+% Cyrillic font
+bulgarian = \lyricmode {
+ Жълтата дюля беше щастлива, че пухът, който цъфна, замръзна като гьон.
+}
+
+hebrew = \lyricmode {
+ זה כיף סתם לשמוע איך תנצח קרפד עץ טוב בגן.
+}
+
+japanese = \lyricmode {
+ いろはにほへど ちりぬるを
+ わがよたれぞ つねならむ
+ うゐのおくや まけふこえて
+ あさきゆめみじ ゑひもせず
+}
+
+% "a legal song to you"
+portuguese = \lyricmode {
+ à vo -- cê uma can -- ção legal
+}
+
+\paper {
+ ragged-right = ##T
+}
+
+\relative {
+ c2 d e f g f e
+}
+\addlyrics { \bulgarian }
+\addlyrics { \hebrew }
+\addlyrics { \japanese }
+\addlyrics { \portuguese }