]> git.donarmstrong.com Git - lilypond.git/commitdiff
LSR: Update.
authorNeil Puttock <n.puttock@gmail.com>
Sun, 31 Jan 2010 17:16:59 +0000 (17:16 +0000)
committerNeil Puttock <n.puttock@gmail.com>
Sun, 31 Jan 2010 17:16:59 +0000 (17:16 +0000)
80 files changed:
Documentation/snippets/adding-an-extra-staff.ly
Documentation/snippets/adding-parentheses-around-an-expressive-mark-or-chordal-note.ly
Documentation/snippets/additional-voices-to-avoid-collisions.ly
Documentation/snippets/adjusting-the-shape-of-falls-and-doits.ly
Documentation/snippets/aligning-bar-numbers.ly
Documentation/snippets/ancient-headword.ly
Documentation/snippets/broken-crescendo-hairpin.ly
Documentation/snippets/changing--flageolet-mark-size.ly
Documentation/snippets/changing-the-chord-names-to-german-or-semi-german-notation.ly
Documentation/snippets/changing-the-time-signature-without-affecting-the-beaming.ly
Documentation/snippets/chords-headword.ly
Documentation/snippets/coloring-notes-depending-on-their-pitch.ly
Documentation/snippets/combining-two-parts-on-the-same-staff.ly
Documentation/snippets/compound-time-signatures.ly
Documentation/snippets/creating-arpeggios-across-notes-in-different-voices.ly
Documentation/snippets/creating-cross-staff-arpeggios-in-other-contexts.ly
Documentation/snippets/creating-text-spanners.ly
Documentation/snippets/displaying-grob-ancestry.ly
Documentation/snippets/dynamics-custom-text-spanner-postfix.ly
Documentation/snippets/dynamics-text-spanner-postfix.ly
Documentation/snippets/editorial-headword.ly
Documentation/snippets/engraving-ties-manually.ly
Documentation/snippets/entering-several-tuplets-using-only-one--times-command.ly
Documentation/snippets/figured-bass-headword.ly
Documentation/snippets/flamenco-notation.ly
Documentation/snippets/flat-flags-and-beam-nibs.ly
Documentation/snippets/forcing-rehearsal-marks-to-start-from-a-given-letter-or-number.ly
Documentation/snippets/grouping-beats.ly
Documentation/snippets/guitar-strum-rhythms.ly
Documentation/snippets/heavily-customized-polymetric-time-signatures.ly
Documentation/snippets/horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly
Documentation/snippets/inserting-score-fragments-above-a-staff,-as-markups.ly
Documentation/snippets/jazz-combo-template.ly
Documentation/snippets/keyboard-headword.ly
Documentation/snippets/letter-tablature-formatting.ly
Documentation/snippets/making-slurs-with-complex-dash-structure.ly
Documentation/snippets/modifying-default-values-for-articulation-shorthand-notation.ly
Documentation/snippets/new/ancient-headword.ly
Documentation/snippets/new/changing-the-time-signature-without-affecting-the-beaming.ly
Documentation/snippets/new/chords-headword.ly
Documentation/snippets/new/compound-time-signatures.ly
Documentation/snippets/new/displaying-grob-ancestry.ly [new file with mode: 0644]
Documentation/snippets/new/dynamics-custom-text-spanner-postfix.ly
Documentation/snippets/new/dynamics-text-spanner-postfix.ly
Documentation/snippets/new/editorial-headword.ly
Documentation/snippets/new/figured-bass-headword.ly
Documentation/snippets/new/flamenco-notation.ly [new file with mode: 0644]
Documentation/snippets/new/grouping-beats.ly
Documentation/snippets/new/keyboard-headword.ly
Documentation/snippets/new/letter-tablature-formatting.ly [new file with mode: 0644]
Documentation/snippets/new/making-slurs-with-complex-dash-structure.ly
Documentation/snippets/new/numbers-as-easy-note-heads.ly
Documentation/snippets/new/piano-template-with-centered-dynamics.ly
Documentation/snippets/new/pitches-headword.ly
Documentation/snippets/new/screech-boink.ly
Documentation/snippets/new/simultaneous-headword.ly
Documentation/snippets/new/text-headword.ly
Documentation/snippets/new/using-ly-grob-object-to-access-grobs-with--tweak.ly [new file with mode: 0644]
Documentation/snippets/numbers-as-easy-note-heads.ly
Documentation/snippets/piano-template-with-centered-dynamics.ly
Documentation/snippets/pitches-headword.ly
Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
Documentation/snippets/printing-bar-numbers-at-regular-intervals.ly
Documentation/snippets/printing-bar-numbers-inside-boxes-or-circles.ly
Documentation/snippets/printing-hairpins-using-al-niente-notation.ly
Documentation/snippets/printing-the-bar-number-for-the-first-measure.ly
Documentation/snippets/rest-styles.ly
Documentation/snippets/screech-boink.ly
Documentation/snippets/showing-the-same-articulation-above-and-below-a-note-or-chord.ly
Documentation/snippets/simultaneous-headword.ly
Documentation/snippets/stemlets.ly
Documentation/snippets/sub-dividing-beams.ly
Documentation/snippets/text-headword.ly
Documentation/snippets/three-sided-box.ly
Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
Documentation/snippets/transcription-of-ancient-music-with-incipit.ly
Documentation/snippets/transposing-pitches-with-minimum-accidentals-smart-transpose.ly
Documentation/snippets/using-ly-grob-object-to-access-grobs-with--tweak.ly
Documentation/snippets/vertical-line-as-a-baroque-articulation-mark.ly
Documentation/snippets/volta-multi-staff.ly

