]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/incipit.ly
* scripts/convert-ly.py (conv): remove \notes.
[lilypond.git] / input / test / incipit.ly
index c6ff08bbce1b8d63c6778443f9eb9fc8c78514e6..8a2fb5df5c98562ae0aba157235824b1b9cbefee 100644 (file)
@@ -1,26 +1,30 @@
-\version "1.7.18"
+\version "2.3.4"
 \header { texidoc = "@cindex Incipit
-This shows how to make an ``incipit'' to indicate scordatora 
-tuning of a violin part, using the clefStyle property.
-The two first bars of Biber's Rosary sonata III. " }
+This example shows how to make an ``incipit'' to indicate 
+scordatora tuning of a violin part, by overriding the @code{style} of
+a @code{TimeSignature}.
+Here are the two first bars of Biber's Rosary sonata III. " }
 
-violinincipit =  \notes\relative c''{
+
+
+
+violinincipit = \relative c''{
   \clef "french"
   \time 2/2
-  \property Staff.TimeSignature \override #'style = #'old
+  \override Staff.TimeSignature  #'style = #'old
   a4. b8 c4 fis |
-%  <<b fis' b d>>1
-  \property Staff.TimeSignature \override #'style = #'C
+%  <b fis' b d>1
+  \override Staff.TimeSignature  #'style = #'C
 }
 
-bcincipit =  \notes\relative c{
+bcincipit = \relative c{
   \clef bass
-  \property Staff.TimeSignature \override #'style = #'old
+  \override Staff.TimeSignature  #'style = #'old
   b2. cis4 | 
-  \property Staff.TimeSignature \override #'style = #'C
+  \override Staff.TimeSignature  #'style = #'C
 }
 
-violin =  \notes\relative c''{
+violin = \relative c''{
 % Key signatures with different alterations in different octaves
 % are broken since 1.3.58!
 %  \specialkey \keysignature f' fis'' g' gis''
@@ -29,10 +33,11 @@ violin =  \notes\relative c''{
   \clef treble
 
   a4. b8 c4 fis |
-  gis~ gis8 fis16^\trill (e-) b8 c \context Staff<{\voiceOne a d}{\voiceTwo es,4}>|
+  gis~ gis8 fis16^\trill (e) b8 c
+  <<{ a d}\\ { es,4}>>|
 }
 
-BC  = \notes\relative c{
+BC \relative c{
   \key d \major
   \time 2/2
   \clef "bass"
@@ -43,22 +48,22 @@ BC  = \notes\relative c{
 }
 
 \score{
-  <
-    \context Staff = violin {\notes{
-      \property Staff.Clef \override #'transparent = ##t
+  <<
+    \context Staff = violin {{
+      \override Staff.Clef  #'transparent = ##t
       \violinincipit \bar ".|" 
-      \property Staff.Clef \revert #'transparent 
+      \revert Staff.Clef #'transparent 
       \endincipit
       \violin
     }}
-    \context Staff = BC{\notes{
-      \property Staff.Clef \override #'transparent = ##t
+    \new Staff {{
+      \override Staff.Clef  #'transparent = ##t
       \bcincipit \bar ".|" 
-      \property Staff.Clef \revert #'transparent 
+      \revert Staff.Clef #'transparent 
       \endincipit
       \BC
     }}
-  >
+  >>
        \paper { raggedright = ##t }
 }