From fa9315f8d47085b15ded627d762e4d3619da6ac9 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 24 Nov 2007 21:56:46 -0800 Subject: [PATCH] LSR: automatic update. --- ...yles-depending-on-the-step-of-the-scale.ly | 47 ++++++++++++ ...staff-lines-using-the--whiteout-command.ly | 17 +++++ ...ing-an-individual-notes-size-in-a-chord.ly | 28 +++++++ ...f-a-slur-from-solid-to-dotted-or-dashed.ly | 27 +++++++ .../clefs-commonly-tweaked-properties.ly | 30 ++++++++ input/lsr/editorial/clefs.ly | 38 ++++++++++ input/lsr/editorial/coloring-objects.ly | 26 +++++++ input/lsr/editorial/rhythmic-slashes.ly | 43 +++++++++++ input/lsr/expressive/line-arrows.ly | 29 ++++++++ .../chords-entry---simultaneous-notes.ly | 13 ++++ .../combining-two-parts-on-the-same-staff.ly | 74 +++++++++++++++++++ input/lsr/rhythms/adding-drum-parts.ly | 45 +++++++++++ .../altering-the-number-of-stems-in-a-beam.ly | 21 ++++++ .../rhythms/automatic-beam-subdivisions.ly | 18 +++++ input/lsr/rhythms/beam-across-line-breaks.ly | 15 ++++ input/lsr/rhythms/chant-or-psalms-notation.ly | 25 +++++++ .../controlling-tuplet-bracket-visibility.ly | 28 +++++++ input/lsr/rhythms/rhythmic-slashes.ly | 43 +++++++++++ ...ing-an-individual-notes-size-in-a-chord.ly | 28 +++++++ .../chords-entry---simultaneous-notes.ly | 13 ++++ input/lsr/simultaneous/clusters.ly | 22 ++++++ .../combining-two-parts-on-the-same-staff.ly | 74 +++++++++++++++++++ .../text/adjusting-lyrics-vertical-spacing.ly | 27 +++++++ ...aligning-and-centering-instrument-names.ly | 52 +++++++++++++ input/lsr/text/aligning-lyrics.ly | 15 ++++ ...staff-lines-using-the--whiteout-command.ly | 17 +++++ .../center-text-below-hairpin-dynamics.ly | 34 +++++++++ .../combining-dynamics-with-markup-texts.ly | 20 +++++ .../combining-two-parts-on-the-same-staff.ly | 74 +++++++++++++++++++ input/lsr/text/demonstrating-all-headers.ly | 48 ++++++++++++ input/lsr/text/markup-lines.ly | 39 ++++++++++ input/lsr/text/utf-8.ly | 64 ++++++++++++++++ 32 files changed, 1094 insertions(+) create mode 100644 input/lsr/editorial/applying-noteheads-styles-depending-on-the-step-of-the-scale.ly create mode 100644 input/lsr/editorial/blanking-staff-lines-using-the--whiteout-command.ly create mode 100644 input/lsr/editorial/changing-an-individual-notes-size-in-a-chord.ly create mode 100644 input/lsr/editorial/changing-the-appearance-of-a-slur-from-solid-to-dotted-or-dashed.ly create mode 100644 input/lsr/editorial/clefs-commonly-tweaked-properties.ly create mode 100644 input/lsr/editorial/clefs.ly create mode 100644 input/lsr/editorial/coloring-objects.ly create mode 100644 input/lsr/editorial/rhythmic-slashes.ly create mode 100644 input/lsr/expressive/line-arrows.ly create mode 100644 input/lsr/pitches/chords-entry---simultaneous-notes.ly create mode 100644 input/lsr/pitches/combining-two-parts-on-the-same-staff.ly create mode 100644 input/lsr/rhythms/adding-drum-parts.ly create mode 100644 input/lsr/rhythms/altering-the-number-of-stems-in-a-beam.ly create mode 100644 input/lsr/rhythms/automatic-beam-subdivisions.ly create mode 100644 input/lsr/rhythms/beam-across-line-breaks.ly create mode 100644 input/lsr/rhythms/chant-or-psalms-notation.ly create mode 100644 input/lsr/rhythms/controlling-tuplet-bracket-visibility.ly create mode 100644 input/lsr/rhythms/rhythmic-slashes.ly create mode 100644 input/lsr/simultaneous/changing-an-individual-notes-size-in-a-chord.ly create mode 100644 input/lsr/simultaneous/chords-entry---simultaneous-notes.ly create mode 100644 input/lsr/simultaneous/clusters.ly create mode 100644 input/lsr/simultaneous/combining-two-parts-on-the-same-staff.ly create mode 100644 input/lsr/text/adjusting-lyrics-vertical-spacing.ly create mode 100644 input/lsr/text/aligning-and-centering-instrument-names.ly create mode 100644 input/lsr/text/aligning-lyrics.ly create mode 100644 input/lsr/text/blanking-staff-lines-using-the--whiteout-command.ly create mode 100644 input/lsr/text/center-text-below-hairpin-dynamics.ly create mode 100644 input/lsr/text/combining-dynamics-with-markup-texts.ly create mode 100644 input/lsr/text/combining-two-parts-on-the-same-staff.ly create mode 100644 input/lsr/text/demonstrating-all-headers.ly create mode 100644 input/lsr/text/markup-lines.ly create mode 100644 input/lsr/text/utf-8.ly diff --git a/input/lsr/editorial/applying-noteheads-styles-depending-on-the-step-of-the-scale.ly b/input/lsr/editorial/applying-noteheads-styles-depending-on-the-step-of-the-scale.ly new file mode 100644 index 0000000000..24f8565730 --- /dev/null +++ b/input/lsr/editorial/applying-noteheads-styles-depending-on-the-step-of-the-scale.ly @@ -0,0 +1,47 @@ +%% 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 +} +%} + diff --git a/input/lsr/editorial/blanking-staff-lines-using-the--whiteout-command.ly b/input/lsr/editorial/blanking-staff-lines-using-the--whiteout-command.ly new file mode 100644 index 0000000000..018e1d83d3 --- /dev/null +++ b/input/lsr/editorial/blanking-staff-lines-using-the--whiteout-command.ly @@ -0,0 +1,17 @@ +%% 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 +} diff --git a/input/lsr/editorial/changing-an-individual-notes-size-in-a-chord.ly b/input/lsr/editorial/changing-an-individual-notes-size-in-a-chord.ly new file mode 100644 index 0000000000..15a7d26ca7 --- /dev/null +++ b/input/lsr/editorial/changing-an-individual-notes-size-in-a-chord.ly @@ -0,0 +1,28 @@ +%% 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 +} diff --git a/input/lsr/editorial/changing-the-appearance-of-a-slur-from-solid-to-dotted-or-dashed.ly b/input/lsr/editorial/changing-the-appearance-of-a-slur-from-solid-to-dotted-or-dashed.ly new file mode 100644 index 0000000000..70f1183674 --- /dev/null +++ b/input/lsr/editorial/changing-the-appearance-of-a-slur-from-solid-to-dotted-or-dashed.ly @@ -0,0 +1,27 @@ +%% 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 } +} + + + + diff --git a/input/lsr/editorial/clefs-commonly-tweaked-properties.ly b/input/lsr/editorial/clefs-commonly-tweaked-properties.ly new file mode 100644 index 0000000000..90eb606cb1 --- /dev/null +++ b/input/lsr/editorial/clefs-commonly-tweaked-properties.ly @@ -0,0 +1,30 @@ +%% 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 +} + diff --git a/input/lsr/editorial/clefs.ly b/input/lsr/editorial/clefs.ly new file mode 100644 index 0000000000..68966e277a --- /dev/null +++ b/input/lsr/editorial/clefs.ly @@ -0,0 +1,38 @@ +%% 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 +} + diff --git a/input/lsr/editorial/coloring-objects.ly b/input/lsr/editorial/coloring-objects.ly new file mode 100644 index 0000000000..5bb8777531 --- /dev/null +++ b/input/lsr/editorial/coloring-objects.ly @@ -0,0 +1,26 @@ +%% 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 +} diff --git a/input/lsr/editorial/rhythmic-slashes.ly b/input/lsr/editorial/rhythmic-slashes.ly new file mode 100644 index 0000000000..e8e98093d0 --- /dev/null +++ b/input/lsr/editorial/rhythmic-slashes.ly @@ -0,0 +1,43 @@ +%% 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 | +} +} diff --git a/input/lsr/expressive/line-arrows.ly b/input/lsr/expressive/line-arrows.ly new file mode 100644 index 0000000000..94f3ecfff4 --- /dev/null +++ b/input/lsr/expressive/line-arrows.ly @@ -0,0 +1,29 @@ +%% 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 +} diff --git a/input/lsr/pitches/chords-entry---simultaneous-notes.ly b/input/lsr/pitches/chords-entry---simultaneous-notes.ly new file mode 100644 index 0000000000..f92b5d9de6 --- /dev/null +++ b/input/lsr/pitches/chords-entry---simultaneous-notes.ly @@ -0,0 +1,13 @@ +%% 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' +{ +4 8 +} diff --git a/input/lsr/pitches/combining-two-parts-on-the-same-staff.ly b/input/lsr/pitches/combining-two-parts-on-the-same-staff.ly new file mode 100644 index 0000000000..c31de07d25 --- /dev/null +++ b/input/lsr/pitches/combining-two-parts-on-the-same-staff.ly @@ -0,0 +1,74 @@ +%% 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 + } + } +} + diff --git a/input/lsr/rhythms/adding-drum-parts.ly b/input/lsr/rhythms/adding-drum-parts.ly new file mode 100644 index 0000000000..e2bc963a38 --- /dev/null +++ b/input/lsr/rhythms/adding-drum-parts.ly @@ -0,0 +1,45 @@ +%% 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) + } + } + + +} + diff --git a/input/lsr/rhythms/altering-the-number-of-stems-in-a-beam.ly b/input/lsr/rhythms/altering-the-number-of-stems-in-a-beam.ly new file mode 100644 index 0000000000..f50e78a766 --- /dev/null +++ b/input/lsr/rhythms/altering-the-number-of-stems-in-a-beam.ly @@ -0,0 +1,21 @@ +%% 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 +} + diff --git a/input/lsr/rhythms/automatic-beam-subdivisions.ly b/input/lsr/rhythms/automatic-beam-subdivisions.ly new file mode 100644 index 0000000000..5a29afc85f --- /dev/null +++ b/input/lsr/rhythms/automatic-beam-subdivisions.ly @@ -0,0 +1,18 @@ +%% 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 ] + } + diff --git a/input/lsr/rhythms/beam-across-line-breaks.ly b/input/lsr/rhythms/beam-across-line-breaks.ly new file mode 100644 index 0000000000..d4113ed506 --- /dev/null +++ b/input/lsr/rhythms/beam-across-line-breaks.ly @@ -0,0 +1,15 @@ +%% 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-] +} diff --git a/input/lsr/rhythms/chant-or-psalms-notation.ly b/input/lsr/rhythms/chant-or-psalms-notation.ly new file mode 100644 index 0000000000..b5263d1e8c --- /dev/null +++ b/input/lsr/rhythms/chant-or-psalms-notation.ly @@ -0,0 +1,25 @@ +%% 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} +} diff --git a/input/lsr/rhythms/controlling-tuplet-bracket-visibility.ly b/input/lsr/rhythms/controlling-tuplet-bracket-visibility.ly new file mode 100644 index 0000000000..080f8f8cd2 --- /dev/null +++ b/input/lsr/rhythms/controlling-tuplet-bracket-visibility.ly @@ -0,0 +1,28 @@ +%% 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" >> +} + diff --git a/input/lsr/rhythms/rhythmic-slashes.ly b/input/lsr/rhythms/rhythmic-slashes.ly new file mode 100644 index 0000000000..e8e98093d0 --- /dev/null +++ b/input/lsr/rhythms/rhythmic-slashes.ly @@ -0,0 +1,43 @@ +%% 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 | +} +} diff --git a/input/lsr/simultaneous/changing-an-individual-notes-size-in-a-chord.ly b/input/lsr/simultaneous/changing-an-individual-notes-size-in-a-chord.ly new file mode 100644 index 0000000000..15a7d26ca7 --- /dev/null +++ b/input/lsr/simultaneous/changing-an-individual-notes-size-in-a-chord.ly @@ -0,0 +1,28 @@ +%% 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 +} diff --git a/input/lsr/simultaneous/chords-entry---simultaneous-notes.ly b/input/lsr/simultaneous/chords-entry---simultaneous-notes.ly new file mode 100644 index 0000000000..f92b5d9de6 --- /dev/null +++ b/input/lsr/simultaneous/chords-entry---simultaneous-notes.ly @@ -0,0 +1,13 @@ +%% 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' +{ +4 8 +} diff --git a/input/lsr/simultaneous/clusters.ly b/input/lsr/simultaneous/clusters.ly new file mode 100644 index 0000000000..3b9969c815 --- /dev/null +++ b/input/lsr/simultaneous/clusters.ly @@ -0,0 +1,22 @@ +%% 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 4 + 8 a4 c2 4 e4 + c4 +} + +<< + \new Staff \fragment + \new Staff \makeClusters \fragment +>> diff --git a/input/lsr/simultaneous/combining-two-parts-on-the-same-staff.ly b/input/lsr/simultaneous/combining-two-parts-on-the-same-staff.ly new file mode 100644 index 0000000000..c31de07d25 --- /dev/null +++ b/input/lsr/simultaneous/combining-two-parts-on-the-same-staff.ly @@ -0,0 +1,74 @@ +%% 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 + } + } +} + diff --git a/input/lsr/text/adjusting-lyrics-vertical-spacing.ly b/input/lsr/text/adjusting-lyrics-vertical-spacing.ly new file mode 100644 index 0000000000..3387c8bfb5 --- /dev/null +++ b/input/lsr/text/adjusting-lyrics-vertical-spacing.ly @@ -0,0 +1,27 @@ +%% 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 } + >> +} diff --git a/input/lsr/text/aligning-and-centering-instrument-names.ly b/input/lsr/text/aligning-and-centering-instrument-names.ly new file mode 100644 index 0000000000..09cf34a073 --- /dev/null +++ b/input/lsr/text/aligning-and-centering-instrument-names.ly @@ -0,0 +1,52 @@ +%% 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 + } + +>> diff --git a/input/lsr/text/aligning-lyrics.ly b/input/lsr/text/aligning-lyrics.ly new file mode 100644 index 0000000000..3776f486a5 --- /dev/null +++ b/input/lsr/text/aligning-lyrics.ly @@ -0,0 +1,15 @@ +%% 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" } diff --git a/input/lsr/text/blanking-staff-lines-using-the--whiteout-command.ly b/input/lsr/text/blanking-staff-lines-using-the--whiteout-command.ly new file mode 100644 index 0000000000..018e1d83d3 --- /dev/null +++ b/input/lsr/text/blanking-staff-lines-using-the--whiteout-command.ly @@ -0,0 +1,17 @@ +%% 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 +} diff --git a/input/lsr/text/center-text-below-hairpin-dynamics.ly b/input/lsr/text/center-text-below-hairpin-dynamics.ly new file mode 100644 index 0000000000..4db721c4d5 --- /dev/null +++ b/input/lsr/text/center-text-below-hairpin-dynamics.ly @@ -0,0 +1,34 @@ +%% 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 +} + diff --git a/input/lsr/text/combining-dynamics-with-markup-texts.ly b/input/lsr/text/combining-dynamics-with-markup-texts.ly new file mode 100644 index 0000000000..69590e2297 --- /dev/null +++ b/input/lsr/text/combining-dynamics-with-markup-texts.ly @@ -0,0 +1,20 @@ +%% 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\! +} + diff --git a/input/lsr/text/combining-two-parts-on-the-same-staff.ly b/input/lsr/text/combining-two-parts-on-the-same-staff.ly new file mode 100644 index 0000000000..c31de07d25 --- /dev/null +++ b/input/lsr/text/combining-two-parts-on-the-same-staff.ly @@ -0,0 +1,74 @@ +%% 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 + } + } +} + diff --git a/input/lsr/text/demonstrating-all-headers.ly b/input/lsr/text/demonstrating-all-headers.ly new file mode 100644 index 0000000000..494a59c4f1 --- /dev/null +++ b/input/lsr/text/demonstrating-all-headers.ly @@ -0,0 +1,48 @@ +%% 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" + } +} + diff --git a/input/lsr/text/markup-lines.ly b/input/lsr/text/markup-lines.ly new file mode 100644 index 0000000000..695d87dce1 --- /dev/null +++ b/input/lsr/text/markup-lines.ly @@ -0,0 +1,39 @@ +%% 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. + } +} diff --git a/input/lsr/text/utf-8.ly b/input/lsr/text/utf-8.ly new file mode 100644 index 0000000000..d1bc933e78 --- /dev/null +++ b/input/lsr/text/utf-8.ly @@ -0,0 +1,64 @@ +%% 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 } -- 2.39.5