]> git.donarmstrong.com Git - lilypond.git/commitdiff
LSR updates
authorPhil Holmes <mail@philholmes.net>
Sun, 17 Mar 2013 13:50:34 +0000 (13:50 +0000)
committerPhil Holmes <mail@philholmes.net>
Sun, 17 Mar 2013 14:10:17 +0000 (14:10 +0000)
Documentation/snippets/applying-note-head-styles-depending-on-the-step-of-the-scale.ly
Documentation/snippets/creating-double-digit-fingerings.ly
Documentation/snippets/paper-and-layout.snippet-list
Documentation/snippets/preventing-final-mark-from-removing-final-tuplet.ly
Documentation/snippets/separating-key-cancellations-from-key-signature-changes.ly
Documentation/snippets/staff-notation.snippet-list
Documentation/snippets/stand-alone-two-column-markup.ly
Documentation/snippets/syntax-and-expressions.snippet-list
Documentation/snippets/transposing-pitches-with-minimum-accidentals-smart-transpose.ly
Documentation/snippets/vertical-aligned-staffgroups-without-connecting-systemstartbar.ly [new file with mode: 0644]
Documentation/snippets/woodwind-diagrams-listing.ly

index 113ee328b7e27a225e0b6e6f1122a642dd030fdd..8cefbedea781a681efa4c942aa797b365266972c 100644 (file)
@@ -30,7 +30,6 @@ correspondence between harmonic functions and note head styles.
   doctitle = "Applying note head styles depending on the step of the scale"
 } % begin verbatim
 
