From: Neil Puttock Date: Thu, 18 Sep 2008 22:01:59 +0000 (+0100) Subject: Snippets moved from LSR -> input/new. X-Git-Tag: release/2.11.59-1~1^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5c7ca683b7203cb953b653c8f210c8a0d9f094f4;p=lilypond.git Snippets moved from LSR -> input/new. --- diff --git a/input/new/aligning-and-centering-instrument-names.ly b/input/new/aligning-and-centering-instrument-names.ly new file mode 100644 index 0000000000..b6975adce2 --- /dev/null +++ b/input/new/aligning-and-centering-instrument-names.ly @@ -0,0 +1,53 @@ +\version "2.11.59" + +\header { + lsrtags = "text, paper-and-layout, titles" + texidoc = "The horizontal alignment of instrument names is tweaked +by changing the @code{Staff.InstrumentName #'self-alignment-X} property. +The @code{\\layout} variables @code{indent} and @code{short-indent} +define the space in which the instrument names are aligned before the +first and the following systems, respectively." + doctitle = "Aligning and centering instrument names" +} + +\paper { left-margin = 3\cm } +\score { + \new StaffGroup << + \new Staff { + \override Staff.InstrumentName #'self-alignment-X = #LEFT + \set Staff . instrumentName = \markup \left-column { + "Left aligned" + "instrument name" + } + \set Staff.shortInstrumentName = #"Left" + c''1 + \break + c''1 + } + \new Staff { + \override Staff.InstrumentName #'self-alignment-X = #CENTER + \set Staff.instrumentName = \markup \center-column { + "Centered" + "instrument name" + } + \set Staff.shortInstrumentName = #"Centered" + g'1 + g'1 + } + \new Staff { + \override Staff.InstrumentName #'self-alignment-X = #RIGHT + \set Staff.instrumentName = \markup \right-column { + "Right aligned" + "instrument name" + } + \set Staff.shortInstrumentName = #"Right" + e'1 + e'1 + } + >> + \layout { + ragged-right = ##t + indent = 4\cm + short-indent = 2\cm + } +} diff --git a/input/new/aligning-marks-with-various-notation-objects.ly b/input/new/aligning-marks-with-various-notation-objects.ly new file mode 100644 index 0000000000..e34bcda14b --- /dev/null +++ b/input/new/aligning-marks-with-various-notation-objects.ly @@ -0,0 +1,65 @@ +\version "2.11.59" + +\header { + lsrtags = "text" + texidoc = "If specified, text marks may be aligned with notation +objects other than bar lines. These objects include @code{ambitus}, +@code{breathing-sign}, @code{clef}, @code{custos}, @code{staff-bar}, +@code{left-edge}, @code{key-cancellation}, @code{key-signature}, and +@code{time-signature}. + +In such cases, text marks will be horizontally centered above the +object. However this can be changed, as demonstrated on the second +line of this example (in a score with multiple staves, this setting +should be done for all the staves)." + doctitle = "Aligning marks with various notation objects" +} + +\relative c' { + e1 + + % the RehearsalMark will be centered above the Clef + \override Score.RehearsalMark #'break-align-symbols = #'(clef) + \key a \major + \clef treble + \mark "↓" + e1 + + % the RehearsalMark will be centered above the TimeSignature + \override Score.RehearsalMark #'break-align-symbols = #'(time-signature) + \key a \major + \clef treble + \time 3/4 + \mark "↓" + e2. + + % the RehearsalMark will be centered above the KeySignature + \override Score.RehearsalMark #'break-align-symbols = #'(key-signature) + \key a \major + \clef treble + \time 4/4 + \mark "↓" + e1 + + \break + e1 + + % the RehearsalMark will be aligned with the left edge of the KeySignature + \once \override Score.KeySignature #'break-align-anchor-alignment = #LEFT + \mark "↓" + \key a \major + e1 + + % the RehearsalMark will be aligned with the right edge of the KeySignature + \once \override Score.KeySignature #'break-align-anchor-alignment = #RIGHT + \key a \major + \mark "↓" + e1 + + % the RehearsalMark will be aligned with the left edge of the KeySignature + % and then shifted right by one unit. + \once \override Score.KeySignature #'break-align-anchor = #1 + \key a \major + \mark "↓" + e1 +} diff --git a/input/new/fine-tuning-pedal-brackets.ly b/input/new/fine-tuning-pedal-brackets.ly new file mode 100644 index 0000000000..327989148a --- /dev/null +++ b/input/new/fine-tuning-pedal-brackets.ly @@ -0,0 +1,21 @@ +\version "2.11.59" + +\header { + lsrtags = "keyboards, tweaks-and-overrides" + texidoc = "The appearance of pedal brackets may be altered in +different ways, using the relevant properties as shown in the +following example." + doctitle = "Fine-tuning pedal brackets" +} + +\paper { ragged-right = ##f } +\relative c'' { + c2\sostenutoOn c + c2\sostenutoOff c + \once \override Staff.PianoPedalBracket #'shorten-pair = #'(-7 . -2) + c2\sostenutoOn c + c2\sostenutoOff c + \once \override Staff.PianoPedalBracket #'edge-height = #'(0 . 3) + c2\sostenutoOn c + c2\sostenutoOff c +}