index 82e27b00bf7d5e9ab7701a17121dac8499d79bd9..4d2ad062a80f1432c50f85e4b2662ae79daa79ab 100644 (file)
@@ -28,7 +28,8 @@ piece.
     \new StaffGroup \relative c'' {
       \new Staff {
         c1 | c <<
-          c1 \new Staff {
+          c1
+          \new Staff {
             \once \override Staff.TimeSignature #'stencil = ##f
             c1
           }
index befd73950bbf238cba74dd824bf7efa631b8b10a..3d6407cdf1269c0bcb68ee99721bf006a2b8d78d 100644 (file)
@@ -17,8 +17,8 @@ objetos entre paréntesis.  El grob asociado es
 
   texidoc = "
 The @code{\\parenthesize} function is a special tweak that encloses
-objects in parentheses.  The associated grob is
-@code{Score.ParenthesesItem}.
+objects in parentheses.  The associated grob is @code{ParenthesesItem}.
+
 
 "
   doctitle = "Adding parentheses around an expressive mark or chordal note"
@@ -31,4 +31,3 @@ objects in parentheses.  The associated grob is
   <d \parenthesize f a>2
 }
 
-
index e9f24dafadf185db2545dcc07e2d10653454305a..91e009f25af47896d889b3e3efa170e68bce6c59 100644 (file)
@@ -48,24 +48,34 @@ a variable using the Scheme function @code{context-spec-music}.
 } % begin verbatim
 
 voiceFive = #(context-spec-music (make-voice-props-set 4) 'Voice)
+
 \relative c'' {
-  \time 3/4 \key d \minor \partial 2
+  \time 3/4
+  \key d \minor
+  \partial 2
   <<
-    { \voiceOne
+    {
+      \voiceOne
       a4. a8
       e'4 e4. e8
       f4 d4. c8
-    } \\ {
+    }
+    \\
+    {
       \voiceThree
       f,2
       bes4 a2
       a4 s2
-    } \\ {
+    }
+    \\
+    {
       \voiceFive
       s2
       g4 g2
       f4 f2
-    } \\ {
+    }
+    \\
+    \bar "||"{
       \voiceTwo
       d2
       d4 cis2
index e5fbbc10a40f046a532e3f314f961d8312b4e0af..fdd8a2d06917edd37164dd841ef174aaa8930166 100644 (file)
@@ -41,9 +41,9 @@ adjust the shape of falls and doits.
 
 \relative c'' {
   \override Score.SpacingSpanner #'shortest-duration-space = #4.0
-  c2-\bendAfter #+5
+  c2-\bendAfter #5
   c2-\bendAfter #-3
-  c2-\bendAfter #+8
+  c2-\bendAfter #8
   c2-\bendAfter #-6
 }
 
index da7413ce724ab41d0510b6b6731652d2ef734851..0ab21064fc98575da252b17011c509077fcca9f0 100644 (file)
@@ -55,7 +55,7 @@ positioned directly over the bar line or left-aligned to the bar line.
 
 \relative c' {
   \set Score.currentBarNumber = #111
-  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
+  \override Score.BarNumber #'break-visibility = #all-visible
   % Increase the size of the bar number by 2
   \override Score.BarNumber #'font-size = #2
   % Print a bar number every second measure
index a497db4e52b6abd93c1f51e15d083b7235421240..64d0feb1a7f4e946e559ce0507aa8386222afe14 100644 (file)
@@ -5,10 +5,10 @@
 \version "2.13.10"
 
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 
@@ -20,7 +20,8 @@
 
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 \layout {
   \context {
     \Staff
-    \consists Custos_engraver
+    \consists "Custos_engraver"
   }
 }
-
index f7c3d7516001dbdc8dd6075a3baaefcca75c2a7c..7ee77e2f21fa9b6d4f831fde6917a641108fbe50 100644 (file)
@@ -51,28 +51,31 @@ draw the rectangle over the hairpin.
 } % begin verbatim
 
 \relative c' {
-  << {
-    \dynamicUp
-    \override DynamicLineSpanner #'staff-padding = #4
-    r2 r16 c'8.\pp r4
-  }
-  \\
-  {
-    \override DynamicLineSpanner #'layer = #0
-    des,2\mf\< ~
-    \override TextScript #'layer = #2
-    des16_\markup {
-      \postscript #"
-        1.9 -8 translate
-        5 4 scale
-        1 setgray
-        0 0 moveto
-        0 1 lineto
-        1 1 lineto
-        1 0 lineto
-        0 0 lineto
-        fill"
+  <<
+    {
+      \dynamicUp
+      \override DynamicLineSpanner #'staff-padding = #4
+      r2 r16 c'8.\pp r4
     }
-    r8. des4 ~ des16->\sff
-  } >>
+    \\
+    {
+      \override DynamicLineSpanner #'layer = #0
+      des,2\mf\< ~
+      \override TextScript #'layer = #2
+      des16_\markup {
+        \postscript #"
+          1.9 -8 translate
+          5 4 scale
+          1 setgray
+          0 0 moveto
+          0 1 lineto
+          1 1 lineto
+          1 0 lineto
+          0 0 lineto
+          fill"
+      }
+      r8. des4 ~ des16->\sff
+    }
+  >>
 }
+
index 5afaccdb07339a6a4b8b9f0747ccd887725c40f6..5c7659671584aaa56ed7aae88b1578df8d0e21f1 100644 (file)
@@ -40,12 +40,11 @@ function.
 } % begin verbatim
 
 smallFlageolet =
-#(let ((m (make-music 'ArticulationEvent
-                      'articulation-type "flageolet")))
-   (ly:music-set-property! m 'tweaks
-     (acons 'font-size -3
-       (ly:music-property m 'tweaks)))
-  m)
+#(let ((m (make-articulation "flageolet")))
+   (set! (ly:music-property m 'tweaks)
+         (acons 'font-size -3
+                (ly:music-property m 'tweaks)))
+   m)
 
 \layout { ragged-right = ##f }
 
index e57456cbe255777fad45aed5e5f17079916d1461..8abf79b6b38ff687e7c37de301adc6b3fee1b42b 100644 (file)
@@ -18,8 +18,8 @@ cifrado americano se puede cambiar por la alemana
 
   texidoc = "
 The english naming of chords (default) can be changed to german
-(@code{\\germanChords} replaces B and Bes to H and B) or semi-german
-(@code{\\semiGermanChords} replaces B and Bes to H and Bb).
+(@code{\\germanChords} replaces B and Bes with H and B) or semi-german
+(@code{\\semiGermanChords} replaces B and Bes with H and Bb).
 
 
 
@@ -29,8 +29,8 @@ The english naming of chords (default) can be changed to german
 } % begin verbatim
 
 music = \chordmode {
-  c1/c cis/cis
-  b/b bis/bis bes/bes
+  c1/c cis/cis
+  b1/b | bis/bis | bes/bes
 }
 
 %% The following is only here to print the names of the
@@ -38,7 +38,10 @@ music = \chordmode {
 %% print them.
 
 \layout {
-  \context {\ChordNames \consists Instrument_name_engraver }
+  \context {
+    \ChordNames
+    \consists "Instrument_name_engraver"
+  }
 }
 
 <<
index 6d13b945fe144da896e3c0a6d91d8e9fff224426..342236f69ec3420ad11439a1fca47c5657b1978d 100644 (file)
@@ -63,4 +63,3 @@ printed without changing any of the other properties:
 \markup {
   This snippet is deprecated as of 2.13.5 and will be removed in 2.14
 }
-
index 05e298f4b3424e67ad6f287d5cdd1752e52010f7..8e5a9366dec6e48788969f675d4c8e251307c9da 100644 (file)
@@ -4,10 +4,10 @@
 %% Note: this file works from version 2.12.0
 \version "2.13.10"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##f
-  line-width=15\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##f
+  line-width = 15\cm
+  indent = 0\cm
 }
 
 \header {
@@ -19,7 +19,8 @@
 
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
@@ -31,15 +32,15 @@ theChords = \chordmode {
   f2 bes2 | f1 | c2:7 f | c1 | \break
 }
 
-verseOne = \lyricmode{
-  \set stanza = "1. "
+verseOne = \lyricmode {
+  \set stanza = #"1."
   Fair is the sun - shine,
   Fair - er the moon - light
   And all the stars __ _  in heav'n a -- bove;
 }
 
-verseTwo = \lyricmode{
-  \set stanza = "2. "
+verseTwo = \lyricmode {
+  \set stanza = #"2."
   Fair are the mead - ows,
   Fair - er the wood - land,
   Robed in the flow -- ers of bloom -- ing spring;
@@ -50,7 +51,7 @@ Soprano = {
   \key f \major
   \stemUp
   f'2 f'4 f' | g'4 e' f'2 | a'4. a'8 a'4 a' | bes'4 g' a'2 |
-c''2 f''4 d'' |  c''2  bes'4  a' | bes'2 a' | g'1 |
+  c''2 f''4 d'' |  c''2  bes'4  a' | bes'2 a' | g'1 |
 }
 
 Alto = {
@@ -84,8 +85,8 @@ Bass = {
         >>
       }
     }
-    \context Lyrics="LyrOne" \lyricsto "sop" {\verseOne}
-    \context Lyrics="LyrTwo" \lyricsto "sop" {\verseTwo}
+    \context Lyrics = "LyrOne" \lyricsto "sop" { \verseOne }
+    \context Lyrics = "LyrTwo" \lyricsto "sop" { \verseTwo }
     \context Staff = lower {
       \new Voice {
         \clef bass
@@ -98,16 +99,16 @@ Bass = {
     }
   >>
 
-\layout {
-  %between-system-space = 1\mm
-  indent = 0
-  \context {
-    \Score
-    \remove "Bar_number_engraver"
-  }
-  \context { \Staff
-    \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
-  }
+  \layout {
+    indent = 0
+    \context {
+      \Score
+      \remove "Bar_number_engraver"
+    }
+    \context {
+      \Voice
+      \override StanzaNumber #'padding = #1.8
+    }
   }
 }
 \paper {  }
index 6f3d16f7dc84fc6440548b26a84c089aedaf7e2d..0ccb7715ddbd0eb46b713f74631605156b4e1f3a 100644 (file)
@@ -17,37 +17,37 @@ to distinguish enharmonics.
 
 %Association list of pitches to colors.
 #(define color-mapping
-  (list
-    (cons (ly:make-pitch 0 0 0) (x11-color 'red))
-    (cons (ly:make-pitch 0 0 1/2) (x11-color 'green))
-    (cons (ly:make-pitch 0 1 -1/2) (x11-color 'green))
-    (cons (ly:make-pitch 0 2 0) (x11-color 'red))
-    (cons (ly:make-pitch 0 2 1/2) (x11-color 'green))
-    (cons (ly:make-pitch 0 3 -1/2) (x11-color 'red))
-    (cons (ly:make-pitch 0 3 0) (x11-color 'green))
-    (cons (ly:make-pitch 0 4 1/2) (x11-color 'red))
-    (cons (ly:make-pitch 0 5 0) (x11-color 'green))
-    (cons (ly:make-pitch 0 5 -1/2) (x11-color 'red))
-    (cons (ly:make-pitch 0 6 1/2) (x11-color 'red))
-    (cons (ly:make-pitch 0 1 0) (x11-color 'blue))
-    (cons (ly:make-pitch 0 3 1/2) (x11-color 'blue))
-    (cons (ly:make-pitch 0 4 -1/2) (x11-color 'blue))
-    (cons (ly:make-pitch 0 5 1/2) (x11-color 'blue))
-    (cons (ly:make-pitch 0 6 -1/2) (x11-color 'blue))))
+   (list
+    (cons (ly:make-pitch 0 0 NATURAL) (x11-color 'red))
+    (cons (ly:make-pitch 0 0 SHARP) (x11-color 'green))
+    (cons (ly:make-pitch 0 1 FLAT) (x11-color 'green))
+    (cons (ly:make-pitch 0 2 NATURAL) (x11-color 'red))
+    (cons (ly:make-pitch 0 2 SHARP) (x11-color 'green))
+    (cons (ly:make-pitch 0 3 FLAT) (x11-color 'red))
+    (cons (ly:make-pitch 0 3 NATURAL) (x11-color 'green))
+    (cons (ly:make-pitch 0 4 SHARP) (x11-color 'red))
+    (cons (ly:make-pitch 0 5 NATURAL) (x11-color 'green))
+    (cons (ly:make-pitch 0 5 FLAT) (x11-color 'red))
+    (cons (ly:make-pitch 0 6 SHARP) (x11-color 'red))
+    (cons (ly:make-pitch 0 1 NATURAL) (x11-color 'blue))
+    (cons (ly:make-pitch 0 3 SHARP) (x11-color 'blue))
+    (cons (ly:make-pitch 0 4 FLAT) (x11-color 'blue))
+    (cons (ly:make-pitch 0 5 SHARP) (x11-color 'blue))
+    (cons (ly:make-pitch 0 6 FLAT) (x11-color 'blue))))
 
 %Compare pitch and alteration (not octave).
 #(define (pitch-equals? p1 p2)
-  (and
+   (and
     (= (ly:pitch-alteration p1) (ly:pitch-alteration p2))
     (= (ly:pitch-notename p1) (ly:pitch-notename p2))))
 
 #(define (pitch-to-color pitch)
-  (let ((color (assoc pitch color-mapping pitch-equals?)))
-    (if color
-      (cdr color))))
+   (let ((color (assoc pitch color-mapping pitch-equals?)))
+     (if color
+         (cdr color))))
 
 #(define (color-notehead grob)
-  (pitch-to-color
+   (pitch-to-color
     (ly:event-property (event-cause grob) 'pitch)))
 
 \score {
@@ -56,3 +56,4 @@ to distinguish enharmonics.
     c8 b d dis ees f g aes
   }
 }
+
index 518ba9a67c61f91f35705332422e5bd4ca2c977c..b2f3599cdcfda97e9086761e67531ce306a84089 100644 (file)
@@ -106,15 +106,15 @@ musicDown = \relative c'' {
   <<
     <<
     \new Staff {
-      \set Staff.instrumentName = "Standard polyphony  "
+      \set Staff.instrumentName = #"Standard polyphony"
       << \musicUp \\ \musicDown >>
     }
     \new Staff \with { printPartCombineTexts = ##f } {
-      \set Staff.instrumentName = "PartCombine without texts  "
+      \set Staff.instrumentName = #"PartCombine without texts"
       \partcombine \musicUp \musicDown
     }
     \new Staff {
-      \set Staff.instrumentName = "PartCombine with texts  "
+      \set Staff.instrumentName = #"PartCombine with texts"
       \partcombine \musicUp \musicDown
     }
     >>
index 7ac2b6418d4cc85371f3a10d0bf5c8a103257426..4e6045fe4c069764ce23ab1e920840de57099b82 100644 (file)
@@ -59,12 +59,11 @@ database.)
 
 
 #(define ((compound-time one two num) grob)
-  (grob-interpret-markup grob
-    (markup #:override '(baseline-skip . 0) #:number
-      (#:line (
-          (#:column (one num))
-          #:vcenter "+"
-          (#:column (two num)))))))
+   (grob-interpret-markup grob
+                          (markup #:override '(baseline-skip . 0) #:number
+                                  (#:line ((#:column (one num))
+                                           #:vcenter "+"
+                                           (#:column (two num)))))))
 
 \relative c' {
   \override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")
index 8501d83b4f85e059b60c97fd519c10346c884e17..1c090bf9c4f9bbe9c0d0c99c3bf339c0283f2deb 100644 (file)
@@ -35,7 +35,7 @@ portée (@code{Staff}) permet de distribuer un arpège sur plusieurs voix :
 
   texidoc = "
 An arpeggio can be drawn across notes in different voices on the same
-staff if the @code{Span_arpeggio_engraver} is moved to the @code{Staff}
+staff if the @code{Span_arpeggio_engraver} is added to the @code{Staff}
 context:
 
 "
@@ -48,7 +48,8 @@ context:
 \relative c' {
   \set Staff.connectArpeggios = ##t
   <<
-    { <e' g>4\arpeggio <d f> <d f>2 } \\
+    { <e' g>4\arpeggio <d f> <d f>2 }
+    \\
     { <d, f>2\arpeggio <g b>2 }
   >>
 }
index 34c1b6b5b3ca16310063208a90bc8985061db500..6a9b1d56bc19c784030727e80758d63f88c1b8cb 100644 (file)
@@ -36,15 +36,15 @@ système autre que le @code{PianoStaff} dès lors que vous incluez le
 
   texidoc = "
 Cross-staff arpeggios can be created in contexts other than
-@code{PianoStaff} if the @code{Span_arpeggio_engraver} is included in
-the @code{Score} context.
+@code{GrandStaff}, @code{PianoStaff} and @code{StaffGroup} if the
+@code{Span_arpeggio_engraver} is included in the @code{Score} context.
 
 "
   doctitle = "Creating cross-staff arpeggios in other contexts"
 } % begin verbatim
 
 \score {
-  \new StaffGroup {
+  \new ChoirStaff {
     \set Score.connectArpeggios = ##t
     <<
       \new Voice \relative c' {
@@ -52,11 +52,11 @@ the @code{Score} context.
         <d f>2\arpeggio
         <c e>1\arpeggio
       }
-      \new Voice  \relative c {
+      \new Voice \relative c {
         \clef bass
-         <c g'>2\arpeggio
-         <b g'>2\arpeggio
-         <c g'>1\arpeggio
+        <c g'>2\arpeggio
+        <b g'>2\arpeggio
+        <c g'>1\arpeggio
       }
     >>
   }
index 728ec0adcadca87992a0420fb2b98fef12f64958..24e5caec19f60c66d89448125a1cdd9b974c0b2d 100644 (file)
@@ -62,3 +62,4 @@ to modify its output.
   b4 c
   a4 \stopTextSpan
 }
+
index d26184ffb60a1704099dbd6d47675ced5dde662d..95e124dd672f9f03ce65d2984d111c34ff62b24f 100644 (file)
@@ -1,6 +1,7 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
+% Do not edit this file; it is automatically
+% generated from Documentation/snippets/new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.10
 \version "2.13.10"
 
 \header {
@@ -8,19 +9,31 @@
 
   texidoc = "
 When working with grob callbacks, it can be helpful to understand a
-grob's @qq{ancestry}. Most grobs have @qq{parents} which influence the
-positioning of the grob. X- and Y-parents influence the horizontal and
-vertical positions for the grob, respectively. Additionally, each
+grob's @qq{ancestry}.  Most grobs have @qq{parents} which influence the
+positioning of the grob.  X- and Y-parents influence the horizontal and
+vertical positions for the grob, respectively.  Additionally, each
 parent may have parents of its own.
 
 
-Unfortunately, there are several aspects of a grob's ancestry can lead
-to confusion:
+Unfortunately, there are several aspects of a grob's ancestry that can
+lead to confusion:
 
-* The types of parents a grob has may depend on context. * For some
-grobs, the X- and Y-parents are the same. * A particular @qq{ancestor}
-may be related to a grob in multiple ways. * The concept of
-@qq{generations} is misleading.
+
+@itemize
+
+@item
+The types of parents a grob has may depend on context.
+
+@item
+For some grobs, the X- and Y-parents are the same.
+
+@item
+A particular @qq{ancestor} may be related to a grob in multiple ways.
+
+@item
+The concept of @qq{generations} is misleading.
+
+@end itemize
 
 
 For example, the @code{System} grob can be both parent (on the Y-side)
@@ -34,15 +47,18 @@ ancestry.
 
 When called this way
 
-
+@example
 @{
- \\once \\override NoteHead #'before-line-breaking = #display-ancestry
- c @}
+   \\once \\override NoteHead #'before-line-breaking = #display-ancestry
+   c4
+@}
+@end example
 
 
 The following output is generated:
 
 
+@example
 ------------------------------------
 
 NoteHead X,Y: NoteColumn
@@ -55,13 +71,14 @@ NoteHead X,Y: NoteColumn
           X: NonMusicalPaperColumn
              X,Y: System
           Y: System
-
+@end example
 
 
 "
   doctitle = "Displaying grob ancestry"
 } % begin verbatim
 
+
 #(define (grob-name grob)
    (if (ly:grob? grob)
        (assoc-ref (ly:grob-property grob 'meta) 'name)
@@ -113,9 +130,8 @@ NoteHead X,Y: NoteColumn
 
 \relative c' {
   \once \override NoteHead #'before-line-breaking = #display-ancestry
-  f
+  f4
   \once \override Accidental #'before-line-breaking = #display-ancestry
   \once \override Arpeggio #'before-line-breaking = #display-ancestry
-  <f as c>\arpeggio
+  <f as c>4\arpeggio
 }
-
index 418c26a7094490dc3b2e0ea10a2e06b6ce160687..f57ea0775746dbd959283698bdcc68b9f061693b 100644 (file)
@@ -1,7 +1,7 @@
 % Do not edit this file; it is automatically
 % generated from Documentation/snippets/new
 % This file is in the public domain.
-%% Note: this file works from version 2.13.4
+%% Note: this file works from version 2.13.8
 \version "2.13.10"
 
 \header {
@@ -16,12 +16,18 @@ otherwise the spanner start will rather be assigned to the next note.
 
 % Two functions for (de)crescendo spanners where you can explicitly give the
 % spanner text.
-mycresc = #(define-music-function (parser location mymarkup) (string?)
-  (make-music 'CrescendoEvent 'span-direction START
-              'span-type 'text 'span-text mymarkup))
-mydecresc = #(define-music-function (parser location mymarkup) (string?)
-  (make-music 'DecrescendoEvent 'span-direction START
-              'span-type 'text 'span-text mymarkup))
+mycresc =
+#(define-music-function (parser location mymarkup) (markup?)
+   (make-music 'CrescendoEvent
+               'span-direction START
+               'span-type 'text
+               'span-text mymarkup))
+mydecresc =
+#(define-music-function (parser location mymarkup) (markup?)
+   (make-music 'DecrescendoEvent
+               'span-direction START
+               'span-type 'text
+               'span-text mymarkup))
 
 \relative c' {
   c4-\mycresc "custom cresc" c4 c4 c4 |
index fb142b76d5c1090161446d7c6ae281d1f3c2fb4e..90811e1f1c675adf62a05c42ebae87c60196203d 100644 (file)
@@ -16,15 +16,27 @@ hairpins by default, \cresc etc. produce text spanners by default.
 
 
 % Some sample text dynamic spanners, to be used as postfix operators
-crpoco = #(make-music 'CrescendoEvent 'span-direction START
-                      'span-type 'text 'span-text "cresc. poco a poco")
+crpoco =
+#(make-music 'CrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "cresc. poco a poco")
 % Redefine the existing \cresc, \dim and \decresc commands to use postfix syntax
-cresc = #(make-music 'CrescendoEvent 'span-direction START
-                     'span-type 'text 'span-text "cresc.")
-dim = #(make-music 'DecrescendoEvent 'span-direction START
-                   'span-type 'text 'span-text "dim.")
-decresc = #(make-music 'DecrescendoEvent 'span-direction START
-                       'span-type 'text 'span-text "decresc.")
+cresc =
+#(make-music 'CrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "cresc.")
+dim =
+#(make-music 'DecrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "dim.")
+decresc =
+#(make-music 'DecrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "decresc.")
 
 \relative c' {
   c4\cresc d4 e4 f4 |
index ddd9c94d5788f07069e4a9d5cfca7a3426dadaa6..10aab99dddc5f6df0bcbcd5c77e00b1c145e2201 100644 (file)
@@ -5,10 +5,10 @@
 \version "2.13.10"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 
@@ -20,7 +20,8 @@
 
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 % Piano sonata 18, Movt II, Scherzo
 % Measures 9 - 14
 
-\layout { }
-
 \new PianoStaff <<
 
-   % RH Staff
-   \new Staff {
-      \clef treble
-      \key af \major
-      \time 2/4
-      \set Staff.fingeringOrientations = #'(up up)
-      \set Score.currentBarNumber = #9
-      \partial 8
-      <af''-4 c''>8 \staccato
-      |
-      \set doubleSlurs = ##t
-      <bf''-5 df''-2>4 (
-      <af''-4 c''>8 \staccato )
-      \noBeam
-      c''8-5 \staccato \pp
-      |
-      \set doubleSlurs = ##f
-      bf'8.. (
-      af'32
-      g'8 ) \staccato
-      f'8 \staccato
-      |
-      e'4-2
-      r8
-      \once \override Script #'script-priority = #-100
-      \afterGrace
-         f'8 ( \trill ^ \markup { \finger "3-2" }
-         { e'16 [ f'16 ] }
-      |
-      g'8..-3
-      f'32
-      e'8-1 ) \staccato
-      d'8-2 \staccato
-      |
-      c'4
-      r4
-   }
+  % RH Staff
+  \new Staff {
+    \clef treble
+    \key af \major
+    \time 2/4
+    \set Staff.fingeringOrientations = #'(up)
+    \set Score.currentBarNumber = #9
+    \partial 8
+    <af''-4 c''>8 \staccato
+    |
+    \set doubleSlurs = ##t
+    <bf''-5 df''-2>4 (
+    <af''-4 c''>8 \staccato )
+    \noBeam
+    c''8-5 \staccato \pp
+    |
+    \set doubleSlurs = ##f
+    bf'8.. (
+    af'32
+    g'8 ) \staccato
+    f'8 \staccato
+    |
+    e'4-2
+    r8
+    \once \override Script #'script-priority = #-100
+    \afterGrace
+    f'8 ( \trill ^ \markup { \finger "3-2" }
+    { e'16 [ f'16 ] }
+    |
+    g'8..-3
+    f'32
+    e'8-1 ) \staccato
+    d'8-2 \staccato
+    |
+    c'4
+    r4
+  }
 
-   % LH Staff
-   \new Staff {
-      \key af \major
-      \clef treble
-      \override Fingering #'direction = #down
-      \set Staff.fingeringOrientations = #'(down down)
-      \partial 8
-      <af' af>8 \staccato
-      \set doubleSlurs = ##t
-      <g'-2 ef'-3>4 (
-      <af' af>8 ) \staccato
-      \noBeam
-      \clef bass
-      c'8-1 \staccato
-      |
-      \set doubleSlurs = ##f
-      bf8.. (
-      af32
-      g8-1 ) \staccato
-      f8 \staccato
-      |
-      e4
-      r8
-      \afterGrace
-         f8 ( \trill _ \markup { \finger "2-1" }
-         { e16 [ f16 ] }
-      |
-      g8..-1
-      f32
-      e8 ) \staccato
-      d8 \staccato
-      |
-      c4
-      r4
-   }
+  % LH Staff
+  \new Staff {
+    \key af \major
+    \clef treble
+    \override Fingering #'direction = #down
+    \set Staff.fingeringOrientations = #'(down)
+    \partial 8
+    <af' af>8 \staccato
+    \set doubleSlurs = ##t
+    <g'-2 ef'-3>4 (
+    <af' af>8 ) \staccato
+    \noBeam
+    \clef bass
+    c'8-1 \staccato
+    |
+    \set doubleSlurs = ##f
+    bf8.. (
+    af32
+    g8-1 ) \staccato
+    f8 \staccato
+    |
+    e4
+    r8
+    \afterGrace
+    f8 ( \trill _ \markup { \finger "2-1" }
+    { e16 [ f16 ] }
+    |
+    g8..-1
+    f32
+    e8 ) \staccato
+    d8 \staccato
+    |
+    c4
+    r4
+  }
 
 >>
index a979d96426d0a7d9fa3ef432155198ea1c845d06..d5feabc49f6802498b85f5a3694e3de5856fdcd1 100644 (file)
@@ -53,6 +53,6 @@ number indicates the direction (1 = up, -1 = down).
   <c e g>2 ~ <c e g>
   \override TieColumn #'tie-configuration =
     #'((0.0 . 1) (-2.0 . 1) (-4.0 . 1))
-  <c e g> ~ <c e g>
+  <c e g>2 ~ <c e g>
 }
 
index b9c25097246a21c0c897b45d569b565fab774218..82fa98ab9074256ecdda12cd1bacd2b0d443e352 100644 (file)
@@ -65,7 +65,7 @@ entered only once.
 
 
 Read the relevant sections of the Notation Reference for more
-information about @code{make-moment}.
+information about @code{ly:make-moment}.
 
 "
   doctitle = "Entering several tuplets using only one \\times command"
index 58a6e54b30cf717d2df61a96b034d21e24742aa7..0214d4e7ce4d3d1c4205c7435338e715d3f8c479 100644 (file)
@@ -4,14 +4,15 @@
 %% Note: this file works from version 2.12.0
 \version "2.13.10"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##f
-  line-width=16\cm
-  indent=1.5\cm
+\paper {
+  ragged-right = ##f
+  line-width = 16\cm
+  indent = 1.5\cm
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
@@ -43,7 +44,6 @@ extendOff = \bassFigureExtendersOff
 
       \new Staff = "violinoI" {
         \set Staff.instrumentName = \markup {
-          \hcenter-in #11
           \line { Violino I. }
         }
         \time 4/4
@@ -62,7 +62,6 @@ extendOff = \bassFigureExtendersOff
 
       \new Staff = "violinoII" {
         \set Staff.instrumentName = \markup {
-          \hcenter-in #11
           \line { Violino II. }
         }
         \time 4/4
@@ -81,11 +80,9 @@ extendOff = \bassFigureExtendersOff
 
     \new Staff = "violone" {
       \set Staff.instrumentName = \markup {
-        \hcenter-in #13 {
-          \center-column {
-            Violone,
-            \line { e Cembalo. }
-          }
+        \center-column {
+          Violone,
+          \line { e Cembalo. }
         }
       }
       \time 4/4
index d1b40d81775f2313644f996127c4cb3a11e5cf28..ef18d4962cc27b4ee957c936393256a271925841 100644 (file)
@@ -1,6 +1,7 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
+% Do not edit this file; it is automatically
+% generated from Documentation/snippets/new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.10
 \version "2.13.10"
 
 \header {
 For flamenco guitar, special notation is used:
 
 
-* a golpe symbol to indicate a slap on the guitar body with the nail of
-the ring finger * an arrow to indicate (the direction of) strokes *
+@itemize
+
+@item
+a golpe symbol to indicate a slap on the guitar body with the nail of
+the ring finger
+
+@item
+an arrow to indicate (the direction of) strokes
+
+@item
 different letters for fingering (@qq{p}: thumb, @qq{i}: index finger,
-@qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger) *
-3- and 4-finger rasgueados; stroke upwards with all fingers, ending
-with an up- and down using the index finger * abanicos: strokes (in
-tuples) with thumb (down), little and index finger (both up). There's
-also an abanico 2 where middle and ring finger are used instead of the
-little finger. * alza pua: fast playing with the thumb
+@qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger)
+
+@item
+3- and 4-finger rasgueados: stroke upwards with all fingers, ending
+with an up- and down using the index finger
+
+@item
+abanicos: strokes (in tuples) with thumb (down), little and index finger
+(both up) (there is also an abanico 2 where middle and ring finger are
+used instead of the little finger)
+
+@item
+alza pua: fast playing with the thumb
+
+@end itemize
 
 
 Most figures use arrows in combination with fingering; with abanicos
@@ -31,13 +49,14 @@ This snippet contains some header-like code that can be copied as
   doctitle = "Flamenco notation"
 } % begin verbatim
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%  Cut here ----- Start 'flamenco.ly'
 
 % Text indicators
-abanico   = \markup { \italic Abanico }
+abanico = \markup { \italic Abanico }
 rasgueaso = \markup { \italic Ras. }
-alzapua   = \markup { \italic Alzapua }
+alzapua = \markup { \italic Alzapua }
 
 % Finger stroke symbols
 strokeUp = \markup { \postscript #"
@@ -75,20 +94,20 @@ golpe = \markup { \postscript #"
   stroke
 "}
 
-strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp }}}
-iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp }}}
+strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp } } }
+iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp } } }
 
 % Strokes for all fingers
-pUp   = \markup { \column { \small p \line { \strokeUp }}}
-pDown = \markup { \column { \small p \line { \strokeDown }}}
-iUp   = \markup { \column { \small i \line { \strokeUp }}}
-iDown = \markup { \column { \small i \line { \strokeDown }}}
-mUp   = \markup { \column { \small m \line { \strokeUp }}}
-mDown = \markup { \column { \small m \line { \strokeDown }}}
-aUp   = \markup { \column { \small a \line { \strokeUp }}}
-aDown = \markup { \column { \small a \line { \strokeDown }}}
-xUp   = \markup { \column { \small x \line { \strokeUp }}}
-xDown = \markup { \column { \small x \line { \strokeDown }}}
+pUp   = \markup { \column { \small p \line { \strokeUp } } }
+pDown = \markup { \column { \small p \line { \strokeDown } } }
+iUp   = \markup { \column { \small i \line { \strokeUp } } }
+iDown = \markup { \column { \small i \line { \strokeDown } } }
+mUp   = \markup { \column { \small m \line { \strokeUp } } }
+mDown = \markup { \column { \small m \line { \strokeDown } } }
+aUp   = \markup { \column { \small a \line { \strokeUp } } }
+aDown = \markup { \column { \small a \line { \strokeDown } } }
+xUp   = \markup { \column { \small x \line { \strokeUp } } }
+xDown = \markup { \column { \small x \line { \strokeDown } } }
 
 
 % Just handy :)
@@ -234,5 +253,3 @@ part = \relative c' {
     ragged-right = ##t
   }
 }
-
-
index 8363d62f776df6852f9c02462c4481ddec141a0d..458b41db00e464eb2a4e47bdcf5f8fc44baaffb9 100644 (file)
@@ -158,14 +158,12 @@ carry both a left- and right-pointing flat flag. Do this with paired
       c16[]
       r8.
     }
-
     % Example 2
     \new RhythmicStaff {
       r8.
       \set stemRightBeamCount = #0
       c16[]
     }
-
     % Example 3
     \new RhythmicStaff {
       c16 c
@@ -174,7 +172,6 @@ carry both a left- and right-pointing flat flag. Do this with paired
       \set stemLeftBeamCount = #2
       c16 c c
     }
-
     % Example 4
     \new RhythmicStaff {
       c16 c
index 9452bb60c817594ba7e1c84370e4c47429673218..5d0178502bc7c0a18bbe616b010c18c6647bdef0 100644 (file)
@@ -14,7 +14,7 @@ marks, but from the letter or number desired.
   doctitle = "Forcing rehearsal marks to start from a given letter or number"
 } % begin verbatim
 
-\relative c''{
+\relative c'' {
   c1 \mark \default
   c1 \mark \default
   c1 \mark \default
index e083b9e142a5b3c13d39ea57bdad5d8d760beaaa..23292c8bde0517cbae9d1fdd1bd52510240914a7 100644 (file)
@@ -41,12 +41,7 @@ Beaming patterns may be altered with the @code{beatGrouping} property:
 } % begin verbatim
 
 
-\relative c'' {
-  \time 5/16
-  \overrideBeamSettings #'Score #'(5 . 16) #'end
-    #'((* . (2 3)))
-  c8^"(2+3)" c16 c8
-  \overrideBeamSettings #'Score #'(5 . 16) #'end
-    #'((* . (3 2)))
-  c8^"(3+2)" c16 c8
+\markup {
+  This snippet is deprecated as of version 2.13.5 and will be removed
+  in version 2.14.
 }
index f333ef4144af7a9e4202a8df29f43c15166f198b..de61ba31821e6b5b842126278eec8c456a8df42b 100644 (file)
@@ -44,12 +44,12 @@ melody notes, chord names and fret diagrams.
 <<
   \new ChordNames {
     \chordmode {
-      c1 f g c
+      c1 | f | g | c
     }
   }
   \new FretBoards {
     \chordmode {
-      c1 f g c
+      c1 | f | g | c
     }
   }
   \new Voice \with {
@@ -78,3 +78,4 @@ melody notes, chord names and fret diagrams.
     }
   }
 >>
+
index d9ec5803f7c94c5ccee42ab96b3d3ae17f3a32f4..f9276ab352bcb9c9c4b3e50c9cfde874399eac9d 100644 (file)
@@ -17,22 +17,20 @@ is the template of a real Balkan song!).
 
 #(define plus (markup #:vcenter "+"))
 #(define ((custom-time-signature one two three four five six
-           seven eight nine ten eleven num) grob)
-            (grob-interpret-markup grob
-              (markup #:override '(baseline-skip . 0) #:number
-                (#:line (
-                    (#:column (one num)) plus
-                    (#:column (two num)) plus
-                    (#:column (three num)) plus
-                    (#:column (four num)) plus
-                    (#:column (five num)) plus
-                    (#:column (six num)) plus
-                    (#:column (seven num)) plus
-                    (#:column (eight num)) plus
-                    (#:column (nine num)) plus
-                    (#:column (ten num)) plus
-                    (#:column (eleven num)))))))
-
+                                 seven eight nine ten eleven num) grob)
+   (grob-interpret-markup grob
+                          (markup #:override '(baseline-skip . 0) #:number
+                                  (#:line ((#:column (one num)) plus
+                                           (#:column (two num)) plus
+                                           (#:column (three num)) plus
+                                           (#:column (four num)) plus
+                                           (#:column (five num)) plus
+                                           (#:column (six num)) plus
+                                           (#:column (seven num)) plus
+                                           (#:column (eight num)) plus
+                                           (#:column (nine num)) plus
+                                           (#:column (ten num)) plus
+                                           (#:column (eleven num)))))))
 melody = \relative c'' {
   \set Staff.instrumentName = #"Bb Sop."
   \key g \major
@@ -48,7 +46,7 @@ melody = \relative c'' {
 }
 
 drum = \new DrumStaff \drummode {
-  \bar "|:" bd4.^\markup { "Drums" } sn4 bd \bar ":" sn4.
+  \bar "|:" bd4.^\markup { Drums } sn4 bd \bar ":" sn4.
   bd4 sn \bar ":" bd sn bd4. sn4 bd \bar ":|"
 }
 
@@ -56,3 +54,4 @@ drum = \new DrumStaff \drummode {
   \melody
   \drum
 }
+
index e679a2fda533f71bfd53336e8b6e13abd960dc6d..4aa3058d1508bfd51c436e3deebb6755ddd728a0 100644 (file)
@@ -64,9 +64,9 @@ semppMarkup = \markup { \halign #1.4 \italic "sempre" \dynamic "pp" }
 semppK =
 #(make-dynamic-script
   (markup #:line
-         (#:normal-text
-          #:italic "sempre"
-          #:dynamic "pp")))
+          (#:normal-text
+           #:italic "sempre"
+           #:dynamic "pp")))
 
 % Solution 3: Padding the dynamic script so the center-alignment
 %             puts it at the correct position
@@ -74,10 +74,10 @@ semppK =
 semppT =
 #(make-dynamic-script
   (markup #:line
-         (#:normal-text
-          #:italic "sempre"
-          #:dynamic "pp"
-          #:hspace 7.1)))
+          (#:normal-text
+           #:italic "sempre"
+           #:dynamic "pp"
+           #:hspace 7.1)))
 
 % Solution 4: Dynamic, setting the dimensions of the additional text to 0
 % Drawback: To lilypond "sempre" has no extent, so it might put
@@ -86,26 +86,37 @@ semppT =
 %           same alignment as without the additional text
 semppM =
 #(make-dynamic-script
-  (markup #:line (#:with-dimensions '(0 . 0) '(0 . 0)
-   #:right-align #:normal-text #:italic "sempre" #:dynamic "pp")))
+  (markup #:line
+          (#:with-dimensions '(0 . 0) '(0 . 0)
+                             #:right-align
+                             #:normal-text
+                             #:italic "sempre"
+                             #:dynamic "pp")))
 
 % Solution 5: Dynamic with explicit shifting inside the scheme function
 semppG =
 #(make-dynamic-script
-  (markup
-    #:hspace 0 #:translate '(-18.85 . 0)
-    #:line( #:normal-text #:italic "sempre" #:dynamic "pp")))
-
-% Solution 6: Dynamic with explicit alignment. This has only effect, if one sets X-offset!
+  (markup #:hspace 0
+          #:translate '(-18.85 . 0)
+          #:line (#:normal-text
+                  #:italic "sempre"
+                  #:dynamic "pp")))
+
+% Solution 6: Dynamic with explicit alignment. This has only effect
+%             if one sets X-offset!
 % Drawback: One needs to set DynamicText #'X-offset!
-% Drawback: Aligned at the right edge of the additional text, not at the center of pp
+% Drawback: Aligned at the right edge of the additional text,
+%           not at the center of pp
 semppMII =
-#(make-dynamic-script (markup #:line(#:right-align
-  #:normal-text #:italic "sempre" #:dynamic "pp")))
+#(make-dynamic-script
+  (markup #:line (#:right-align
+                  #:normal-text
+                  #:italic "sempre"
+                  #:dynamic "pp")))
 
 \context StaffGroup <<
   \context Staff = "s" <<
-    \set Staff.instrumentName = "Normal"
+    \set Staff.instrumentName = #"Normal"
     \relative c'' {
       \key es \major
       c4\pp c\p c c | c\ff c c\pp c
@@ -160,3 +171,4 @@ semppMII =
     }
   >>
 >>
+
index 336062a245cc535690e79bffdb75470acc21a011..e70d22ab2957f57f1a877689387aebd578024ae2 100644 (file)
@@ -18,7 +18,8 @@ tuning = \markup {
   \score {
     \new Staff \with { \remove "Time_signature_engraver" }
     {
-      \clef bass  <c, g, d g>1
+      \clef bass
+      <c, g, d g>1
     }
     \layout { ragged-right = ##t }
   }
index 0d54057d2d1a84202a75529dd3dd767bfcc9d577..27d860f7863a40e296346b9467d8935b32e30962 100644 (file)
@@ -221,7 +221,7 @@ PianoRH = {
 PianoLH = {
   \clef bass
   \global
-  \set Staff.midiInstrument = "acoustic grand"
+  \set Staff.midiInstrument = #"acoustic grand"
   <<
     \new Voice = "one" \lhUpper
     \new Voice = "two" \lhLower
@@ -293,7 +293,6 @@ drumContents = {
       \new DrumStaff \drumContents
     >>
   >>
-
   \layout {
     \context { \RemoveEmptyStaffContext }
     \context {
@@ -303,7 +302,6 @@ drumContents = {
       skipBars = ##t
     }
   }
-
   \midi { }
 }
 
index 7a8f14736605af047e8e899bc417003620494a3f..aebd0beec59a059c5e0ef05796626bdb71351878 100644 (file)
@@ -90,7 +90,7 @@ fermataLong = \markup {
     \clef bass
     <ds b! es'>4 ( ^ \markup \bold { Rall. }
     \override Script #'stencil = #(lambda (grob)
-      ly:script::print (grob-interpret-markup grob fermataLong))
+      (grob-interpret-markup grob fermataLong))
     <ds' as'>8 ) \fermata
     \noBeam
     \clef treble
index c3baf70353b5f49afcdc5825aa55d3294ba91d66..1646e3b529c198e7f58da04b67a7689a37cb4846 100644 (file)
@@ -1,6 +1,7 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
+% Do not edit this file; it is automatically
+% generated from Documentation/snippets/new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.10
 \version "2.13.10"
 
 \header {
@@ -13,15 +14,6 @@ Tablature can be formatted using letters instead of numbers.
   doctitle = "Letter tablature formatting"
 } % begin verbatim
 
-#(define (letter-tablature-format str context event)
-  (let ((tuning (ly:context-property context 'stringTunings))
-        (pitch (ly:event-property event 'pitch)))
-    (make-whiteout-markup
-     (make-vcenter-markup
-      (string (integer->char
-         (+ (char->integer #\a)
-            (- (ly:pitch-semitones pitch)
-            (list-ref tuning (- str 1))))))))))
 
 music = \relative c {
   c4 d e f
@@ -35,7 +27,7 @@ music = \relative c {
     \music
   }
   \new TabStaff \with {
-    tablatureFormat = #letter-tablature-format
+    tablatureFormat = #fret-letter-tablature-format
   }
   {
     \music
index 3a6e98de1ec1b25cae85546c711a86fa9a338227..8b068eca2660cfae50d432ff35f61af21b0deb1c 100644 (file)
@@ -103,10 +103,10 @@ set to 1 for a solid slur.
     Slur #'dash-definition = #'((0 0.3 0.1 0.75)
                                 (0.3 0.6 1 1)
                                 (0.65 1.0 0.4 0.75))
-  c( d e f)
+  c4( d e f)
   \once \override
     Slur #'dash-definition = #'((0 0.25 1 1)
                                 (0.3 0.7 0.4 0.75)
                                 (0.75 1.0 1 1))
-  c( d e f)
+  c4( d e f)
 }
index a9d0cbaf5b902d4da25cf4d30c5105740dc74df4..8f10d910512964cd58d9e9f138a5816aa5cfb668 100644 (file)
@@ -65,6 +65,8 @@ the default + symbol, assign the value @code{trill} to the variable
 } % begin verbatim
 
 \relative c'' { c1-+ }
+
 dashPlus = "trill"
+
 \relative c'' { c1-+ }
 
index 6fb70574b407734ef12fb666af8ac9f45ceb5051..d055bff585c5f27a8a6881cc74bb6ad6fb0b49d0 100644 (file)
@@ -1,10 +1,10 @@
 \version "2.12.0"
 
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 
@@ -15,7 +15,8 @@
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 \layout {
   \context {
     \Staff
-    \consists Custos_engraver
+    \consists "Custos_engraver"
   }
 }
-
index f045606ee797cc7c0fb085deb3de392d18fcdfcb..b583f8043071ba4d3fd73baa4464994627ad3e81 100644 (file)
@@ -17,4 +17,3 @@ printed without changing any of the other properties:
 \markup {
   This snippet is deprecated as of 2.13.5 and will be removed in 2.14
 }
-
index 9fcc5ce5b645d8d2d86bc90a3eb8c28276e38e9a..f726138f433694459e3dd82c2fdc6497d7ac36fb 100644 (file)
@@ -1,9 +1,9 @@
 \version "2.12.0"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##f
-  line-width=15\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##f
+  line-width = 15\cm
+  indent = 0\cm
 }
 
 \header {
@@ -14,7 +14,8 @@
 
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
@@ -26,15 +27,15 @@ theChords = \chordmode {
   f2 bes2 | f1 | c2:7 f | c1 | \break
 }
 
-verseOne = \lyricmode{
-  \set stanza = "1. "
+verseOne = \lyricmode {
+  \set stanza = #"1."
   Fair is the sun - shine,
   Fair - er the moon - light
   And all the stars __ _  in heav'n a -- bove;
 }
 
-verseTwo = \lyricmode{
-  \set stanza = "2. "
+verseTwo = \lyricmode {
+  \set stanza = #"2."
   Fair are the mead - ows,
   Fair - er the wood - land,
   Robed in the flow -- ers of bloom -- ing spring;
@@ -45,7 +46,7 @@ Soprano = {
   \key f \major
   \stemUp
   f'2 f'4 f' | g'4 e' f'2 | a'4. a'8 a'4 a' | bes'4 g' a'2 |
-c''2 f''4 d'' |  c''2  bes'4  a' | bes'2 a' | g'1 |
+  c''2 f''4 d'' |  c''2  bes'4  a' | bes'2 a' | g'1 |
 }
 
 Alto = {
@@ -79,8 +80,8 @@ Bass = {
         >>
       }
     }
-    \context Lyrics="LyrOne" \lyricsto "sop" {\verseOne}
-    \context Lyrics="LyrTwo" \lyricsto "sop" {\verseTwo}
+    \context Lyrics = "LyrOne" \lyricsto "sop" { \verseOne }
+    \context Lyrics = "LyrTwo" \lyricsto "sop" { \verseTwo }
     \context Staff = lower {
       \new Voice {
         \clef bass
@@ -93,16 +94,16 @@ Bass = {
     }
   >>
 
-\layout {
-  %between-system-space = 1\mm
-  indent = 0
-  \context {
-    \Score
-    \remove "Bar_number_engraver"
-  }
-  \context { \Staff
-    \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
-  }
+  \layout {
+    indent = 0
+    \context {
+      \Score
+      \remove "Bar_number_engraver"
+    }
+    \context {
+      \Voice
+      \override StanzaNumber #'padding = #1.8
+    }
   }
 }
 \paper {  }
index ec75ff2b76b6e612c1f90ecbee468e06f48bdb6e..25952ca158c7c61f6f5b0d7420f2054597ef81c0 100644 (file)
@@ -15,12 +15,11 @@ database.)
 }
 
 #(define ((compound-time one two num) grob)
-  (grob-interpret-markup grob
-    (markup #:override '(baseline-skip . 0) #:number
-      (#:line (
-          (#:column (one num))
-          #:vcenter "+"
-          (#:column (two num)))))))
+   (grob-interpret-markup grob
+                          (markup #:override '(baseline-skip . 0) #:number
+                                  (#:line ((#:column (one num))
+                                           #:vcenter "+"
+                                           (#:column (two num)))))))
 
 \relative c' {
   \override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")
diff --git a/Documentation/snippets/new/displaying-grob-ancestry.ly b/Documentation/snippets/new/displaying-grob-ancestry.ly
new file mode 100644 (file)
index 0000000..343d5bb
--- /dev/null
@@ -0,0 +1,132 @@
+\version "2.13.10"
+
+\header {
+  lsrtags = "tweaks-and-overrides"
+
+  texidoc = "
+When working with grob callbacks, it can be helpful to understand a
+grob's @qq{ancestry}.  Most grobs have @qq{parents} which influence the
+positioning of the grob.  X- and Y-parents influence the horizontal and
+vertical positions for the grob, respectively.  Additionally, each
+parent may have parents of its own.
+
+
+Unfortunately, there are several aspects of a grob's ancestry that can
+lead to confusion:
+
+
+@itemize
+
+@item
+The types of parents a grob has may depend on context.
+
+@item
+For some grobs, the X- and Y-parents are the same.
+
+@item
+A particular @qq{ancestor} may be related to a grob in multiple ways.
+
+@item
+The concept of @qq{generations} is misleading.
+
+@end itemize
+
+
+For example, the @code{System} grob can be both parent (on the Y-side)
+and grandparent (twice on the X-side) to a @code{VerticalAlignment}
+grob.
+
+
+This macro prints (to the console) a textual representation of a grob's
+ancestry.
+
+
+When called this way
+
+@example
+@{
+   \\once \\override NoteHead #'before-line-breaking = #display-ancestry
+   c4
+@}
+@end example
+
+
+The following output is generated:
+
+
+@example
+------------------------------------
+
+NoteHead X,Y: NoteColumn
+    X: PaperColumn
+       X,Y: System
+    Y: VerticalAxisGroup
+       X: NonMusicalPaperColumn
+          X,Y: System
+       Y: VerticalAlignment
+          X: NonMusicalPaperColumn
+             X,Y: System
+          Y: System
+@end example
+
+
+"
+  doctitle = "Displaying grob ancestry"
+}
+
+#(define (grob-name grob)
+   (if (ly:grob? grob)
+       (assoc-ref (ly:grob-property grob 'meta) 'name)
+       #f))
+
+#(define (get-ancestry grob)
+   (if (not (null? (ly:grob-parent grob X)))
+       (list (grob-name grob)
+             (get-ancestry (ly:grob-parent grob X))
+             (get-ancestry (ly:grob-parent grob Y)))
+       (grob-name grob)))
+
+#(define (format-ancestry lst padding)
+   (string-append
+    (symbol->string (car lst))
+    "\n"
+    (let ((X-ancestry
+           (if (list? (cadr lst))
+               (format-ancestry (cadr lst) (+ padding 3))
+               (symbol->string (cadr lst))))
+          (Y-ancestry
+           (if (list? (caddr lst))
+               (format-ancestry (caddr lst) (+ padding 3))
+               (symbol->string (caddr lst)))))
+      (if (equal? X-ancestry Y-ancestry)
+          (string-append
+           (format #f "~&")
+           (make-string padding #\space)
+           "X,Y: "
+           (if (list? (cadr lst))
+               (format-ancestry (cadr lst) (+ padding 5))
+               (symbol->string (cadr lst))))
+          (string-append
+           (format #f "~&")
+           (make-string padding #\space)
+           "X: " X-ancestry
+           "\n"
+           (make-string padding #\space)
+           "Y: " Y-ancestry
+           (format #f "~&"))))
+    (format #f "~&")))
+
+#(define (display-ancestry grob)
+   (display
+    (string-append
+     (format #f "~3&~a~2%" (make-string 36 #\-))
+     (format-ancestry (get-ancestry grob) 0)
+     (format #f "~2&"))))
+
+\relative c' {
+  \once \override NoteHead #'before-line-breaking = #display-ancestry
+  f4
+  \once \override Accidental #'before-line-breaking = #display-ancestry
+  \once \override Arpeggio #'before-line-breaking = #display-ancestry
+  <f as c>4\arpeggio
+}
index 1afa020950541915b3c2ff6e6164e3a5403e1df5..b698c498b39d3f2324434ec009ac976c2f32de24 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.13.4"
+\version "2.13.8"
 
 \header {
   lsrtags = "expressive-marks, tweaks-and-overrides"
@@ -11,12 +11,18 @@ otherwise the spanner start will rather be assigned to the next note.
 
 % Two functions for (de)crescendo spanners where you can explicitly give the
 % spanner text.
-mycresc = #(define-music-function (parser location mymarkup) (string?)
-  (make-music 'CrescendoEvent 'span-direction START
-              'span-type 'text 'span-text mymarkup))
-mydecresc = #(define-music-function (parser location mymarkup) (string?)
-  (make-music 'DecrescendoEvent 'span-direction START
-              'span-type 'text 'span-text mymarkup))
+mycresc =
+#(define-music-function (parser location mymarkup) (markup?)
+   (make-music 'CrescendoEvent
+               'span-direction START
+               'span-type 'text
+               'span-text mymarkup))
+mydecresc =
+#(define-music-function (parser location mymarkup) (markup?)
+   (make-music 'DecrescendoEvent
+               'span-direction START
+               'span-type 'text
+               'span-text mymarkup))
 
 \relative c' {
   c4-\mycresc "custom cresc" c4 c4 c4 |
index 8f6a852833bc1724fcd8abd5147850512d3c15cb..2641209779a19cd8613e5e3339c5968a003af762 100644 (file)
@@ -11,15 +11,27 @@ hairpins by default, \cresc etc. produce text spanners by default.
 }
 
 % Some sample text dynamic spanners, to be used as postfix operators
-crpoco = #(make-music 'CrescendoEvent 'span-direction START
-                      'span-type 'text 'span-text "cresc. poco a poco")
+crpoco =
+#(make-music 'CrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "cresc. poco a poco")
 % Redefine the existing \cresc, \dim and \decresc commands to use postfix syntax
-cresc = #(make-music 'CrescendoEvent 'span-direction START
-                     'span-type 'text 'span-text "cresc.")
-dim = #(make-music 'DecrescendoEvent 'span-direction START
-                   'span-type 'text 'span-text "dim.")
-decresc = #(make-music 'DecrescendoEvent 'span-direction START
-                       'span-type 'text 'span-text "decresc.")
+cresc =
+#(make-music 'CrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "cresc.")
+dim =
+#(make-music 'DecrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "dim.")
+decresc =
+#(make-music 'DecrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "decresc.")
 
 \relative c' {
   c4\cresc d4 e4 f4 |
index e884268ef759d11991a98791df80b063a59a9beb..011f94badc01c713a0b08f5737f746a0c75ac76d 100644 (file)
@@ -1,10 +1,10 @@
 \version "2.12.0"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 
@@ -15,7 +15,8 @@
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 % Piano sonata 18, Movt II, Scherzo
 % Measures 9 - 14
 
-\layout { }
-
 \new PianoStaff <<
 
-   % RH Staff
-   \new Staff {
-      \clef treble
-      \key af \major
-      \time 2/4
-      \set Staff.fingeringOrientations = #'(up up)
-      \set Score.currentBarNumber = #9
-      \partial 8
-      <af''-4 c''>8 \staccato
-      |
-      \set doubleSlurs = ##t
-      <bf''-5 df''-2>4 (
-      <af''-4 c''>8 \staccato )
-      \noBeam
-      c''8-5 \staccato \pp
-      |
-      \set doubleSlurs = ##f
-      bf'8.. (
-      af'32
-      g'8 ) \staccato
-      f'8 \staccato
-      |
-      e'4-2
-      r8
-      \once \override Script #'script-priority = #-100
-      \afterGrace
-         f'8 ( \trill ^ \markup { \finger "3-2" }
-         { e'16 [ f'16 ] }
-      |
-      g'8..-3
-      f'32
-      e'8-1 ) \staccato
-      d'8-2 \staccato
-      |
-      c'4
-      r4
-   }
+  % RH Staff
+  \new Staff {
+    \clef treble
+    \key af \major
+    \time 2/4
+    \set Staff.fingeringOrientations = #'(up)
+    \set Score.currentBarNumber = #9
+    \partial 8
+    <af''-4 c''>8 \staccato
+    |
+    \set doubleSlurs = ##t
+    <bf''-5 df''-2>4 (
+    <af''-4 c''>8 \staccato )
+    \noBeam
+    c''8-5 \staccato \pp
+    |
+    \set doubleSlurs = ##f
+    bf'8.. (
+    af'32
+    g'8 ) \staccato
+    f'8 \staccato
+    |
+    e'4-2
+    r8
+    \once \override Script #'script-priority = #-100
+    \afterGrace
+    f'8 ( \trill ^ \markup { \finger "3-2" }
+    { e'16 [ f'16 ] }
+    |
+    g'8..-3
+    f'32
+    e'8-1 ) \staccato
+    d'8-2 \staccato
+    |
+    c'4
+    r4
+  }
 
-   % LH Staff
-   \new Staff {
-      \key af \major
-      \clef treble
-      \override Fingering #'direction = #down
-      \set Staff.fingeringOrientations = #'(down down)
-      \partial 8
-      <af' af>8 \staccato
-      \set doubleSlurs = ##t
-      <g'-2 ef'-3>4 (
-      <af' af>8 ) \staccato
-      \noBeam
-      \clef bass
-      c'8-1 \staccato
-      |
-      \set doubleSlurs = ##f
-      bf8.. (
-      af32
-      g8-1 ) \staccato
-      f8 \staccato
-      |
-      e4
-      r8
-      \afterGrace
-         f8 ( \trill _ \markup { \finger "2-1" }
-         { e16 [ f16 ] }
-      |
-      g8..-1
-      f32
-      e8 ) \staccato
-      d8 \staccato
-      |
-      c4
-      r4
-   }
+  % LH Staff
+  \new Staff {
+    \key af \major
+    \clef treble
+    \override Fingering #'direction = #down
+    \set Staff.fingeringOrientations = #'(down)
+    \partial 8
+    <af' af>8 \staccato
+    \set doubleSlurs = ##t
+    <g'-2 ef'-3>4 (
+    <af' af>8 ) \staccato
+    \noBeam
+    \clef bass
+    c'8-1 \staccato
+    |
+    \set doubleSlurs = ##f
+    bf8.. (
+    af32
+    g8-1 ) \staccato
+    f8 \staccato
+    |
+    e4
+    r8
+    \afterGrace
+    f8 ( \trill _ \markup { \finger "2-1" }
+    { e16 [ f16 ] }
+    |
+    g8..-1
+    f32
+    e8 ) \staccato
+    d8 \staccato
+    |
+    c4
+    r4
+  }
 
 >>
index db86c2cac17326c1ab460764364ef3ecdb6f022c..78403f7c4fe265e3d99e19d6307ac456f98a8381 100644 (file)
@@ -1,13 +1,14 @@
 \version "2.12.0"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##f
-  line-width=16\cm
-  indent=1.5\cm
+\paper {
+  ragged-right = ##f
+  line-width = 16\cm
+  indent = 1.5\cm
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
@@ -38,7 +39,6 @@ extendOff = \bassFigureExtendersOff
 
       \new Staff = "violinoI" {
         \set Staff.instrumentName = \markup {
-          \hcenter-in #11
           \line { Violino I. }
         }
         \time 4/4
@@ -57,7 +57,6 @@ extendOff = \bassFigureExtendersOff
 
       \new Staff = "violinoII" {
         \set Staff.instrumentName = \markup {
-          \hcenter-in #11
           \line { Violino II. }
         }
         \time 4/4
@@ -76,11 +75,9 @@ extendOff = \bassFigureExtendersOff
 
     \new Staff = "violone" {
       \set Staff.instrumentName = \markup {
-        \hcenter-in #13 {
-          \center-column {
-            Violone,
-            \line { e Cembalo. }
-          }
+        \center-column {
+          Violone,
+          \line { e Cembalo. }
         }
       }
       \time 4/4
diff --git a/Documentation/snippets/new/flamenco-notation.ly b/Documentation/snippets/new/flamenco-notation.ly
new file mode 100644 (file)
index 0000000..dc1919e
--- /dev/null
@@ -0,0 +1,250 @@
+\version "2.13.10"
+
+\header {
+  lsrtags = "fretted-strings"
+
+  texidoc = "
+For flamenco guitar, special notation is used:
+
+
+@itemize
+
+@item
+a golpe symbol to indicate a slap on the guitar body with the nail of
+the ring finger
+
+@item
+an arrow to indicate (the direction of) strokes
+
+@item
+different letters for fingering (@qq{p}: thumb, @qq{i}: index finger,
+@qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger)
+
+@item
+3- and 4-finger rasgueados: stroke upwards with all fingers, ending
+with an up- and down using the index finger
+
+@item
+abanicos: strokes (in tuples) with thumb (down), little and index finger
+(both up) (there is also an abanico 2 where middle and ring finger are
+used instead of the little finger)
+
+@item
+alza pua: fast playing with the thumb
+
+@end itemize
+
+
+Most figures use arrows in combination with fingering; with abanicos
+and rasgueados, noteheads are printed only for the first chord.
+
+This snippet contains some header-like code that can be copied as
+@samp{flamenco.ly} and included in source files.
+
+"
+  doctitle = "Flamenco notation"
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%  Cut here ----- Start 'flamenco.ly'
+
+% Text indicators
+abanico = \markup { \italic Abanico }
+rasgueaso = \markup { \italic Ras. }
+alzapua = \markup { \italic Alzapua }
+
+% Finger stroke symbols
+strokeUp = \markup { \postscript #"
+  0.1     setlinewidth
+  0.5 0   moveto
+  0.5 2   lineto
+  0.2 1.4 lineto
+  0.5 2   moveto
+  0.8 1.4 lineto
+  stroke
+"}
+
+strokeDown = \markup { \postscript #"
+  0.1     setlinewidth
+  0.5 2   moveto
+  0.5 0   lineto
+  0.2 0.6 lineto
+  0.5 0   moveto
+  0.8 0.6 lineto
+  stroke
+"}
+
+% Golpe symbol
+golpe = \markup { \postscript #"
+  0.2 setlinewidth
+  0 0 moveto
+  1 0 lineto
+  1 1 lineto
+  stroke
+  "\postscript #"
+  0.1       setlinewidth
+  -0.6 -0.1  moveto
+  -0.6  1.0 lineto
+  0.5  1.0 lineto
+  stroke
+"}
+
+strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp } } }
+iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp } } }
+
+% Strokes for all fingers
+pUp   = \markup { \column { \small p \line { \strokeUp } } }
+pDown = \markup { \column { \small p \line { \strokeDown } } }
+iUp   = \markup { \column { \small i \line { \strokeUp } } }
+iDown = \markup { \column { \small i \line { \strokeDown } } }
+mUp   = \markup { \column { \small m \line { \strokeUp } } }
+mDown = \markup { \column { \small m \line { \strokeDown } } }
+aUp   = \markup { \column { \small a \line { \strokeUp } } }
+aDown = \markup { \column { \small a \line { \strokeDown } } }
+xUp   = \markup { \column { \small x \line { \strokeUp } } }
+xDown = \markup { \column { \small x \line { \strokeDown } } }
+
+
+% Just handy :)
+tupletOff = {
+  \once \override TupletNumber #'stencil = ##f
+  \once \override TupletBracket #'stencil = ##f
+}
+
+tupletsOff = {
+  \override TupletNumber #'stencil = ##f
+  \override TupletBracket #'bracket-visibility = #'if-no-beam
+}
+
+tupletsOn = {
+  \override TupletBracket #'bracket-visibility = #'default
+  \revert TupletNumber #'stencil
+}
+
+headsOff = {
+  \override TabNoteHead #'transparent = ##t
+  \override NoteHead #'transparent = ##t
+  \override NoteHead #'no-ledgers = ##t
+}
+
+headsOn = {
+  \override TabNoteHead #'transparent = ##f
+  \override NoteHead #'transparent = ##f
+  \override NoteHead #'no-ledgers = ##f
+}
+
+%%%%%%%  Cut here ----- End 'flamenco.ly'
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+part = \relative c' {
+  <a, e' a cis e>8^\iUp
+  <a e' a cis e>8^\iDown
+  r4
+  r2^\golpe
+
+  <a e' a cis e>8^\iUp
+  <a e' a cis e>8^\iDown
+  <a e' a cis e>8^\iUpGolpe
+  <a e' a cis e>8^\iDown
+  r2
+
+  <a e' a cis e>16^\aUp
+  \headsOff
+  <a e' a cis e>^\mUp
+  <a e' a cis e>^\iUp
+  <a e' a cis e>^\iDown~
+  \headsOn
+  <a e' a cis e>2
+  r4
+
+  \tupletOff
+  \times 4/5 {
+    <a e' a cis e>16^\xUp
+    \headsOff
+    <a e' a cis e>^\aUp
+    <a e' a cis e>^\mUp
+    <a e' a cis e>^\iUp
+    <a e' a cis e>^\iDown~
+    \headsOn
+  }
+  <a e' a cis e>2
+  r4
+
+  \tupletsOff
+  \times 2/3 {
+    <a e' a cis e>8^\pDown
+    \headsOff
+    <a e' a cis e>^\xUp
+    <a e' a cis e>^\iUp
+    \headsOn
+  }
+
+  \times 2/3 {
+    <a e' a cis e>8^\pDown
+    \headsOff
+    <a e' a cis e>^\xUp
+    <a e' a cis e>^\iUp
+    \headsOn
+  }
+
+  \times 2/3 {
+    <a e' a cis e>8^\pDown
+    \headsOff
+    <a e' a cis e>^\xUp
+    <a e' a cis e>^\iUp
+    \headsOn
+  }
+  \times 2/3 {
+    <a e' a cis e>8^\pDown
+    \headsOff
+    <a e' a cis e>^\xUp
+    <a e' a cis e>^\iUp
+    \headsOn
+  }
+
+  \tupletsOff
+  \override Beam #'positions = #'(2 . 2)
+  \times 2/3 {
+    a8^\markup{ \small p }
+    <e' a>^\strokeUpGolpe
+    <e a>^\strokeDown
+  }
+  \times 2/3 {
+    a,8^\markup{ \small p }
+    <e' a>^\strokeUpGolpe
+    <e a>^\strokeDown
+  }
+  \times 2/3 {
+    a,8^\markup{ \small p }
+    <e' a>^\strokeUpGolpe
+    <e a>^\strokeDown
+  }
+  \times 2/3 {
+    a,8^\markup{ \small p }
+    <e' a>^\strokeUpGolpe
+    <e a>^\strokeDown
+  }
+  \tupletsOn
+
+  \once \override TextScript #'extra-offset = #'(0 . -1)
+  <g, b f'>1_\golpe^\mUp
+  \bar "|."
+}
+
+\score {
+  \new StaffGroup <<
+    \context Staff = "part" <<
+      \clef G
+      \transpose c c'
+      {
+        \part
+      }
+    >>
+    \context TabStaff {
+      \part
+    }
+  >>
+  \layout {
+    ragged-right = ##t
+  }
+}
index 0f0939928a9cffd5eeef2467620c71d3532ba5ab..e67203c95e6af88ccbebfc4b8b3188b416d3012a 100644 (file)
@@ -9,12 +9,7 @@ Beaming patterns may be altered with the @code{beatGrouping} property:
   doctitle = "Grouping beats"
 }
 
-\relative c'' {
-  \time 5/16
-  \overrideBeamSettings #'Score #'(5 . 16) #'end
-    #'((* . (2 3)))
-  c8^"(2+3)" c16 c8
-  \overrideBeamSettings #'Score #'(5 . 16) #'end
-    #'((* . (3 2)))
-  c8^"(3+2)" c16 c8
+\markup {
+  This snippet is deprecated as of version 2.13.5 and will be removed
+  in version 2.14.
 }
index 57d59a74c448673446b9c074aa6b9b68bb215a70..3755bf757acb303fb4f7c2f1c0deef7341c09468 100644 (file)
@@ -85,7 +85,7 @@ fermataLong = \markup {
     \clef bass
     <ds b! es'>4 ( ^ \markup \bold { Rall. }
     \override Script #'stencil = #(lambda (grob)
-      ly:script::print (grob-interpret-markup grob fermataLong))
+      (grob-interpret-markup grob fermataLong))
     <ds' as'>8 ) \fermata
     \noBeam
     \clef treble
diff --git a/Documentation/snippets/new/letter-tablature-formatting.ly b/Documentation/snippets/new/letter-tablature-formatting.ly
new file mode 100644 (file)
index 0000000..ca17536
--- /dev/null
@@ -0,0 +1,30 @@
+\version "2.13.10"
+
+\header {
+  lsrtags = "staff-notation, fretted-strings"
+
+  texidoc = "
+Tablature can be formatted using letters instead of numbers.
+
+"
+  doctitle = "Letter tablature formatting"
+}
+
+music = \relative c {
+  c4 d e f
+  g4 a b c
+  d4 e f g
+}
+
+<<
+  \new Staff {
+    \clef "G_8"
+    \music
+  }
+  \new TabStaff \with {
+    tablatureFormat = #fret-letter-tablature-format
+  }
+  {
+    \music
+  }
+>>
index e2d1b8cff7b09e06d960bb6c239291a606594135..eb0031c9db521467993d9561a6838466c46ffa74 100644 (file)
@@ -27,10 +27,10 @@ set to 1 for a solid slur.
     Slur #'dash-definition = #'((0 0.3 0.1 0.75)
                                 (0.3 0.6 1 1)
                                 (0.65 1.0 0.4 0.75))
-  c( d e f)
+  c4( d e f)
   \once \override
     Slur #'dash-definition = #'((0 0.25 1 1)
                                 (0.3 0.7 0.4 0.75)
                                 (0.75 1.0 1 1))
-  c( d e f)
+  c4( d e f)
 }
index 16b6002d33afa7d4e75b8589471af3eb9a10b67f..fc9a73c9c5d581029e579b3d36dbcc9221e7c507 100644 (file)
@@ -14,20 +14,22 @@ object it sees.
   doctitle = "Numbers as easy note heads"
 }
 
-#(define Ez_numbers_engraver (list
-  (cons 'acknowledgers
+#(define Ez_numbers_engraver
    (list
-     (cons 'note-head-interface
-       (lambda (engraver grob source-engraver)
-         (let* (
-           (context (ly:translator-context engraver))
-           (tonic-pitch (ly:context-property context 'tonic))
-           (tonic-name (ly:pitch-notename tonic-pitch))
-           (grob-pitch (ly:event-property (event-cause grob) 'pitch))
-           (grob-name (ly:pitch-notename grob-pitch))
-           (delta (modulo (- grob-name tonic-name) 7))
-           (note-names (make-vector 7 (number->string (+ 1 delta)))))
-        (ly:grob-set-property! grob 'note-names note-names))))))))
+    (cons 'acknowledgers
+          (list
+           (cons 'note-head-interface
+                 (lambda (engraver grob source-engraver)
+                   (let* ((context (ly:translator-context engraver))
+                          (tonic-pitch (ly:context-property context 'tonic))
+                          (tonic-name (ly:pitch-notename tonic-pitch))
+                          (grob-pitch
+                           (ly:event-property (event-cause grob) 'pitch))
+                          (grob-name (ly:pitch-notename grob-pitch))
+                          (delta (modulo (- grob-name tonic-name) 7))
+                          (note-names
+                           (make-vector 7 (number->string (1+ delta)))))
+                     (ly:grob-set-property! grob 'note-names note-names))))))))
 
 #(set-global-staff-size 26)
 
index a8fed546fbb5e16587f64c43c2d6c0dde5b95111..dcfa46dffc8f0800f011519135edc572eab366ec 100644 (file)
@@ -4,8 +4,8 @@
   lsrtags = "expressive-marks, keyboards, template"
   texidoc = "
 Many piano scores have the dynamics centered between the two staves.
-This requires a bit of tweaking to implement, but since the template is
-right here, you don't have to do the tweaking yourself.
+The @code{Dynamics} context, if placed between staves, will
+automatically position dynamics correctly.
 
 "
   doctitle = "Piano template with centered dynamics"
index 0af775ec6e17f40745edf4cbb3b4634a220b4dab..f2d9f0dbdcd1efc9a98f2d54fdf5bdfb35f1d005 100644 (file)
@@ -1,14 +1,15 @@
 \version "2.12.0"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 
 \new PianoStaff <<
 
-   % RH Staff
-   \new Staff <<
+  % RH Staff
+  \new Staff <<
 
-      % RH Voice 1
-      \new Voice {
-         \set Score.currentBarNumber = #34
-         \voiceOne
-         gs''2 ( ^ \markup \italic { dolce e molto ligato }
-         fs''4
-         e''4
-         |
-         ds''2
-         cs''2 )
-         |
-         ds''2 (
-         e''4
-         fs''4
-         |
-         <gs'' e''>2
-         <fs'' ds''>2 )
-         |
-         \oneVoice
-         \clef bass
-         <gs' e' b>2 (
-         <fs' ds' a>4
-         <e' cs' gs>4
-         |
-         <ds' bs fs>2
-         <cs' a e>2 )
-         |
-         \voiceOne
-         b2 %(
-         cs'4
-         ds'4
-         |
-         \clef treble
-         <e' gs>4 %)
-         r4 r2
-      }
-
-      % RH Voice 2
-      \new Voice {
-         \voiceTwo
-         \override Staff.DynamicLineSpanner #'staff-padding = #2.5
-         <e'' b'>2 \p
-         <ds'' a'>4
-         <cs'' gs'>4
-         |
-         <bs' fs'>2
-         e'2
-         |
-         \once \override TextScript #'staff-padding = #2.5
-         <b'! a'>2 _ \markup \italic { cresc. }
-         b'4
-         <e'' cs''>4
-         |
-         b'2. ( \sf \>
-         a'4 )
-         \clef bass
-         | \break
-         s1 \p
-         |
-         s1
-         |
-         <gs e>4 (
-         <a fs>2. )
-         |
-         s4
-         r4 r2
-      }
-
-   >>
-
-   % LH Staff
-   \new Staff {
-      \override Staff.SustainPedalLineSpanner #'staff-padding = #5
-      <gs' e'>2 ( \sustainOn
-      <fs' ds' b>4 \sustainOff
-      <e' cs'>4
+    % RH Voice 1
+    \new Voice {
+      \set Score.currentBarNumber = #34
+      \voiceOne
+      gs''2 ( ^ \markup \italic { dolce e molto ligato }
+      fs''4
+      e''4
+      |
+      ds''2
+      cs''2 )
+      |
+      ds''2 (
+      e''4
+      fs''4
       |
-      <ds' bs gs>2
-      <cs' a>2 ) \sustainOn
+      <gs'' e''>2
+      <fs'' ds''>2 )
       |
+      \oneVoice
       \clef bass
-      \slurDown
-      <ds' b! a fs>2 ( \sustainOff
-      <e' b gs>4
-      <fs' cs' a>4 \sustainOn
+      <gs' e' b>2 (
+      <fs' ds' a>4
+      <e' cs' gs>4
+      |
+      <ds' bs fs>2
+      <cs' a e>2 )
       |
-      \clef treble
       \voiceOne
-      <<
-         {
-            <gs' e'>2
-            <fs' ds'>2 )
-         }
-         \new Voice {
-            \voiceTwo
-            b1 \sustainOff
-         }
-      >>
-      \oneVoice
+      b2 %(
+      cs'4
+      ds'4
+      |
+      \clef treble
+      <e' gs>4 %)
+      r4 r2
+    }
+
+    % RH Voice 2
+    \new Voice {
+      \voiceTwo
+      \override Staff.DynamicLineSpanner #'staff-padding = #2.5
+      <e'' b'>2 \p
+      <ds'' a'>4
+      <cs'' gs'>4
+      |
+      <bs' fs'>2
+      e'2
+      |
+      \once \override TextScript #'staff-padding = #2.5
+      <b'! a'>2 _ \markup \italic { cresc. }
+      b'4
+      <e'' cs''>4
       |
-      %\break
+      b'2. ( \sf \>
+      a'4 )
       \clef bass
-      <gs e>2 (
-      <fs ds b,>4
-      <e cs>4
+      | \break
+      s1 \p
       |
-      <ds bs, gs,>2
-      <cs a,>2 ) \sustainOn
+      s1
       |
-      <b,! b,,!>1 ( \sustainOff
+      <gs e>4 (
+      <a fs>2. )
       |
-      <e e,>4 )
+      s4
       r4 r2
-   }
+    }
+
+  >>
+
+  % LH Staff
+  \new Staff {
+    \override Staff.SustainPedalLineSpanner #'staff-padding = #5
+    <gs' e'>2 ( \sustainOn
+    <fs' ds' b>4 \sustainOff
+    <e' cs'>4
+    |
+    <ds' bs gs>2
+    <cs' a>2 ) \sustainOn
+    |
+    \clef bass
+    \slurDown
+    <ds' b! a fs>2 ( \sustainOff
+    <e' b gs>4
+    <fs' cs' a>4 \sustainOn
+    |
+    \clef treble
+    \voiceOne
+    <<
+      {
+        <gs' e'>2
+        <fs' ds'>2 )
+      }
+      \new Voice {
+        \voiceTwo
+        b1 \sustainOff
+      }
+    >>
+    \oneVoice
+    |
+    %\break
+    \clef bass
+    <gs e>2 (
+    <fs ds b,>4
+    <e cs>4
+    |
+    <ds bs, gs,>2
+    <cs a,>2 ) \sustainOn
+    |
+    <b,! b,,!>1 ( \sustainOff
+    |
+    <e e,>4 )
+    r4 r2
+  }
 
 >>
index a4a4ef2000b9cd2cfca47af592208c313fc3aa49..5a24f1ff03960f35e160dbeea9b79cb4763e72b9 100644 (file)
@@ -5,70 +5,69 @@
   doctitle = "Screech and Boink"
 }
 
-
 \score {
-     \context PianoStaff <<
-       \new Staff =  "up" {
-           \time 4/8
-           \key c \minor
-
-
-           << {
-               \revert Stem #'direction
-               \change Staff = down
-               \set subdivideBeams = ##t            
-               g16.[
-                   \change Staff = up
-                   c'''32      \change Staff = down
-                   g32 \change Staff = up
-                   c'''32      \change Staff = down
-                   g16]
-               \change Staff = up
-               \stemUp
-               \set followVoice = ##t
-               c'''32([ b''16 a''16 gis''16 g''32)]  } \\
-              { s4 \times 2/3 { d'16[ f' g'] } as'32[ b''32 e'' d''] } \\
-              { s4 \autoBeamOff d''8.. f''32  } \\
-              { s4 es''4 }
-          >>
-       }
-
-       \new Staff =  "down" {
-           \clef bass
-           \key c \minor
-           \set subdivideBeams = ##f
-           \override Stem  #'french-beaming = ##t
-           \override Beam  #'thickness = #0.3
-           \override Stem  #'thickness = #4.0
-           g'16[ b16 fis16 g16]
-           << \makeClusters { 
-               as16 <as b>
-               <g b>
-               <g cis>
-           } \\
-              {
-                  \override Staff.Arpeggio  #'arpeggio-direction =#down
-                  <cis, e, gis, b, cis>4\arpeggio  }
-          >>
-       }
-    >>
-    
+  \context PianoStaff <<
+    \new Staff = "up" {
+      \time 4/8
+      \key c \minor
+      <<
+        {
+          \revert Stem #'direction
+          \change Staff = down
+          \set subdivideBeams = ##t
+          g16.[
+          \change Staff = up
+          c'''32
+          \change Staff = down
+          g32
+          \change Staff = up
+          c'''32
+          \change Staff = down
+          g16]
+          \change Staff = up
+          \stemUp
+          \set followVoice = ##t
+          c'''32([ b''16 a''16 gis''16 g''32)]
+        }
+        \\
+        { s4 \times 2/3 { d'16[ f' g'] } as'32[ b''32 e'' d''] }
+        \\
+        { s4 \autoBeamOff d''8.. f''32  }
+        \\
+        { s4 es''4 }
+      >>
+    }
+    \new Staff = "down" {
+      \clef bass
+      \key c \minor
+      \set subdivideBeams = ##f
+      \override Stem #'french-beaming = ##t
+      \override Beam #'thickness = #0.3
+      \override Stem #'thickness = #4.0
+      g'16[ b16 fis16 g16]
+      <<
+        \makeClusters {
+          as16 <as b> <g b> <g cis>
+        }
+        \\
+        {
+          \override Staff.Arpeggio #'arpeggio-direction = #DOWN
+          <cis, e, gis, b, cis>4\arpeggio
+        }
+      >>
+    }
+  >>
   \midi {
     \context {
       \Score
       tempoWholesPerMinute = #(ly:make-moment 60 8)
-      }
     }
-
-
-
-    \layout {
-       ragged-right = ##t 
-
-       \context {
-           \Staff
-           \consists Horizontal_bracket_engraver
-       }
-       
+  }
+  \layout {
+    ragged-right = ##t
+    \context {
+      \Staff
+      \consists "Horizontal_bracket_engraver"
     }
+  }
 }
index 71574f738fa469a53d8b5dcf6f686a2360c799d4..201abbd9286b323f9d15959a51d51de6b60686d3 100644 (file)
@@ -1,14 +1,15 @@
 \version "2.12.0"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 % measures 108 - 118
 
 \layout {
-   \context {
-      \Score
-      \override SpacingSpanner #'base-shortest-duration =
-         #(ly:make-moment 1 18)
-      \override NonMusicalPaperColumn #'line-break-system-details =
-         #'((alignment-offsets . (0 -12)))
-   }
+  \context {
+    \Score
+    \override SpacingSpanner #'base-shortest-duration =
+    #(ly:make-moment 1 18)
+    \override NonMusicalPaperColumn #'line-break-system-details =
+    #'((alignment-distances . (12)))
+  }
 }
 
 trillflat =
-  \once \override TrillSpanner #'(bound-details left text) =
-    #(markup #:translate-scaled '(-0.05 . -1)
-             #:concat (#:musicglyph "scripts.trill"
-                       #:translate '(-0.5 . 1.9) #:fontsize -7 #:flat))
+\once \override TrillSpanner #'(bound-details left text) =
+#(markup #:translate-scaled '(-0.05 . -1)
+  #:concat (#:musicglyph "scripts.trill"
+    #:translate '(-0.5 . 1.9) #:fontsize -7 #:flat))
 
 
 \new PianoStaff <<
 
-   % RH
-   \new Staff <<
-      \clef treble
-      \key c \major
-      \time 9/16
-      \set Score.currentBarNumber = #108
+  % RH
+  \new Staff <<
+    \clef treble
+    \key c \major
+    \time 9/16
+    \set Score.currentBarNumber = #108
 
-      % RH voice 1
-      \new Voice {
+    % RH voice 1
+    \new Voice {
 
-         \voiceOne
-         s4.
-         s8.
+      \voiceOne
+      s4.
+      s8.
 
-         |
+      |
 
-         s4.
-         a''8 \p \> [ (
-         g''16 ] )
+      s4.
+      a''8 \p \> [ (
+      g''16 ] )
 
-         |
+      |
 
-         g''4.
-         af''8 [ (
-         g''16 ] )
+      g''4.
+      af''8 [ (
+      g''16 ] )
 
-         |
+      |
 
-         g''8. [
-         g''8.
-         g''8. \pp ]
+      g''8. [
+      g''8.
+      g''8. \pp ]
 
-         |
+      |
 
-         g''8. [
-         af''8.
-         af''8. ]
+      g''8. [
+      af''8.
+      af''8. ]
 
-         |
+      |
 
-         af''8. [
-         af''8.
-         af''8. ]
+      af''8. [
+      af''8.
+      af''8. ]
 
-         |
-         \break
+      |
+      \break
 
-         \trillflat
-         af''4. \startTrillSpan
-         ~
-         af''8.
-         ~
+      \trillflat
+      af''4. \startTrillSpan
+      ~
+      af''8.
+      ~
 
-         |
+      |
 
-         af''4.
-         ~
-         af''8.
-         ~
+      af''4.
+      ~
+      af''8.
+      ~
 
-         |
+      |
 
-         \oneVoice
-         <af'' d''>8. [
-         a''8. \p \<
-         bf''8. ]
-         ~
+      \oneVoice
+      <af'' d''>8. [
+      a''8. \p \<
+      bf''8. ]
+      ~
 
-         |
+      |
 
-         bf''8. [
-         b''8.
-         c'''8. ]
-         ~
+      bf''8. [
+      b''8.
+      c'''8. ]
+      ~
 
-         \bar "||"
+      \bar "||"
 
-         \key ef \major
-         c'''8. [
-         cs'''8. \f ] \stopTrillSpan
-         r8.
+      \key ef \major
+      c'''8. [
+      cs'''8. \f ] \stopTrillSpan
+      r8.
 
-      }
+    }
 
-      % RH voice 2
-      \new Voice {
-         \voiceTwo
-         \override Voice.TrillSpanner #'direction = #down
-         d''4. \f \startTrillSpan
-         ~
-         d''8.
-         ~
+    % RH voice 2
+    \new Voice {
+      \voiceTwo
+      \override Voice.TrillSpanner #'direction = #DOWN
+      d''4. \f \startTrillSpan
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''8. \stopTrillSpan
-         \trillflat
-         d''4. \startTrillSpan
-         ~
+      d''8. \stopTrillSpan
+      \trillflat
+      d''4. \startTrillSpan
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8. \stopTrillSpan
-         ~
+      d''4.
+      ~
+      d''8. \stopTrillSpan
+      ~
 
-         |
+      |
 
-         \trillflat
-         d''4. \startTrillSpan
-         ~
-         d''8.
-         ~
+      \trillflat
+      d''4. \startTrillSpan
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         \once \override NoteColumn #'ignore-collision = ##t
-         \once \override NoteHead #'transparent = ##t
-         \once \override Dots #'transparent = ##t
-         \once \override Stem #'transparent = ##t
-         d''8. \stopTrillSpan
-         s4.
+      \once \override NoteColumn #'ignore-collision = ##t
+      \hideNotes
+      d''8. \stopTrillSpan
+      s4.
 
-         |
+      |
 
-         s8.
-         s8.
+      s8.
+      s8.
 
-      }
+    }
 
-   >>
+  >>
 
-   % LH staff
-   \new Staff {
-      \clef bass
-      \key c \major
-      \time 9/16
+  % LH staff
+  \new Staff {
+    \clef bass
+    \key c \major
+    \time 9/16
 
-      r8.
-      r8.
-      <c! c,!>8 [ (
-      <g, g,,>16 ] )
+    r8.
+    r8.
+    <c! c,!>8 [ (
+    <g, g,,>16 ] )
 
-      |
+    |
 
-      <g, g,,>4.
-      \clef treble
-      c''8 [ (
-      b'16 ] )
+    <g, g,,>4.
+    \clef treble
+    c''8 [ (
+    b'16 ] )
 
-      |
+    |
 
-      b'4.
-      c''8 [ (
-      b'16 ] )
+    b'4.
+    c''8 [ (
+    b'16 ] )
 
-      |
+    |
 
-      b'8. [
-      b'8.
-      b'8. ]
+    b'8. [
+    b'8.
+    b'8. ]
 
-      |
+    |
 
-      b'8. [
-      bf'8. ]
-      \clef bass
-      <f f,>8 [ (
-      <bf, bf,,>16 ] )
+    b'8. [
+    bf'8. ]
+    \clef bass
+    <f f,>8 [ (
+    <bf, bf,,>16 ] )
 
-      |
+    |
 
-      <bf, bf,,>4.
-      \clef treble
-      f'8 [ (
-      bf16 ] )
+    <bf, bf,,>4.
+    \clef treble
+    f'8 [ (
+    bf16 ] )
 
-      |
+    |
 
-      <<
+    <<
 
-         \new Voice {
-            \voiceOne
-            \override Voice.TrillSpanner #'direction = #up
-            f'4. \startTrillSpan
-            ~
-            f'8.
-            ~
+      \new Voice {
+        \voiceOne
+        \override Voice.TrillSpanner #'direction = #UP
+        f'4. \startTrillSpan
+        ~
+        f'8.
+        ~
 
-            |
+        |
 
-            f'4.
-            ~
-            f'8.
-            ~
+        f'4.
+        ~
+        f'8.
+        ~
 
-            |
+        |
 
-            f'8. \stopTrillSpan
-         }
+        f'8. \stopTrillSpan
+      }
 
-         \new Voice {
-            \voiceTwo
-            \override Voice.TrillSpanner #'direction = #down
-            bf8. [
-            bf8.
-            bf8. ]
+      \new Voice {
+        \voiceTwo
+        \override Voice.TrillSpanner #'direction = #DOWN
+        bf8. [
+        bf8.
+        bf8. ]
 
-            |
+        |
 
-            bf8. [
-            bf8.
-            bf8. ]
+        bf8. [
+        bf8.
+        bf8. ]
 
-            |
+        |
 
-            bf8.
-         }
+        bf8.
+      }
 
-      >>
+    >>
 
-      \oneVoice
-      r8.
-      r8.
+    \oneVoice
+    r8.
+    r8.
 
-      |
+    |
 
-      r8.
-      r8.
-      r8.
-      \clef bass
+    r8.
+    r8.
+    r8.
+    \clef bass
 
-      |
+    |
 
-      \key ef \major
-      r8.
-      r8.
-      r8.
+    \key ef \major
+    r8.
+    r8.
+    r8.
 
-   }
+  }
 
 >>
index 8a0237f0fd344cc680bc1fce31987e51b1916011..798cef7c479bdf1749407ad53b76d88aba2223ac 100644 (file)
@@ -1,7 +1,7 @@
 \version "2.12.0"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
+\paper {
   line-width = 16\cm
   indent = 0\cm
 }
@@ -14,7 +14,8 @@
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 % measures 1 - 7
 
 \layout {
-   \context {
-      \Score
-      \override SpacingSpanner #'base-shortest-duration =
-         #(ly:make-moment 1 20)
-      %\override NonMusicalPaperColumn #'line-break-system-details =
-      %#'((alignment-offsets . (0 -12)))
-   }
+  \context {
+    \Score
+    \override SpacingSpanner #'base-shortest-duration =
+    #(ly:make-moment 1 20)
+  }
 }
 
 \new PianoStaff <<
 
-   % RH staff
-   \new Staff {
-      \clef treble
-      \key af \major
-      \time 3/4
-
-      \once \override TextScript #'staff-padding = #4
-      <c'' af'>4. (
-      _ \markup { \dynamic p \italic { con amabilità } }
-      <af' ef'>8 )
-      <af' ef'>8. [
-      <af' ef'>16 ]
-
-      |
-
-      <df'' g'>4
-      <bf' g'>2
-      _ \markup { \italic { ten. } }
-
-      |
-
-      <<
-
-         \new Voice {
-            \voiceOne
-            ef''4. (
-            df''8 [ )
-            ef'' (
-            f'' ) ]
-
-            |
-
-            \once \override TextScript #'staff-padding = #4
-            ef''8. (
-            _ \markup { \italic { tranqu. } }
-            d''16 )
-            df''8 \trill \fermata
-            _ \markup { \italic { ten. } }
-         }
-
-         \new Voice {
-            \voiceTwo
-            af'4.
-            af'8 [
-            af'8
-            af'8 ]
-
-            |
+  % RH staff
+  \new Staff {
+    \clef treble
+    \key af \major
+    \time 3/4
+
+    \once \override TextScript #'staff-padding = #4
+    <c'' af'>4. (
+    _ \markup { \dynamic p \italic { con amabilità } }
+    <af' ef'>8 )
+    <af' ef'>8. [
+    <af' ef'>16 ]
+
+    |
+
+    <df'' g'>4
+    <bf' g'>2
+    _ \markup { \italic { ten. } }
+
+    |
+
+    <<
+
+      \new Voice {
+        \voiceOne
+        ef''4. (
+        df''8 [ )
+        ef'' (
+        f'' ) ]
+
+        |
+
+        \once \override TextScript #'staff-padding = #4
+        ef''8. (
+        _ \markup { \italic { tranqu. } }
+        d''16 )
+        df''8 \trill \fermata
+        _ \markup { \italic { ten. } }
+      }
+
+      \new Voice {
+        \voiceTwo
+        af'4.
+        af'8 [
+        af'8
+        af'8 ]
+
+        |
+
+        g'4
+        g'8
+      }
+
+    >>
+
+    \oneVoice
+    \once \override TextScript #'staff-padding = #4
+    df''32
+    _ \markup { \italic dolce }
+    c''32
+    df''32
+    ef''32
+    \acciaccatura { df''[ ef'' ] }
+    f''8
+    ef''16
+    df''16
+
+    |
+    \break
+    \overrideProperty "Score.NonMusicalPaperColumn"
+    #'line-break-system-details #'((alignment-distances . (12)))
+
+    c''4. (
+    ^ \markup \italic { cantabile, con intimissimo sentimento,
+      ma sempre molto dolce e semplice }
+    ef''4
+    af''8 )
+
+    |
+
+    af''4 (
+    g''2 )
+
+    |
+
+    bf''4. (
+    g''4
+    ef''8 )
+
+    |
+  }
 
-            g'4
-            g'8
-         }
-
-      >>
-
-      \oneVoice
-      \once \override TextScript #'staff-padding = #4
-      df''32
-      _ \markup { \italic dolce }
-      c''32
-      df''32
-      ef''32
-      \acciaccatura { df''[ ef'' ] }
-      f''8
-      ef''16
-      df''16
-
-      |
-      \break
-      \overrideProperty "Score.NonMusicalPaperColumn"
-      #'line-break-system-details #'((alignment-offsets . (0 -12)))
-
-      c''4. (
-      ^ \markup \italic { cantabile, con intimissimo sentimento,
-         ma sempre molto dolce e semplice }
-      ef''4
-      af''8 )
-
-      |
-
-      af''4 (
-      g''2 )
-
-      |
-
-      bf''4. (
-      g''4
-      ef''8 )
-
-      |
-   }
-
-   % LH
-   \new Staff {
-      \clef bass
-      \key af \major
-      \time 3/4
-
-      <ef af,>4. (
-      <ef c>8 )
-      <ef c>8. [
-      <ef c>16 ]
-
-      |
-
-      <ef bf,>4
-      <ef df>2 ^ \markup { \italic ten. }
-
-      |
-
-      <<
-
-         \new Voice {
-            \voiceOne
-            ef8 [ (
-            af8
-            c'8
-            bf8 )
-            c'8 ( \staccato
-            df'8 ]  ) \staccato
-
-            |
-
-            bf4
-            bf8 ^ \markup { \italic ten. }
-         }
-
-         \new Voice {
-            \voiceTwo
-            c4. (
-            f8 [ )
-            ef8 ( \staccato
-            df8 ] ) \staccato
-
-            |
-
-            ef4
-            ef8 \fermata
-         }
-
-      >>
-
-      \oneVoice
-      r8
-      r4
-      \clef treble
-
-      |
-
-      \override Staff.SustainPedalLineSpanner #'outside-staff-priority = #1000
-      \override Staff.SustainPedalLineSpanner #'staff-padding = #7
-      \once \override TextScript #'padding = #2
-      af16 \sustainOn
-      ^ \markup \italic { non staccato }
-      _ \markup \italic { molto \concat {\dynamic {p},} sempre tranquillo
-         ed egualmente, non rubato }
-      <ef' c'>16
-      <ef' c'>16
-      <ef' c'>16
-      af16
-      <ef' c'>16
-      <ef' c'>16
-      <ef' c'>16
-      af16 \sustainOn
-      <ef' c'>16
-      <ef' c'>16
-      <ef' c'>16
-
-      |
-
-      bf16 \sustainOn
-      <ef' df'>16
-      <ef' df'>16
-      <ef' df'>16
-      bf16 \sustainOn
-      <ef' df'>16
-      <ef' df'>16
-      <ef' df'>16
-      bf16
-      <ef' df'>16
-      <ef' df'>16
-      <ef' df'>16
-
-      |
-
-      \override Staff.SustainPedalLineSpanner #'staff-padding = #4
-      df'16 \sustainOn
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      df'16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      df'16 \sustainOn
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-
-      |
-   }
+  % LH
+  \new Staff {
+    \clef bass
+    \key af \major
+    \time 3/4
+
+    <ef af,>4. (
+    <ef c>8 )
+    <ef c>8. [
+    <ef c>16 ]
+
+    |
+
+    <ef bf,>4
+    <ef df>2 ^ \markup { \italic ten. }
+
+    |
+
+    <<
+
+      \new Voice {
+        \voiceOne
+        ef8 [ (
+        af8
+        c'8
+        bf8 )
+        c'8 ( \staccato
+        df'8 ]  ) \staccato
+
+        |
+
+        bf4
+        bf8 ^ \markup { \italic ten. }
+      }
+
+      \new Voice {
+        \voiceTwo
+        c4. (
+        f8 [ )
+        ef8 ( \staccato
+        df8 ] ) \staccato
+
+        |
+
+        ef4
+        ef8 \fermata
+      }
+
+    >>
+
+    \oneVoice
+    r8
+    r4
+    \clef treble
+
+    |
+
+    \override Staff.SustainPedalLineSpanner #'outside-staff-priority = #1000
+    \override Staff.SustainPedalLineSpanner #'staff-padding = #7
+    \once \override TextScript #'padding = #2
+    af16 \sustainOn
+    ^ \markup \italic { non staccato }
+    _ \markup \italic { molto \concat { \dynamic { p } , } sempre tranquillo
+      ed egualmente, non rubato }
+    <ef' c'>16
+    <ef' c'>16
+    <ef' c'>16
+    af16
+    <ef' c'>16
+    <ef' c'>16
+    <ef' c'>16
+    af16 \sustainOn
+    <ef' c'>16
+    <ef' c'>16
+    <ef' c'>16
+
+    |
+
+    bf16 \sustainOn
+    <ef' df'>16
+    <ef' df'>16
+    <ef' df'>16
+    bf16 \sustainOn
+    <ef' df'>16
+    <ef' df'>16
+    <ef' df'>16
+    bf16
+    <ef' df'>16
+    <ef' df'>16
+    <ef' df'>16
+
+    |
+
+    \override Staff.SustainPedalLineSpanner #'staff-padding = #4
+    df'16 \sustainOn
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    df'16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    df'16 \sustainOn
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+
+    |
+  }
 
 >>
diff --git a/Documentation/snippets/new/using-ly-grob-object-to-access-grobs-with--tweak.ly b/Documentation/snippets/new/using-ly-grob-object-to-access-grobs-with--tweak.ly
new file mode 100644 (file)
index 0000000..2fcb360
--- /dev/null
@@ -0,0 +1,75 @@
+\version "2.13.10"
+
+\header {
+  lsrtags = "tweaks-and-overrides"
+
+  texidoc = "
+Some grobs can be accessed @qq{laterally} from within another grob's
+callback.  These are usually listed as @qq{layout objects} in the
+@qq{Internal properties} section of a grob-interface.  The function
+@code{ly:grob-object} is used to access these grobs.
+
+
+Demonstrated below are some ways of accessing grobs from within a
+NoteHead callback, but the technique is not limited to NoteHeads.
+However, the NoteHead callback is particularly important, since it is
+the implicit callback used by the @code{\\tweak} command.
+
+
+The example function defined below (\"display-grobs\") is probably not
+that useful, but it demonstrates that the grobs are indeed being
+accessed.
+
+
+Example console output:
+
+
+@example
+--------------------
+#-Grob Accidental -
+#-Grob Arpeggio -
+#-Grob Stem -
+@end example
+
+
+"
+  doctitle = "Using ly:grob-object to access grobs with \\tweak"
+}
+
+#(define (notehead-get-accidental notehead)
+   ;; notehead is grob
+   (ly:grob-object notehead 'accidental-grob))
+
+#(define (notehead-get-arpeggio notehead)
+   ;; notehead is grob
+   (let ((notecolumn (notehead-get-notecolumn notehead)))
+     (ly:grob-object notecolumn 'arpeggio)))
+
+#(define (notehead-get-notecolumn notehead)
+   ;; notehead is grob
+   (ly:grob-parent notehead X))
+
+#(define (notehead-get-stem notehead)
+   ;; notehead is grob
+   (let ((notecolumn (notehead-get-notecolumn notehead)))
+     (ly:grob-object notecolumn 'stem)))
+
+#(define (display-grobs notehead)
+   ;; notehead is grob
+   (let ((accidental (notehead-get-accidental notehead))
+         (arpeggio (notehead-get-arpeggio notehead))
+         (stem (notehead-get-stem notehead)))
+     (format #t "~2&~a\n" (make-string 20 #\-))
+     (for-each
+      (lambda (x) (format #t "~a\n" x))
+      (list accidental arpeggio stem))))
+
+\relative c' {
+  %% display grobs for each note head:
+  %\override NoteHead #'before-line-breaking = #display-grobs
+  <c
+  %% or just for one:
+  \tweak #'before-line-breaking #display-grobs
+  es
+  g>1\arpeggio
+}
index 7cd88fa11baabba886afe62b358ce847c124e5a5..4bdf474d57362ce91fd9335d3c109ce0afeb4f8e 100644 (file)
@@ -19,20 +19,22 @@ object it sees.
 } % begin verbatim
 
 
-#(define Ez_numbers_engraver (list
-  (cons 'acknowledgers
+#(define Ez_numbers_engraver
    (list
-     (cons 'note-head-interface
-       (lambda (engraver grob source-engraver)
-         (let* (
-           (context (ly:translator-context engraver))
-           (tonic-pitch (ly:context-property context 'tonic))
-           (tonic-name (ly:pitch-notename tonic-pitch))
-           (grob-pitch (ly:event-property (event-cause grob) 'pitch))
-           (grob-name (ly:pitch-notename grob-pitch))
-           (delta (modulo (- grob-name tonic-name) 7))
-           (note-names (make-vector 7 (number->string (+ 1 delta)))))
-        (ly:grob-set-property! grob 'note-names note-names))))))))
+    (cons 'acknowledgers
+          (list
+           (cons 'note-head-interface
+                 (lambda (engraver grob source-engraver)
+                   (let* ((context (ly:translator-context engraver))
+                          (tonic-pitch (ly:context-property context 'tonic))
+                          (tonic-name (ly:pitch-notename tonic-pitch))
+                          (grob-pitch
+                           (ly:event-property (event-cause grob) 'pitch))
+                          (grob-name (ly:pitch-notename grob-pitch))
+                          (delta (modulo (- grob-name tonic-name) 7))
+                          (note-names
+                           (make-vector 7 (number->string (1+ delta)))))
+                     (ly:grob-set-property! grob 'note-names note-names))))))))
 
 #(set-global-staff-size 26)
 
index 829d32c7be4bb7718110ddfc9150bfeede7effbc..a62a95fb592fb91119df2ce5185d2ed19216788f 100644 (file)
@@ -44,8 +44,8 @@ obtenir un tel résultat.
   lsrtags = "expressive-marks, keyboards, template"
   texidoc = "
 Many piano scores have the dynamics centered between the two staves.
-This requires a bit of tweaking to implement, but since the template is
-right here, you don't have to do the tweaking yourself.
+The @code{Dynamics} context, if placed between staves, will
+automatically position dynamics correctly.
 
 "
   doctitle = "Piano template with centered dynamics"
index 5e7799b4df897ac029e7388631853e978c2bf23c..253b0b0eee19e56db79fa6de470972f4468a2b8d 100644 (file)
@@ -5,14 +5,15 @@
 \version "2.13.10"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 
 \new PianoStaff <<
 
-   % RH Staff
-   \new Staff <<
+  % RH Staff
+  \new Staff <<
 
-      % RH Voice 1
-      \new Voice {
-         \set Score.currentBarNumber = #34
-         \voiceOne
-         gs''2 ( ^ \markup \italic { dolce e molto ligato }
-         fs''4
-         e''4
-         |
-         ds''2
-         cs''2 )
-         |
-         ds''2 (
-         e''4
-         fs''4
-         |
-         <gs'' e''>2
-         <fs'' ds''>2 )
-         |
-         \oneVoice
-         \clef bass
-         <gs' e' b>2 (
-         <fs' ds' a>4
-         <e' cs' gs>4
-         |
-         <ds' bs fs>2
-         <cs' a e>2 )
-         |
-         \voiceOne
-         b2 %(
-         cs'4
-         ds'4
-         |
-         \clef treble
-         <e' gs>4 %)
-         r4 r2
-      }
-
-      % RH Voice 2
-      \new Voice {
-         \voiceTwo
-         \override Staff.DynamicLineSpanner #'staff-padding = #2.5
-         <e'' b'>2 \p
-         <ds'' a'>4
-         <cs'' gs'>4
-         |
-         <bs' fs'>2
-         e'2
-         |
-         \once \override TextScript #'staff-padding = #2.5
-         <b'! a'>2 _ \markup \italic { cresc. }
-         b'4
-         <e'' cs''>4
-         |
-         b'2. ( \sf \>
-         a'4 )
-         \clef bass
-         | \break
-         s1 \p
-         |
-         s1
-         |
-         <gs e>4 (
-         <a fs>2. )
-         |
-         s4
-         r4 r2
-      }
-
-   >>
-
-   % LH Staff
-   \new Staff {
-      \override Staff.SustainPedalLineSpanner #'staff-padding = #5
-      <gs' e'>2 ( \sustainOn
-      <fs' ds' b>4 \sustainOff
-      <e' cs'>4
+    % RH Voice 1
+    \new Voice {
+      \set Score.currentBarNumber = #34
+      \voiceOne
+      gs''2 ( ^ \markup \italic { dolce e molto ligato }
+      fs''4
+      e''4
+      |
+      ds''2
+      cs''2 )
+      |
+      ds''2 (
+      e''4
+      fs''4
       |
-      <ds' bs gs>2
-      <cs' a>2 ) \sustainOn
+      <gs'' e''>2
+      <fs'' ds''>2 )
       |
+      \oneVoice
       \clef bass
-      \slurDown
-      <ds' b! a fs>2 ( \sustainOff
-      <e' b gs>4
-      <fs' cs' a>4 \sustainOn
+      <gs' e' b>2 (
+      <fs' ds' a>4
+      <e' cs' gs>4
+      |
+      <ds' bs fs>2
+      <cs' a e>2 )
       |
-      \clef treble
       \voiceOne
-      <<
-         {
-            <gs' e'>2
-            <fs' ds'>2 )
-         }
-         \new Voice {
-            \voiceTwo
-            b1 \sustainOff
-         }
-      >>
-      \oneVoice
+      b2 %(
+      cs'4
+      ds'4
+      |
+      \clef treble
+      <e' gs>4 %)
+      r4 r2
+    }
+
+    % RH Voice 2
+    \new Voice {
+      \voiceTwo
+      \override Staff.DynamicLineSpanner #'staff-padding = #2.5
+      <e'' b'>2 \p
+      <ds'' a'>4
+      <cs'' gs'>4
+      |
+      <bs' fs'>2
+      e'2
+      |
+      \once \override TextScript #'staff-padding = #2.5
+      <b'! a'>2 _ \markup \italic { cresc. }
+      b'4
+      <e'' cs''>4
       |
-      %\break
+      b'2. ( \sf \>
+      a'4 )
       \clef bass
-      <gs e>2 (
-      <fs ds b,>4
-      <e cs>4
+      | \break
+      s1 \p
       |
-      <ds bs, gs,>2
-      <cs a,>2 ) \sustainOn
+      s1
       |
-      <b,! b,,!>1 ( \sustainOff
+      <gs e>4 (
+      <a fs>2. )
       |
-      <e e,>4 )
+      s4
       r4 r2
-   }
+    }
+
+  >>
+
+  % LH Staff
+  \new Staff {
+    \override Staff.SustainPedalLineSpanner #'staff-padding = #5
+    <gs' e'>2 ( \sustainOn
+    <fs' ds' b>4 \sustainOff
+    <e' cs'>4
+    |
+    <ds' bs gs>2
+    <cs' a>2 ) \sustainOn
+    |
+    \clef bass
+    \slurDown
+    <ds' b! a fs>2 ( \sustainOff
+    <e' b gs>4
+    <fs' cs' a>4 \sustainOn
+    |
+    \clef treble
+    \voiceOne
+    <<
+      {
+        <gs' e'>2
+        <fs' ds'>2 )
+      }
+      \new Voice {
+        \voiceTwo
+        b1 \sustainOff
+      }
+    >>
+    \oneVoice
+    |
+    %\break
+    \clef bass
+    <gs e>2 (
+    <fs ds b,>4
+    <e cs>4
+    |
+    <ds bs, gs,>2
+    <cs a,>2 ) \sustainOn
+    |
+    <b,! b,,!>1 ( \sustainOff
+    |
+    <e e,>4 )
+    r4 r2
+  }
 
 >>
index 51e2f79b335fa902429546fcc8c826260cf77d9e..1dc9d5f429936cdb0a60b39d8600a0061ba86f60 100644 (file)
@@ -41,17 +41,23 @@ overriding the relevant property:
 
 \relative c'' {
   \once \override Score.BreakAlignment #'break-align-orders =
-        #(make-vector 3 '(instrument-name
-                          left-edge
-                          ambitus
-                          span-bar
-                          breathing-sign
-                          clef
-                          key-signature
-                          time-signature
-                          staff-bar
-                          custos
-                          span-bar))
+    #(make-vector 3 '(instrument-name
+                      left-edge
+                      ambitus
+                      span-bar
+                      breathing-sign
+                      clef
+                      key-signature
+                      time-signature
+                      staff-bar
+                      custos
+                      span-bar))
+  \once \override Staff.TimeSignature #'space-alist =
+    #'((first-note . (fixed-space . 2.0))
+       (right-edge . (extra-space . 0.5))
+       ;; free up some space between time signature
+       ;; and repeat bar line
+       (staff-bar . (extra-space . 1)))
   \bar "|:"
   c1
   d1
index 39f751663327c3ccf739b8de06a072c6d77c22d3..8ff776c818deebe9da84b56f0edef9f16ff70f9e 100644 (file)
@@ -50,7 +50,7 @@ measures except at the end of the line.
 } % begin verbatim
 
 \relative c' {
-  \override Score.BarNumber #'break-visibility = #'#(#f #t #t)
+  \override Score.BarNumber #'break-visibility = #end-of-line-invisible
   \set Score.currentBarNumber = #11
   % Permit first bar number to be printed
   \bar ""
index d08d4a3223a985d7df9800719a04d57fbd519564..3067f03a9a361902bafc6c746239c2810456e6cd 100644 (file)
@@ -39,7 +39,7 @@ Bar numbers can also be printed inside boxes or circles.
 
 \relative c' {
   % Prevent bar numbers at the end of a line and permit them elsewhere
-  \override Score.BarNumber  #'break-visibility = #end-of-line-invisible
+  \override Score.BarNumber #'break-visibility = #end-of-line-invisible
   \set Score.barNumberVisibility = #(every-nth-bar-number-visible 4)
 
   % Increase the size of the bar number by 2
index 34ab00d139ac3a634203225bbf3243d70939dd39..d109419b9b87a0414008f1eddf1abc6d29f8b3a0 100644 (file)
@@ -35,9 +35,9 @@ propriété @code{circled-tip}, ce qui affiche un cercle Ã  leur extrémité.
 
 
   texidoc = "
-Hairpins may be printed with a circled tip (al niente notation) by
-setting the @code{circled-tip} property of the @code{Hairpin} object to
-@code{#t}.
+Hairpin dynamics may be printed with a circled tip (@qq{al niente}
+notation) by setting the @code{circled-tip} property of the
+@code{Hairpin} object to @code{#t}.
 
 "
   doctitle = "Printing hairpins using al niente notation"
index 64cc2fd9f04799327f404a2c2bd3c3c9b335dbbe..cd0cda6ef70b7052fc52ce9dde7e6402a18e7b85 100644 (file)
@@ -61,6 +61,7 @@ must be inserted before the first note for this to work.
 \relative c' {
   \set Score.barNumberVisibility = #all-bar-numbers-visible
   \bar ""
-  c1 d e f \break
-  g1 e d c
+  c1 | d | e | f \break
+  g1 | e | d | c
 }
+
index 76462057b37a604477fef034f66edc3f8328aa6e..e35ce492930c79e1ba73326a82c1f96f0dada7a4 100644 (file)
@@ -37,7 +37,7 @@ Rests may be used in various styles.
 } % begin verbatim
 
 \layout {
-  indent = 0.0
+  indent = 0
   \context {
     \Staff
     \remove "Time_signature_engraver"
index 7e4dd5a8546910a8a8258e13feb3771adef1d0ad..db205ee48a6aca4f31fedbe735bfdbf6095d7fb7 100644 (file)
 } % begin verbatim
 
 
-
 \score {
-     \context PianoStaff <<
-       \new Staff =  "up" {
-           \time 4/8
-           \key c \minor
-
-
-           << {
-               \revert Stem #'direction
-               \change Staff = down
-               \set subdivideBeams = ##t            
-               g16.[
-                   \change Staff = up
-                   c'''32      \change Staff = down
-                   g32 \change Staff = up
-                   c'''32      \change Staff = down
-                   g16]
-               \change Staff = up
-               \stemUp
-               \set followVoice = ##t
-               c'''32([ b''16 a''16 gis''16 g''32)]  } \\
-              { s4 \times 2/3 { d'16[ f' g'] } as'32[ b''32 e'' d''] } \\
-              { s4 \autoBeamOff d''8.. f''32  } \\
-              { s4 es''4 }
-          >>
-       }
-
-       \new Staff =  "down" {
-           \clef bass
-           \key c \minor
-           \set subdivideBeams = ##f
-           \override Stem  #'french-beaming = ##t
-           \override Beam  #'thickness = #0.3
-           \override Stem  #'thickness = #4.0
-           g'16[ b16 fis16 g16]
-           << \makeClusters { 
-               as16 <as b>
-               <g b>
-               <g cis>
-           } \\
-              {
-                  \override Staff.Arpeggio  #'arpeggio-direction =#down
-                  <cis, e, gis, b, cis>4\arpeggio  }
-          >>
-       }
-    >>
-    
+  \context PianoStaff <<
+    \new Staff = "up" {
+      \time 4/8
+      \key c \minor
+      <<
+        {
+          \revert Stem #'direction
+          \change Staff = down
+          \set subdivideBeams = ##t
+          g16.[
+          \change Staff = up
+          c'''32
+          \change Staff = down
+          g32
+          \change Staff = up
+          c'''32
+          \change Staff = down
+          g16]
+          \change Staff = up
+          \stemUp
+          \set followVoice = ##t
+          c'''32([ b''16 a''16 gis''16 g''32)]
+        }
+        \\
+        { s4 \times 2/3 { d'16[ f' g'] } as'32[ b''32 e'' d''] }
+        \\
+        { s4 \autoBeamOff d''8.. f''32  }
+        \\
+        { s4 es''4 }
+      >>
+    }
+    \new Staff = "down" {
+      \clef bass
+      \key c \minor
+      \set subdivideBeams = ##f
+      \override Stem #'french-beaming = ##t
+      \override Beam #'beam-thickness = #0.3
+      \override Stem #'thickness = #4.0
+      g'16[ b16 fis16 g16]
+      <<
+        \makeClusters {
+          as16 <as b> <g b> <g cis>
+        }
+        \\
+        {
+          \override Staff.Arpeggio #'arpeggio-direction = #DOWN
+          <cis, e, gis, b, cis>4\arpeggio
+        }
+      >>
+    }
+  >>
   \midi {
     \context {
       \Score
       tempoWholesPerMinute = #(ly:make-moment 60 8)
-      }
     }
-
-
-
-    \layout {
-       ragged-right = ##t 
-
-       \context {
-           \Staff
-           \consists Horizontal_bracket_engraver
-       }
-       
+  }
+  \layout {
+    ragged-right = ##t
+    \context {
+      \Staff
+      \consists "Horizontal_bracket_engraver"
     }
+  }
 }
index 721e11769374b4c19e0ac78a5630722a21415fd9..6e8be0988b1eb1dbb1c8d3b0769d25fcb07800e4 100644 (file)
@@ -27,10 +27,11 @@ The direction will always be above, but one can tweak this via a
 
 % The same as \flageolet, just a little smaller
 smallFlageolet =
-#(let ((m (make-music 'ArticulationEvent 'articulation-type "flageolet")))
-   (ly:music-set-property! m 'tweaks
-     (acons 'font-size -2 (ly:music-property m 'tweaks)))
-  m)
+#(let ((m (make-articulation "flageolet")))
+   (set! (ly:music-property m 'tweaks)
+         (acons 'font-size -2
+                (ly:music-property m 'tweaks)))
+   m)
 
 \relative c' {
   s4^"wrong:"
index 624f6948b95bab25d13b049bf98d64308aef6471..f64e03f713e4159f6249505a632007fe0c50b445 100644 (file)
@@ -5,14 +5,15 @@
 \version "2.13.10"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
-  ragged-right=##t
-  line-width=17\cm
-  indent=0\cm
+\paper {
+  ragged-right = ##t
+  line-width = 17\cm
+  indent = 0\cm
 }
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 % measures 108 - 118
 
 \layout {
-   \context {
-      \Score
-      \override SpacingSpanner #'base-shortest-duration =
-         #(ly:make-moment 1 18)
-      \override NonMusicalPaperColumn #'line-break-system-details =
-         #'((alignment-offsets . (0 -12)))
-   }
+  \context {
+    \Score
+    \override SpacingSpanner #'base-shortest-duration =
+    #(ly:make-moment 1 18)
+    \override NonMusicalPaperColumn #'line-break-system-details =
+    #'((alignment-distances . (12)))
+  }
 }
 
 trillflat =
-  \once \override TrillSpanner #'(bound-details left text) =
-    #(markup #:translate-scaled '(-0.05 . -1)
-             #:concat (#:musicglyph "scripts.trill"
-                       #:translate '(-0.5 . 1.9) #:fontsize -7 #:flat))
+\once \override TrillSpanner #'(bound-details left text) =
+#(markup #:translate-scaled '(-0.05 . -1)
+  #:concat (#:musicglyph "scripts.trill"
+    #:translate '(-0.5 . 1.9) #:fontsize -7 #:flat))
 
 
 \new PianoStaff <<
 
-   % RH
-   \new Staff <<
-      \clef treble
-      \key c \major
-      \time 9/16
-      \set Score.currentBarNumber = #108
+  % RH
+  \new Staff <<
+    \clef treble
+    \key c \major
+    \time 9/16
+    \set Score.currentBarNumber = #108
 
-      % RH voice 1
-      \new Voice {
+    % RH voice 1
+    \new Voice {
 
-         \voiceOne
-         s4.
-         s8.
+      \voiceOne
+      s4.
+      s8.
 
-         |
+      |
 
-         s4.
-         a''8 \p \> [ (
-         g''16 ] )
+      s4.
+      a''8 \p \> [ (
+      g''16 ] )
 
-         |
+      |
 
-         g''4.
-         af''8 [ (
-         g''16 ] )
+      g''4.
+      af''8 [ (
+      g''16 ] )
 
-         |
+      |
 
-         g''8. [
-         g''8.
-         g''8. \pp ]
+      g''8. [
+      g''8.
+      g''8. \pp ]
 
-         |
+      |
 
-         g''8. [
-         af''8.
-         af''8. ]
+      g''8. [
+      af''8.
+      af''8. ]
 
-         |
+      |
 
-         af''8. [
-         af''8.
-         af''8. ]
+      af''8. [
+      af''8.
+      af''8. ]
 
-         |
-         \break
+      |
+      \break
 
-         \trillflat
-         af''4. \startTrillSpan
-         ~
-         af''8.
-         ~
+      \trillflat
+      af''4. \startTrillSpan
+      ~
+      af''8.
+      ~
 
-         |
+      |
 
-         af''4.
-         ~
-         af''8.
-         ~
+      af''4.
+      ~
+      af''8.
+      ~
 
-         |
+      |
 
-         \oneVoice
-         <af'' d''>8. [
-         a''8. \p \<
-         bf''8. ]
-         ~
+      \oneVoice
+      <af'' d''>8. [
+      a''8. \p \<
+      bf''8. ]
+      ~
 
-         |
+      |
 
-         bf''8. [
-         b''8.
-         c'''8. ]
-         ~
+      bf''8. [
+      b''8.
+      c'''8. ]
+      ~
 
-         \bar "||"
+      \bar "||"
 
-         \key ef \major
-         c'''8. [
-         cs'''8. \f ] \stopTrillSpan
-         r8.
+      \key ef \major
+      c'''8. [
+      cs'''8. \f ] \stopTrillSpan
+      r8.
 
-      }
+    }
 
-      % RH voice 2
-      \new Voice {
-         \voiceTwo
-         \override Voice.TrillSpanner #'direction = #down
-         d''4. \f \startTrillSpan
-         ~
-         d''8.
-         ~
+    % RH voice 2
+    \new Voice {
+      \voiceTwo
+      \override Voice.TrillSpanner #'direction = #DOWN
+      d''4. \f \startTrillSpan
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''8. \stopTrillSpan
-         \trillflat
-         d''4. \startTrillSpan
-         ~
+      d''8. \stopTrillSpan
+      \trillflat
+      d''4. \startTrillSpan
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8. \stopTrillSpan
-         ~
+      d''4.
+      ~
+      d''8. \stopTrillSpan
+      ~
 
-         |
+      |
 
-         \trillflat
-         d''4. \startTrillSpan
-         ~
-         d''8.
-         ~
+      \trillflat
+      d''4. \startTrillSpan
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         d''4.
-         ~
-         d''8.
-         ~
+      d''4.
+      ~
+      d''8.
+      ~
 
-         |
+      |
 
-         \once \override NoteColumn #'ignore-collision = ##t
-         \once \override NoteHead #'transparent = ##t
-         \once \override Dots #'transparent = ##t
-         \once \override Stem #'transparent = ##t
-         d''8. \stopTrillSpan
-         s4.
+      \once \override NoteColumn #'ignore-collision = ##t
+      \hideNotes
+      d''8. \stopTrillSpan
+      s4.
 
-         |
+      |
 
-         s8.
-         s8.
+      s8.
+      s8.
 
-      }
+    }
 
-   >>
+  >>
 
-   % LH staff
-   \new Staff {
-      \clef bass
-      \key c \major
-      \time 9/16
+  % LH staff
+  \new Staff {
+    \clef bass
+    \key c \major
+    \time 9/16
 
-      r8.
-      r8.
-      <c! c,!>8 [ (
-      <g, g,,>16 ] )
+    r8.
+    r8.
+    <c! c,!>8 [ (
+    <g, g,,>16 ] )
 
-      |
+    |
 
-      <g, g,,>4.
-      \clef treble
-      c''8 [ (
-      b'16 ] )
+    <g, g,,>4.
+    \clef treble
+    c''8 [ (
+    b'16 ] )
 
-      |
+    |
 
-      b'4.
-      c''8 [ (
-      b'16 ] )
+    b'4.
+    c''8 [ (
+    b'16 ] )
 
-      |
+    |
 
-      b'8. [
-      b'8.
-      b'8. ]
+    b'8. [
+    b'8.
+    b'8. ]
 
-      |
+    |
 
-      b'8. [
-      bf'8. ]
-      \clef bass
-      <f f,>8 [ (
-      <bf, bf,,>16 ] )
+    b'8. [
+    bf'8. ]
+    \clef bass
+    <f f,>8 [ (
+    <bf, bf,,>16 ] )
 
-      |
+    |
 
-      <bf, bf,,>4.
-      \clef treble
-      f'8 [ (
-      bf16 ] )
+    <bf, bf,,>4.
+    \clef treble
+    f'8 [ (
+    bf16 ] )
 
-      |
+    |
 
-      <<
+    <<
 
-         \new Voice {
-            \voiceOne
-            \override Voice.TrillSpanner #'direction = #up
-            f'4. \startTrillSpan
-            ~
-            f'8.
-            ~
+      \new Voice {
+        \voiceOne
+        \override Voice.TrillSpanner #'direction = #UP
+        f'4. \startTrillSpan
+        ~
+        f'8.
+        ~
 
-            |
+        |
 
-            f'4.
-            ~
-            f'8.
-            ~
+        f'4.
+        ~
+        f'8.
+        ~
 
-            |
+        |
 
-            f'8. \stopTrillSpan
-         }
+        f'8. \stopTrillSpan
+      }
 
-         \new Voice {
-            \voiceTwo
-            \override Voice.TrillSpanner #'direction = #down
-            bf8. [
-            bf8.
-            bf8. ]
+      \new Voice {
+        \voiceTwo
+        \override Voice.TrillSpanner #'direction = #DOWN
+        bf8. [
+        bf8.
+        bf8. ]
 
-            |
+        |
 
-            bf8. [
-            bf8.
-            bf8. ]
+        bf8. [
+        bf8.
+        bf8. ]
 
-            |
+        |
 
-            bf8.
-         }
+        bf8.
+      }
 
-      >>
+    >>
 
-      \oneVoice
-      r8.
-      r8.
+    \oneVoice
+    r8.
+    r8.
 
-      |
+    |
 
-      r8.
-      r8.
-      r8.
-      \clef bass
+    r8.
+    r8.
+    r8.
+    \clef bass
 
-      |
+    |
 
-      \key ef \major
-      r8.
-      r8.
-      r8.
+    \key ef \major
+    r8.
+    r8.
+    r8.
 
-   }
+  }
 
 >>
index 759f0d04784550daf23b0541176adde7e94e0983..8702f355f39309eb4849efc9f27cda320514c315 100644 (file)
@@ -37,7 +37,8 @@ the different notations.
   \override Staff.Stem #'stemlet-length = #0.75
 
   c'16[^\markup { stemlets over rests } d' r f']
-  g'16[^\markup { stemlets and no rests } f' \once \override Rest #'transparent = ##t r d']
+  g'16[^\markup { stemlets and no rests } f'
+  \once \override Rest #'transparent = ##t
+  r16 d']
 }
 
-
index 4602b9d6a42aff545abae4cfd0e590b05b045f9f..534d03cc5f5fd1800743094e5d3fd988e098dbf1 100644 (file)
@@ -67,8 +67,8 @@ intervals defined by the current value of @code{beatLength} by reducing
 the multiple beams to just one beam between the sub-groups. Note that
 @code{beatLength} defaults to one over the denominator of the current
 time signature if not set explicitly. It must be set to a fraction
-giving the duration of the beam sub-group using the @code{make-moment}
-function, as shown here:
+giving the duration of the beam sub-group using the
+@code{ly:make-moment} function, as shown here:
 
 
 
index 6ecbbfd67d68dd15ed6c1d30252a1c273871d302..3243663f664847001984fd0d8ebd58ceba804562 100644 (file)
@@ -5,7 +5,7 @@
 \version "2.13.10"
 \include "english.ly"
 #(set-global-staff-size 15)
-\paper{
+\paper {
   line-width = 16\cm
   indent = 0\cm
 }
@@ -19,7 +19,8 @@
 
 
 \layout {
-  \context { \Score
+  \context {
+    \Score
     \override PaperColumn #'keep-inside-line = ##t
     \override NonMusicalPaperColumn #'keep-inside-line = ##t
   }
 % measures 1 - 7
 
 \layout {
-   \context {
-      \Score
-      \override SpacingSpanner #'base-shortest-duration =
-         #(ly:make-moment 1 20)
-      %\override NonMusicalPaperColumn #'line-break-system-details =
-      %#'((alignment-offsets . (0 -12)))
-   }
+  \context {
+    \Score
+    \override SpacingSpanner #'base-shortest-duration =
+    #(ly:make-moment 1 20)
+  }
 }
 
 \new PianoStaff <<
 
-   % RH staff
-   \new Staff {
-      \clef treble
-      \key af \major
-      \time 3/4
-
-      \once \override TextScript #'staff-padding = #4
-      <c'' af'>4. (
-      _ \markup { \dynamic p \italic { con amabilità } }
-      <af' ef'>8 )
-      <af' ef'>8. [
-      <af' ef'>16 ]
-
-      |
-
-      <df'' g'>4
-      <bf' g'>2
-      _ \markup { \italic { ten. } }
-
-      |
-
-      <<
-
-         \new Voice {
-            \voiceOne
-            ef''4. (
-            df''8 [ )
-            ef'' (
-            f'' ) ]
-
-            |
-
-            \once \override TextScript #'staff-padding = #4
-            ef''8. (
-            _ \markup { \italic { tranqu. } }
-            d''16 )
-            df''8 \trill \fermata
-            _ \markup { \italic { ten. } }
-         }
-
-         \new Voice {
-            \voiceTwo
-            af'4.
-            af'8 [
-            af'8
-            af'8 ]
-
-            |
+  % RH staff
+  \new Staff {
+    \clef treble
+    \key af \major
+    \time 3/4
+
+    \once \override TextScript #'staff-padding = #4
+    <c'' af'>4. (
+    _ \markup { \dynamic p \italic { con amabilità } }
+    <af' ef'>8 )
+    <af' ef'>8. [
+    <af' ef'>16 ]
+
+    |
+
+    <df'' g'>4
+    <bf' g'>2
+    _ \markup { \italic { ten. } }
+
+    |
+
+    <<
+
+      \new Voice {
+        \voiceOne
+        ef''4. (
+        df''8 [ )
+        ef'' (
+        f'' ) ]
+
+        |
+
+        \once \override TextScript #'staff-padding = #4
+        ef''8. (
+        _ \markup { \italic { tranqu. } }
+        d''16 )
+        df''8 \trill \fermata
+        _ \markup { \italic { ten. } }
+      }
+
+      \new Voice {
+        \voiceTwo
+        af'4.
+        af'8 [
+        af'8
+        af'8 ]
+
+        |
+
+        g'4
+        g'8
+      }
+
+    >>
+
+    \oneVoice
+    \once \override TextScript #'staff-padding = #4
+    df''32
+    _ \markup { \italic dolce }
+    c''32
+    df''32
+    ef''32
+    \acciaccatura { df''[ ef'' ] }
+    f''8
+    ef''16
+    df''16
+
+    |
+    \break
+    \overrideProperty "Score.NonMusicalPaperColumn"
+    #'line-break-system-details #'((alignment-distances . (12)))
+
+    c''4. (
+    ^ \markup \italic { cantabile, con intimissimo sentimento,
+      ma sempre molto dolce e semplice }
+    ef''4
+    af''8 )
+
+    |
+
+    af''4 (
+    g''2 )
+
+    |
+
+    bf''4. (
+    g''4
+    ef''8 )
+
+    |
+  }
 
-            g'4
-            g'8
-         }
-
-      >>
-
-      \oneVoice
-      \once \override TextScript #'staff-padding = #4
-      df''32
-      _ \markup { \italic dolce }
-      c''32
-      df''32
-      ef''32
-      \acciaccatura { df''[ ef'' ] }
-      f''8
-      ef''16
-      df''16
-
-      |
-      \break
-      \overrideProperty "Score.NonMusicalPaperColumn"
-      #'line-break-system-details #'((alignment-offsets . (0 -12)))
-
-      c''4. (
-      ^ \markup \italic { cantabile, con intimissimo sentimento,
-         ma sempre molto dolce e semplice }
-      ef''4
-      af''8 )
-
-      |
-
-      af''4 (
-      g''2 )
-
-      |
-
-      bf''4. (
-      g''4
-      ef''8 )
-
-      |
-   }
-
-   % LH
-   \new Staff {
-      \clef bass
-      \key af \major
-      \time 3/4
-
-      <ef af,>4. (
-      <ef c>8 )
-      <ef c>8. [
-      <ef c>16 ]
-
-      |
-
-      <ef bf,>4
-      <ef df>2 ^ \markup { \italic ten. }
-
-      |
-
-      <<
-
-         \new Voice {
-            \voiceOne
-            ef8 [ (
-            af8
-            c'8
-            bf8 )
-            c'8 ( \staccato
-            df'8 ]  ) \staccato
-
-            |
-
-            bf4
-            bf8 ^ \markup { \italic ten. }
-         }
-
-         \new Voice {
-            \voiceTwo
-            c4. (
-            f8 [ )
-            ef8 ( \staccato
-            df8 ] ) \staccato
-
-            |
-
-            ef4
-            ef8 \fermata
-         }
-
-      >>
-
-      \oneVoice
-      r8
-      r4
-      \clef treble
-
-      |
-
-      \override Staff.SustainPedalLineSpanner #'outside-staff-priority = #1000
-      \override Staff.SustainPedalLineSpanner #'staff-padding = #7
-      \once \override TextScript #'padding = #2
-      af16 \sustainOn
-      ^ \markup \italic { non staccato }
-      _ \markup \italic { molto \concat {\dynamic {p},} sempre tranquillo
-         ed egualmente, non rubato }
-      <ef' c'>16
-      <ef' c'>16
-      <ef' c'>16
-      af16
-      <ef' c'>16
-      <ef' c'>16
-      <ef' c'>16
-      af16 \sustainOn
-      <ef' c'>16
-      <ef' c'>16
-      <ef' c'>16
-
-      |
-
-      bf16 \sustainOn
-      <ef' df'>16
-      <ef' df'>16
-      <ef' df'>16
-      bf16 \sustainOn
-      <ef' df'>16
-      <ef' df'>16
-      <ef' df'>16
-      bf16
-      <ef' df'>16
-      <ef' df'>16
-      <ef' df'>16
-
-      |
-
-      \override Staff.SustainPedalLineSpanner #'staff-padding = #4
-      df'16 \sustainOn
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      df'16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      df'16 \sustainOn
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-      <bf' g' ef'>16
-
-      |
-   }
+  % LH
+  \new Staff {
+    \clef bass
+    \key af \major
+    \time 3/4
+
+    <ef af,>4. (
+    <ef c>8 )
+    <ef c>8. [
+    <ef c>16 ]
+
+    |
+
+    <ef bf,>4
+    <ef df>2 ^ \markup { \italic ten. }
+
+    |
+
+    <<
+
+      \new Voice {
+        \voiceOne
+        ef8 [ (
+        af8
+        c'8
+        bf8 )
+        c'8 ( \staccato
+        df'8 ]  ) \staccato
+
+        |
+
+        bf4
+        bf8 ^ \markup { \italic ten. }
+      }
+
+      \new Voice {
+        \voiceTwo
+        c4. (
+        f8 [ )
+        ef8 ( \staccato
+        df8 ] ) \staccato
+
+        |
+
+        ef4
+        ef8 \fermata
+      }
+
+    >>
+
+    \oneVoice
+    r8
+    r4
+    \clef treble
+
+    |
+
+    \override Staff.SustainPedalLineSpanner #'outside-staff-priority = #1000
+    \override Staff.SustainPedalLineSpanner #'staff-padding = #7
+    \once \override TextScript #'padding = #2
+    af16 \sustainOn
+    ^ \markup \italic { non staccato }
+    _ \markup \italic { molto \concat { \dynamic { p } , } sempre tranquillo
+      ed egualmente, non rubato }
+    <ef' c'>16
+    <ef' c'>16
+    <ef' c'>16
+    af16
+    <ef' c'>16
+    <ef' c'>16
+    <ef' c'>16
+    af16 \sustainOn
+    <ef' c'>16
+    <ef' c'>16
+    <ef' c'>16
+
+    |
+
+    bf16 \sustainOn
+    <ef' df'>16
+    <ef' df'>16
+    <ef' df'>16
+    bf16 \sustainOn
+    <ef' df'>16
+    <ef' df'>16
+    <ef' df'>16
+    bf16
+    <ef' df'>16
+    <ef' df'>16
+    <ef' df'>16
+
+    |
+
+    \override Staff.SustainPedalLineSpanner #'staff-padding = #4
+    df'16 \sustainOn
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    df'16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    df'16 \sustainOn
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+    <bf' g' ef'>16
+
+    |
+  }
 
 >>
index b69e07ae3e96b12c3ca084bc344b42f3956f6577..3589080e49a79086b1e59c4f31e1f83d6b5cb62d 100644 (file)
@@ -16,38 +16,37 @@ around some text (or other markup).
 
 % New command to add a three sided box, with sides north, west and south
 % Based on the box-stencil command defined in scm/stencil.scm
-% Note that ";" is used to comment a line in Scheme
+% Note that ";;" is used to comment a line in Scheme
 #(define-public (NWS-box-stencil stencil thickness padding)
-  "Add a box around STENCIL, producing a new stencil."
-  (let* ((x-ext (interval-widen (ly:stencil-extent stencil 0) padding))
-         (y-ext (interval-widen (ly:stencil-extent stencil 1) padding))
-         (y-rule (make-filled-box-stencil (cons 0 thickness) y-ext))
-         (x-rule (make-filled-box-stencil
-                  (interval-widen x-ext thickness) (cons 0 thickness))))
-;    (set! stencil (ly:stencil-combine-at-edge stencil X 1 y-rule padding))
-    (set! stencil (ly:stencil-combine-at-edge stencil X -1 y-rule padding))
-    (set! stencil (ly:stencil-combine-at-edge stencil Y 1 x-rule 0.0))
-    (set! stencil (ly:stencil-combine-at-edge stencil Y -1 x-rule 0.0))
-    stencil))
+   "Add a box around STENCIL, producing a new stencil."
+   (let* ((x-ext (interval-widen (ly:stencil-extent stencil X) padding))
+          (y-ext (interval-widen (ly:stencil-extent stencil Y) padding))
+          (y-rule (make-filled-box-stencil (cons 0 thickness) y-ext))
+          (x-rule (make-filled-box-stencil
+                   (interval-widen x-ext thickness) (cons 0 thickness))))
+     ;; (set! stencil (ly:stencil-combine-at-edge stencil X 1 y-rule padding))
+     (set! stencil (ly:stencil-combine-at-edge stencil X LEFT y-rule padding))
+     (set! stencil (ly:stencil-combine-at-edge stencil Y UP x-rule 0.0))
+     (set! stencil (ly:stencil-combine-at-edge stencil Y DOWN x-rule 0.0))
+     stencil))
 
 % The corresponding markup command, based on the \box command defined
 % in scm/define-markup-commands.scm
 #(define-markup-command (NWS-box layout props arg) (markup?)
-  "Draw a box round @var{arg}.  Looks at @code{thickness},
+   "Draw a box round @var{arg}.  Looks at @code{thickness},
 @code{box-padding} and @code{font-size} properties to determine line
 thickness and padding around the markup."
-  (let* ((th (chain-assoc-get 'thickness props  0.1))
-         (size (chain-assoc-get 'font-size props 0))
-         (pad (* (magstep size)
-                 (chain-assoc-get 'box-padding props 0.2)))
-         (m (interpret-markup layout props arg)))
-    (NWS-box-stencil m th pad)))
+   (let* ((th (chain-assoc-get 'thickness props 0.1))
+          (size (chain-assoc-get 'font-size props 0))
+          (pad (* (magstep size)
+                  (chain-assoc-get 'box-padding props 0.2)))
+          (m (interpret-markup layout props arg)))
+     (NWS-box-stencil m th pad)))
 
 % Test it:
 
-\layout { ragged-right = ##f }
 \relative c' {
-  c2^\markup { \NWS-box ABCD }
-  c2^\markup { \NWS-box \note #"4" #1.0 }
+  c1^\markup { \NWS-box ABCD }
+  c1^\markup { \NWS-box \note #"4" #1.0 }
 }
 
index 22b834925483b270d57c7700bc0bf38fb25ab592..db00abc9c204d8621f17850a033504a0f2ab1554 100644 (file)
@@ -9,11 +9,11 @@
   texidoc = "
 Sometimes, a time signature should not print the whole fraction (e.g.
 7/4), but only the numerator (7 in this case). This can be easily done
-by using \\override Staff.TimeSignature #'style = #'single-digit to
-change the style permanently. By using \\revert Staff.TimeSignature
-#'style, this setting can be reversed. To apply the single-digit style
-to only one time signature, use the \\override command and prefix it
-with a \\once.
+by using @code{\\override Staff.TimeSignature #'style = #'single-digit}
+to change the style permanently. By using @code{\\revert
+Staff.TimeSignature #'style}, this setting can be reversed. To apply
+the single-digit style to only one time signature, use the
+@code{\\override} command and prefix it with a @code{\\once}.
 
 "
   doctitle = "Time signature printing only the numerator as a number (instead of the fraction)"
@@ -25,17 +25,18 @@ with a \\once.
   % Change the style permanently
   \override Staff.TimeSignature #'style = #'single-digit
   \time 2/4
-  c c
+  c4 c
   \time 3/4
-  c c c
+  c4 c c
   % Revert to default style:
   \revert Staff.TimeSignature #'style
   \time 2/4
-  c c
+  c4 c
   % single-digit style only for the next time signature
   \once \override Staff.TimeSignature #'style = #'single-digit
   \time 5/4
-  c c c c c
+  c4 c c c c
   \time 2/4
-  c c
+  c4 c
 }
+
index c2db77be24d5d9e965436e3eceaec583b9ba6864..50f987169ef9324f7bf6f8dde9c920bd62bb5550 100644 (file)
@@ -33,22 +33,18 @@ global = {
   \set Score.skipBars = ##t
   \key g \major
   \time 4/4
-
   %make the staff lines invisible on staves
   \override Staff.BarLine #'transparent = ##t
   \skip 1*8 % the actual music
-
   % let finis bar go through all staves
   \override Staff.BarLine #'transparent = ##f
-
   % finis bar
   \bar "|."
 }
 
-
 discantusNotes = {
   \transpose c' c'' {
-    \clef "treble"
+    \clef treble
     d'2. d'4 |
     b e' d'2 |
     c'4 e'4.( d'8 c' b |
@@ -71,7 +67,7 @@ discantusLyrics = \lyricmode {
 
 altusNotes = {
   \transpose c' c'' {
-    \clef "treble"
+    \clef treble
     r2 g2. e4 fis g | % two bars
     a2 g4 e |
     fis g4.( fis16 e fis4) |
@@ -109,7 +105,7 @@ tenorLyrics = \lyricmode {
 
 bassusNotes = {
   \transpose c' c' {
-    \clef "bass"
+    \clef bass
     R1 |
     R1 |
     R1 |
@@ -126,137 +122,143 @@ bassusLyrics = \lyricmode {
   -us.
 }
 
-incipitDiscantus = \markup{
-       \score{
-               {
-               \set Staff.instrumentName="Discantus "
-               \override NoteHead   #'style = #'neomensural
-               \override Rest #'style = #'neomensural
-               \override Staff.TimeSignature #'style = #'neomensural
-               \cadenzaOn
-               \clef "neomensural-c1"
-               \key f \major
-               \time 2/2
-               c''1._"IV-" s2  %two bars
-               \skip 1*8 % eight bars
-       }
-       \layout {
-               \context {\Voice
-                       \remove Ligature_bracket_engraver
-                       \consists Mensural_ligature_engraver
-               }
-               line-width=4.5\cm
-       }
-       }
+incipitDiscantus = \markup {
+  \score {
+    {
+      \set Staff.instrumentName = #"Discantus "
+      \override NoteHead #'style = #'neomensural
+      \override Rest #'style = #'neomensural
+      \override Staff.TimeSignature #'style = #'neomensural
+      \cadenzaOn
+      \clef "neomensural-c1"
+      \key f \major
+      \time 2/2
+      c''1._"IV-" s2  %two bars
+      \skip 1*8 % eight bars
+    }
+    \layout {
+      \context {
+        \Voice
+        \remove "Ligature_bracket_engraver"
+        \consists "Mensural_ligature_engraver"
+      }
+      line-width = 4.5\cm
+    }
+  }
 }
 
-incipitAltus = \markup{
-       \score{
-               {
-               \set Staff.instrumentName="Altus "
-               \override NoteHead   #'style = #'neomensural
-               \override Rest #'style = #'neomensural
-               \override Staff.TimeSignature #'style = #'neomensural
-               \cadenzaOn
-               \clef "neomensural-c3"
-               \key f \major
-               \time 2/2
-               r1        % one bar
-        f'1._"IV-" s2   % two bars
-        \skip 1*7 % seven bars
-               }
-       \layout {
-               \context {\Voice
-                       \remove Ligature_bracket_engraver
-                       \consists Mensural_ligature_engraver
-               }
-               line-width=4.5\cm
-       }
-       }
+incipitAltus = \markup {
+  \score {
+    {
+      \set Staff.instrumentName = #"Altus "
+      \override NoteHead #'style = #'neomensural
+      \override Rest #'style = #'neomensural
+      \override Staff.TimeSignature #'style = #'neomensural
+      \cadenzaOn
+      \clef "neomensural-c3"
+      \key f \major
+      \time 2/2
+      r1        % one bar
+      f'1._"IV-" s2   % two bars
+      \skip 1*7 % seven bars
+    }
+    \layout {
+      \context {
+        \Voice
+        \remove "Ligature_bracket_engraver"
+        \consists "Mensural_ligature_engraver"
+      }
+      line-width = 4.5\cm
+    }
+  }
 }
 
-incipitTenor = \markup{
-    \score{ {
-    \set Staff.instrumentName = "Tenor  "
-    \override NoteHead   #'style = #'neomensural
-       \override Rest #'style = #'neomensural
-       \override Staff.TimeSignature #'style = #'neomensural
-       \cadenzaOn
-       \clef "neomensural-c4"
-       \key f \major
-       \time 2/2
-    r\longa   % four bars
-    r\breve   % two bars
-    r1        % one bar
-    c'1._"IV-" s2   % two bars
-    \skip 1   % one bar
+incipitTenor = \markup {
+  \score {
+    {
+      \set Staff.instrumentName = #"Tenor  "
+      \override NoteHead #'style = #'neomensural
+      \override Rest #'style = #'neomensural
+      \override Staff.TimeSignature #'style = #'neomensural
+      \cadenzaOn
+      \clef "neomensural-c4"
+      \key f \major
+      \time 2/2
+      r\longa   % four bars
+      r\breve   % two bars
+      r1        % one bar
+      c'1._"IV-" s2   % two bars
+      \skip 1   % one bar
     }
     \layout {
-               \context {\Voice
-                       \remove Ligature_bracket_engraver
-                       \consists Mensural_ligature_engraver
-               }
-               line-width=4.5\cm
-}
-}
+      \context {
+        \Voice
+        \remove "Ligature_bracket_engraver"
+        \consists "Mensural_ligature_engraver"
+      }
+      line-width = 4.5\cm
+    }
+  }
 }
 
-incipitBassus = \markup{
-    \score{ {
-    \set Staff.instrumentName = "Bassus  "
-    \override NoteHead   #'style = #'neomensural
-       \override Rest #'style = #'neomensural
-       \override Staff.TimeSignature #'style = #'neomensural
-       \cadenzaOn
-       \clef "bass"
-       \key f \major
-       \time 2/2
-    % incipit
-    r\maxima  % eight bars
-    f1._"IV-" s2    % two bars
+incipitBassus = \markup {
+  \score {
+    {
+      \set Staff.instrumentName = #"Bassus  "
+      \override NoteHead #'style = #'neomensural
+      \override Rest #'style = #'neomensural
+      \override Staff.TimeSignature #'style = #'neomensural
+      \cadenzaOn
+      \clef "bass"
+      \key f \major
+      \time 2/2
+      % incipit
+      r\maxima  % eight bars
+      f1._"IV-" s2    % two bars
     }
     \layout {
-               \context {\Voice
-                       \remove Ligature_bracket_engraver
-                       \consists Mensural_ligature_engraver
-               }
-               line-width=4.5\cm
-            }
-     }
+      \context {
+        \Voice
+        \remove "Ligature_bracket_engraver"
+        \consists "Mensural_ligature_engraver"
+      }
+      line-width = 4.5\cm
+    }
+  }
 }
 
 %StaffGroup is used instead of ChoirStaff to get bar lines between systems
 \score {
   <<
-  \new StaffGroup = choirStaff <<
-    \new Voice =
-      "discantusNotes" << \global
-      \set Staff.instrumentName=\incipitDiscantus
-      \discantusNotes >>
-    \new Lyrics =
-      "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
+    \new StaffGroup = choirStaff <<
+      \new Voice = "discantusNotes" <<
+        \global
+        \set Staff.instrumentName = \incipitDiscantus
+        \discantusNotes
+      >>
+      \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
 
-    \new Voice =
-      "altusNotes" << \global
-      \set Staff.instrumentName=\incipitAltus
-      \altusNotes >>
-    \new Lyrics =
-      "altusLyrics" \lyricsto altusNotes { \altusLyrics }
+      \new Voice = "altusNotes" <<
+        \global
+        \set Staff.instrumentName = \incipitAltus
+        \altusNotes
+      >>
+      \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
 
-    \new Voice =
-      "tenorNotes" << \global
-      \set Staff.instrumentName=\incipitTenor
-      \tenorNotes >>
-    \new Lyrics =
-      "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
+      \new Voice = "tenorNotes" <<
+        \global
+        \set Staff.instrumentName = \incipitTenor
+        \tenorNotes
+      >>
+      \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
 
-    \new Voice =
-      "bassusNotes" << \global
-      \set Staff.instrumentName=\incipitBassus
-      \bassusNotes >>
+      \new Voice = "bassusNotes" <<
+        \global
+        \set Staff.instrumentName = \incipitBassus
+        \bassusNotes
       >>
-    \new Lyrics =
-      "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
+    >>
+    \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
     %Keep the bass lyrics outside of the staff group to avoid bar lines
     %between the lyrics.
   >>
@@ -264,21 +266,23 @@ incipitBassus = \markup{
   \layout {
     \context {
       \Score
-
       % no bars in staves
       \override BarLine #'transparent = ##t
     }
-    % the next three instructions keep the lyrics between the barlines
-       \context { \Lyrics
-          \consists "Bar_engraver"
-          \override BarLine #'transparent = ##t }
-       \context { \StaffGroup \consists "Separating_line_group_engraver" }
+    % the next three instructions keep the lyrics between the bar lines
+    \context {
+      \Lyrics
+      \consists "Bar_engraver"
+      \override BarLine #'transparent = ##t
+    }
+    \context {
+      \StaffGroup
+      \consists "Separating_line_group_engraver"
+    }
     \context {
       \Voice
-
       % no slurs
       \override Slur #'transparent = ##t
-
       % Comment in the below "\remove" command to allow line
       % breaking also at those barlines where a note overlaps
       % into the next bar.  The command is commented out in this
@@ -287,7 +291,7 @@ incipitBassus = \markup{
       % overall spacing if you comment in the following command.
       %\remove "Forbid_line_break_engraver"
     }
-       indent=5\cm
+    indent = 5\cm
   }
 }
 
index b3697ad2d9bd563fa20776ca39b465fa33849fc1..b738ad4518f952919a3ea5289c1c8c183a122441 100644 (file)
@@ -123,47 +123,47 @@ In this manner, the most natural enharmonic notes are chosen.
 } % begin verbatim
 
 #(define (naturalize-pitch p)
-  (let ((o (ly:pitch-octave p))
-        (a (* 4 (ly:pitch-alteration p)))
-        ;; alteration, a, in quarter tone steps,
-        ;; for historical reasons
-        (n (ly:pitch-notename p)))
-    (cond
-     ((and (> a 1) (or (eq? n 6) (eq? n 2)))
-      (set! a (- a 2))
-      (set! n (+ n 1)))
-     ((and (< a -1) (or (eq? n 0) (eq? n 3)))
-      (set! a (+ a 2))
-      (set! n (- n 1))))
-    (cond
-     ((> a 2) (set! a (- a 4)) (set! n (+ n 1)))
-     ((< a -2) (set! a (+ a 4)) (set! n (- n 1))))
-    (if (< n 0) (begin (set! o (- o 1)) (set! n (+ n 7))))
-    (if (> n 6) (begin (set! o (+ o 1)) (set! n (- n 7))))
-    (ly:make-pitch o n (/ a 4))))
+   (let ((o (ly:pitch-octave p))
+         (a (* 4 (ly:pitch-alteration p)))
+         ;; alteration, a, in quarter tone steps,
+         ;; for historical reasons
+         (n (ly:pitch-notename p)))
+     (cond
+      ((and (> a 1) (or (eq? n 6) (eq? n 2)))
+       (set! a (- a 2))
+       (set! n (+ n 1)))
+      ((and (< a -1) (or (eq? n 0) (eq? n 3)))
+       (set! a (+ a 2))
+       (set! n (- n 1))))
+     (cond
+      ((> a 2) (set! a (- a 4)) (set! n (+ n 1)))
+      ((< a -2) (set! a (+ a 4)) (set! n (- n 1))))
+     (if (< n 0) (begin (set! o (- o 1)) (set! n (+ n 7))))
+     (if (> n 6) (begin (set! o (+ o 1)) (set! n (- n 7))))
+     (ly:make-pitch o n (/ a 4))))
 
 #(define (naturalize music)
-  (let ((es (ly:music-property music 'elements))
-        (e (ly:music-property music 'element))
-        (p (ly:music-property music 'pitch)))
-    (if (pair? es)
-       (ly:music-set-property!
-         music 'elements
-         (map (lambda (x) (naturalize x)) es)))
-    (if (ly:music? e)
-       (ly:music-set-property!
-         music 'element
-         (naturalize e)))
-    (if (ly:pitch? p)
-       (begin
-         (set! p (naturalize-pitch p))
-         (ly:music-set-property! music 'pitch p)))
-    music))
+   (let ((es (ly:music-property music 'elements))
+         (e (ly:music-property music 'element))
+         (p (ly:music-property music 'pitch)))
+     (if (pair? es)
+         (ly:music-set-property!
+          music 'elements
+          (map (lambda (x) (naturalize x)) es)))
+     (if (ly:music? e)
+         (ly:music-set-property!
+          music 'element
+          (naturalize e)))
+     (if (ly:pitch? p)
+         (begin
+           (set! p (naturalize-pitch p))
+           (ly:music-set-property! music 'pitch p)))
+     music))
 
 naturalizeMusic =
 #(define-music-function (parser location m)
-  (ly:music?)
-  (naturalize m))
+   (ly:music?)
+   (naturalize m))
 
 music = \relative c' { c4 d e g }
 
@@ -176,3 +176,4 @@ music = \relative c' { c4 d e g }
   }
   \layout { }
 }
+
index 5e38377ccfaa3773894baf2080609d9872d650da..2c085aa669424f45252ba2d531e864ac51a57ea8 100644 (file)
@@ -1,6 +1,7 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
+% Do not edit this file; it is automatically
+% generated from Documentation/snippets/new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.10
 \version "2.13.10"
 
 \header {
@@ -8,8 +9,8 @@
 
   texidoc = "
 Some grobs can be accessed @qq{laterally} from within another grob's
-callback. These are usually listed as @qq{layout objects} in the
-@qq{Internal properties} section of a grob-interface. The function
+callback.  These are usually listed as @qq{layout objects} in the
+@qq{Internal properties} section of a grob-interface.  The function
 @code{ly:grob-object} is used to access these grobs.
 
 
@@ -27,14 +28,19 @@ accessed.
 Example console output:
 
 
--------------------- #-Grob Accidental - #-Grob Arpeggio - #-Grob Stem -
-
+@example
+--------------------
+#-Grob Accidental -
+#-Grob Arpeggio -
+#-Grob Stem -
+@end example
 
 
 "
   doctitle = "Using ly:grob-object to access grobs with \\tweak"
 } % begin verbatim
 
+
 #(define (notehead-get-accidental notehead)
    ;; notehead is grob
    (ly:grob-object notehead 'accidental-grob))
@@ -72,4 +78,3 @@ Example console output:
   es
   g>1\arpeggio
 }
-
index 9414d96a71dcfe72700a70317b7562d8c7cfcac1..2a44e5b4cf7781d60025acc208abea64be576c36 100644 (file)
@@ -17,7 +17,7 @@ demonstrates how to achieve such a notation.
 } % begin verbatim
 
 upline =
-#(let ((m stopped))
+#(let ((m (make-articulation "stopped")))
    (set! (ly:music-property m 'tweaks)
          (acons 'font-size 3
                 (acons 'stencil (lambda (grob)
index c9b745bfeff473e58856d4f94ca4952ba5fa278f..7e06acb5ea9b69c91343e71d331e40e6e02e246b 100644 (file)
@@ -20,7 +20,7 @@ voltaMusic = \relative c'' {
   }
   \alternative {
     d1
-    e
+    e1
   }
 }
 
@@ -35,3 +35,4 @@ voltaMusic = \relative c'' {
     \new Staff \voltaMusic
   >>
 >>
+