-
 fragment = {
   \key c \major
   c2 d
@@ -42,7 +41,7 @@ fragment = {
 \new Staff {
   \transpose c d
   \relative c' {
-    \set shapeNoteStyles = #'#(do re mi fa
+    \set shapeNoteStyles = ##(do re mi fa
                                #f la ti)
     \fragment
   }
@@ -50,7 +49,7 @@ fragment = {
   \break
 
   \relative c' {
-    \set shapeNoteStyles = #'#(cross triangle fa #f
+    \set shapeNoteStyles = ##(cross triangle fa #f
                                mensural xcircle diamond)
     \fragment
   }
index 85f596d7edf3bc3312868ecd549c718055b17917..4991989e6a7c5bbdde6cbe0f7bb2dbc8a839a634 100644 (file)
@@ -4,7 +4,7 @@
 %% and then run scripts/auxiliar/makelsr.py
 %%
 %% This file is in the public domain.
-\version "2.17.13"
+\version "2.17.11"
 
 \header {
   lsrtags = "editorial-annotations, expressive-marks, scheme-language, staff-notation, tweaks-and-overrides"
@@ -28,6 +28,11 @@ fifty =
 #(make-music 'FingeringEvent
              'digit 50)
 
+finger =
+#(define-music-function (parser location digit) (integer?)
+   (make-music 'FingeringEvent
+               'digit digit))
+
 #(define (calc-finger-without-warning grob)
    (let* ((event (event-cause grob))
          (digit (ly:event-property event 'digit)))
index 303b979a8a6a9abf12e7a5a7b1fdd75d5ee34152..e99215262aa0187781b6c640b75fd5faa22a7f01 100644 (file)
@@ -6,3 +6,4 @@ creating-blank-staves.ly
 demonstrating-all-headers.ly
 setting-system-separators.ly
 table-of-contents.ly
+vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
index 89be0cb1d501becd0baee28de45d0ed244ec26d5..45d746657fe2747c411f634bf4c681552e49586d 100644 (file)
@@ -18,14 +18,13 @@ tuplet marking.  This can be overcome by setting @code{TupletBracket
   doctitle = "Preventing final mark from removing final tuplet"
 } % begin verbatim
 
-
 \new Staff {
    \set tupletFullLength = ##t
    \time 1/8
    \tuplet 3/2 { c'16 c'16 c'16 }
    \tuplet 3/2 { c'16 c'16 c'16 }
    \tuplet 3/2 { c'16 c'16 c'16 }
-   \override Score.RehearsalMark.break-visibility = #'#(#t #t #t)
+   \override Score.RehearsalMark.break-visibility = ##(#t #t #t)
    \override Score.RehearsalMark.direction = #DOWN
    \override Score.RehearsalMark.self-alignment-X = #RIGHT
 % due to issue 2362 the following line is commented
@@ -43,7 +42,7 @@ tuplet marking.  This can be overcome by setting @code{TupletBracket
   \tuplet 3/2 { c'16 c'16 c'16 }
   \tuplet 3/2 { c'16 c'16 c'16 }
   \tuplet 3/2 { c'16 c'16 c'16 }
-  \override Score.RehearsalMark.break-visibility = #'#(#t #t #t)
+  \override Score.RehearsalMark.break-visibility = ##(#t #t #t)
   \override Score.RehearsalMark.direction = #DOWN
   \override Score.RehearsalMark.self-alignment-X = #RIGHT
 % due to issue 2362 the following line is commented
index 7670ff4ddb35574a4099ea33ff8a3a3ee89f634c..1b060474b25f630bf16e4cbd417ab0d7c9584b04 100644 (file)
@@ -29,7 +29,7 @@ or the end.
 
 \new Staff {
   \override Score.BreakAlignment.break-align-orders =
-    #'#((left-edge ambitus breathing-sign clef staff-bar
+    ##((left-edge ambitus breathing-sign clef staff-bar
                    key-cancellation key-signature time-signature custos)
 
         (left-edge ambitus breathing-sign clef key-cancellation
index ab14ed7251f82612734624ba5149410e5d1b6493..a8c9f1bf638f8ce77abc964092764b89a7d4a605 100644 (file)
@@ -37,5 +37,6 @@ time-signature-in-parentheses.ly
 tweaking-clef-properties.ly
 use-square-bracket-at-the-start-of-a-staff-group.ly
 using-autochange-with-more-than-one-voice.ly
+vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
 volta-below-chords.ly
 volta-multi-staff.ly
index dd096fe981b1cdf7303c9bdbfa8a824e5f4d198f..dd0005c4326e9cf87e617234d6050c120c3212f0 100644 (file)
@@ -17,7 +17,6 @@ Stand-alone text may be arranged in several columns using
   doctitle = "Stand-alone two-column markup"
 } % begin verbatim
 
-
 \markup {
   \fill-line {
     \hspace #1
@@ -30,13 +29,13 @@ Stand-alone text may be arranged in several columns using
       \line { Amen. }
     }
     \hspace #2
-    \column {
-      \line { \italic { O sacred feast } }
-      \line { \italic { in which Christ is received, } }
-      \line { \italic { the memory of His Passion is renewed, } }
-      \line { \italic { the mind is filled with grace, } }
-      \line { \italic { and a pledge of future glory is given to us. } }
-      \line { \italic { Amen. } }
+    \column \italic {
+      \line { O sacred feast }
+      \line { in which Christ is received, }
+      \line { the memory of His Passion is renewed, }
+      \line { the mind is filled with grace, }
+      \line { and a pledge of future glory is given to us. }
+      \line { Amen. }
     }
     \hspace #1
   }
index 7e72565d66807b43c8eda48db58818d24b762cde..f0e653afb06d025c075792653374de1e4e91de80 100644 (file)
@@ -1,2 +1,3 @@
 combining-two-parts-on-the-same-staff.ly
 entering-several-tuplets-using-only-one--times-command.ly
+vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
index 9d1e274ff5ef6ffdf99faa68a95b3c57bfcda25c..2b647d08547461da83c800de38b9523222c3ee7f 100644 (file)
@@ -43,10 +43,10 @@ In this manner, the most natural enharmonic notes are chosen.
          ;; for historical reasons
          (n (ly:pitch-notename p)))
      (cond
-      ((and (> a 1) (or (= n 6) (= n 2)))
+      ((and (> a 1) (or (eq? n 6) (eq? n 2)))
        (set! a (- a 2))
        (set! n (+ n 1)))
-      ((and (< a -1) (or (= n 0) (= n 3)))
+      ((and (< a -1) (or (eq? n 0) (eq? n 3)))
        (set! a (+ a 2))
        (set! n (- n 1))))
      (cond
diff --git a/Documentation/snippets/vertical-aligned-staffgroups-without-connecting-systemstartbar.ly b/Documentation/snippets/vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
new file mode 100644 (file)
index 0000000..af5047f
--- /dev/null
@@ -0,0 +1,352 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.17.11"
+
+\header {
+  lsrtags = "paper-and-layout, staff-notation, syntax-and-expressions"
+
+  texidoc = "
+The code of this snippet shows how to achieve vertical aligned
+StaffGroups with a SystemStartBar for each StaffGroup, but without
+connecting them. This might be helpful for educational uses, but of
+course other  utilizations are thinkable.
+
+"
+  doctitle = "Vertical aligned StaffGroups without connecting SystemStartBar"
+} % begin verbatim
+
+% by Thomas Morley
+
+#(set-global-staff-size 18)
+
+\paper {
+  indent = 0
+  ragged-right = ##f
+  print-all-headers = ##t
+}
+
+\layout {
+  \context {
+    \Staff
+    \consists "Mark_engraver"
+    \override RehearsalMark.self-alignment-X = #LEFT
+  }
+  \context {
+    \StaffGroup
+    systemStartDelimiterHierarchy =
+      #'(SystemStartBrace (SystemStartBracket a b))
+  }
+  \context {
+    \Score
+    \override SystemStartBrace.style = #'bar-line
+    \override SystemStartBar.stencil = ##f
+    \override SystemStartBrace.padding = #-0.1
+    \override SystemStartBrace.thickness = #1.6
+    \remove "Mark_engraver"
+    \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #15
+  }
+}
+
+%%%% EXAMPLE
+
+txt =
+\lyricmode {
+  Wer4 nur den lie -- ben Gott läßt wal2 -- ten4
+  und4 hof -- fet auf ihn al -- le Zeit2.
+}
+
+% First StaffGroup "exercise"
+
+eI =
+\relative c' {
+        \mark \markup {
+                \bold Teacher:
+                This is a simple setting of the choral. Please improve it.
+                }
+        \key a\minor
+        \time 4/4
+        \voiceOne
+
+        \partial 4
+        e4
+        a b c b
+        a b gis2
+        e4\fermata g! g f
+        e a a gis
+        a2.\fermata
+        \bar ":|."
+}
+
+eII =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \voiceTwo
+        \partial 4
+        c4
+        e e e gis
+        a f e2
+        b4 b d d
+        c c d d
+        c2.
+        \bar ":|."
+}
+
+eIII =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \clef bass
+        \voiceOne
+
+        \partial 4
+        a4
+        c b a b
+        c d b2
+        gis4 g g b
+        c a f e
+        e2.
+}
+
+eIV =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \clef bass
+        \voiceTwo
+
+        \partial 4
+        a,4
+        a' gis a e
+        a, d e2
+        e,4\fermata e' b g
+        c f d e
+        a,2.\fermata
+        \bar ":|."
+}
+
+exercise =
+\new StaffGroup = "exercise"
+<<
+
+  \new Staff
+    <<
+      \new Voice \eI
+      \new Voice \eII
+    >>
+
+  \new Lyrics \txt
+
+  \new Staff
+    <<
+      \new Voice \eIII
+      \new Voice \eIV
+    >>
+>>
+
+% Second StaffGRoup "simple Bach"
+
+sbI =
+\relative c' {
+        \mark \markup { \bold" Pupil:" Here's my version! }
+        \key a\minor
+        \time 4/4
+        \voiceOne
+
+        \partial 4
+        e4
+        a b c b
+        a b gis2
+        e4\fermata g! g f
+        e a a gis
+        a2.\fermata
+        \bar ":|."
+}
+
+sbII =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \voiceTwo
+        \partial 4
+        c8 d
+        e4 e e8 f g4
+        f f e2
+        b4 b8 c d4 d
+        e8 d c4 b8 c d4
+        c2.
+        \bar ":|."
+}
+
+sbIII =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \clef bass
+        \voiceOne
+
+        \partial 4
+        a8 b
+        c4 b a b8 c
+        d4 d8 c b2
+        gis4 g g8 a b4
+        b a8 g f4 e
+        e2.
+}
+
+sbIV =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \clef bass
+        \voiceTwo
+
+        \partial 4
+        a,4
+        a' gis a e
+        f8 e d4 e2
+        e,4\fermata e' b a8 g
+        c4 f8 e d4 e
+        a,2.\fermata
+        \bar ":|."
+}
+
+simpleBach =
+\new StaffGroup = "simple Bach"
+<<
+
+  \new Staff
+    <<
+      \new Voice \sbI
+      \new Voice \sbII
+    >>
+
+  \new Lyrics \txt
+
+  \new Staff
+    <<
+      \new Voice \sbIII
+      \new Voice \sbIV
+    >>
+>>
+
+% Third StaffGroup "chromatic Bach"
+
+cbI =
+\relative c' {
+        \mark \markup {
+                \bold "Teacher:"
+                \column {
+                        "Well, you simply copied and transposed a version of J.S.Bach."
+                        "Do you know this one?"
+                }
+        }
+        \key a\minor
+        \time 4/4
+        \voiceOne
+
+        \partial 4
+        e4
+        a b c b
+        a b gis4. fis8
+        e4\fermata g! g f
+        e a a8 b gis4
+        a2.\fermata
+        \bar ":|."
+}
+
+cbII =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \voiceTwo
+        \partial 4
+        c8 d
+        e4 e e8 fis gis4
+        a8 g! f!4 e2
+        b4 e e d
+        d8[ cis] d dis e fis e4
+        e2.
+        \bar ":|."
+}
+
+cbIII =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \clef bass
+        \voiceOne
+
+        \partial 4
+        a8 b
+        c[ b] a gis8 a4 d,
+        e8[ e'] d c b4. a8
+        gis4 b c d8 c
+        b[ a] a b c b b c16 d
+        c2.
+}
+
+cbIV =
+\relative c' {
+        \key a\minor
+        \time 4/4
+        \clef bass
+        \voiceTwo
+
+        \partial 4
+        a4
+        c, e a, b
+        c d e2
+        e4\fermata e a b8 c
+        gis[ g] fis f e dis e4
+        a,2.\fermata
+        \bar ":|."
+}
+
+chromaticBach =
+\new StaffGroup = "chromatic Bach"
+<<
+
+  \new Staff
+    <<
+      \new Voice \cbI
+      \new Voice \cbII
+    >>
+
+  \new Lyrics \txt
+
+  \new Staff
+    <<
+      \new Voice \cbIII
+      \new Voice \cbIV
+    >>
+>>
+
+
+% Score
+
+\score {
+        <<
+        \exercise
+        \simpleBach
+        \chromaticBach
+        >>
+        \header {
+                title = \markup
+                           \column {
+                             \vspace #1
+                             "Exercise: Improve the given choral"
+                             " "
+                            }
+        }
+        \layout {
+                \context {
+                        \Lyrics
+                        \override LyricText.X-offset = #-1
+                }
+        }
+}
index 71a59920ccfeffe4ed5fb492f2562323df135042..db8661d8432ebbf95cb04a64c867275b064a9d38 100644 (file)
@@ -19,6 +19,17 @@ defined in LilyPond.
 
 \relative c' {
   \textLengthOn
+  c1^
+  \markup {
+    \center-column {
+      'tin-whistle
+      " "
+       \woodwind-diagram
+                  #'tin-whistle
+                  #'()
+    }
+  }
+
   c1^
   \markup {
     \center-column {