]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/incipit.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / incipit.ly
index b078cc0f538a3e3c5879103f08abf5429019f359..522bf1d730908d279191aed8d640c2cb49d63eae 100644 (file)
@@ -4,54 +4,27 @@
 % and then run scripts/auxiliar/makelsr.py
 %
 % This file is in the public domain.
-%% Note: this file works from version 2.17.30
-\version "2.17.30"
+%% Note: this file works from version 2.19.16
+\version "2.19.16"
 
 \header {
-  lsrtags = "staff-notation, ancient-notation, really-cool"
+  lsrtags = "ancient-notation, staff-notation"
+
   texidoc = "
-Incipits can be added using the instrument name grob, but keeping
-separate the instrument name definition and the incipit definition.
+When transcribing mensural music, an incipit at the beginning of the piece is
+useful to indicate the original key and tempo.  Musicians today are used
+to bar lines, but these were not known during the period of mensural music.  As
+a compromise, bar lines are often printed between the staves, a layout style
+called mensurstriche layout.
 "
+
   doctitle = "Incipit"
 } % begin verbatim
 
 
-incipit =
-#(define-music-function (parser location incipit-music) (ly:music?)
-  #{
-    \once \override Staff.InstrumentName.self-alignment-X = #RIGHT
-    \once \override Staff.InstrumentName.self-alignment-Y = ##f
-    \once \override Staff.InstrumentName.padding = #0.3
-    \once \override Staff.InstrumentName.stencil =
-      #(lambda (grob)
-        (let* ((instrument-name (ly:grob-property grob 'long-text)))
-          (set! (ly:grob-property grob 'long-text)
-                #{ \markup
-                     \score
-                        {
-                          { \context MensuralStaff \with {
-                               instrumentName = #instrument-name
-                            } $incipit-music
-                          }
-                          \layout { $(ly:grob-layout grob)
-                                    line-width = \indent
-                                    indent =
-                               % primitive-eval is probably easiest for
-                               % escaping lexical closure and evaluating
-                               % everything respective to (current-module).
-                                    #(primitive-eval
-                                       '(or (false-if-exception (- indent incipit-width))
-                                           (* 0.5 indent)))
-                                    ragged-right = ##f
-                                    ragged-last = ##f
-                                    system-count = #1 }
-                        }
-                 #})
-           (system-start-text::print grob)))
-  #})
-
-%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% A short excerpt from the Jubilate Deo by Orlande de Lassus
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 global = {
   \set Score.skipBars = ##t
@@ -68,18 +41,12 @@ global = {
   \bar "|."
 }
 
-discantusIncipit = <<
-  \new MensuralVoice = "discantusIncipit" <<
-    \repeat unfold 9 { s1 \noBreak }
-    {
-      \clef "neomensural-c1"
-      \key f \major
-      \time 2/2
-      c''1.
-    }
-  >>
-  \new Lyrics \lyricsto discantusIncipit { IV- }
->>
+discantusIncipit = {
+  \clef "neomensural-c1"
+  \key f \major
+  \time 2/2
+  c''1.
+}
 
 discantusNotes = {
   \transpose c' c'' {
@@ -96,32 +63,22 @@ discantusNotes = {
 }
 
 discantusLyrics = \lyricmode {
-  Ju -- bi -- |
-  la -- te De -- |
-  o, om --
-  nis ter -- |
-  ra, __ om- |
-  "..." |
-  -us. |
+  Ju -- bi -- la -- te De -- o,
+  om -- nis ter -- ra, __ om-
+  "..."
+  -us.
 }
 
-altusIncipit = <<
-  \new MensuralVoice = "altusIncipit" <<
-    \repeat unfold 9 { s1 \noBreak }
-    {
-      \clef "neomensural-c3"
-      \key f \major
-      \time 2/2
-      r1 f'1.
-    }
-  >>
-  \new Lyrics \lyricsto altusIncipit { IV- }
->>
+altusIncipit = {
+  \clef "neomensural-c3"
+  \key f \major
+  \time 2/2
+  r1 f'1.
+}
 
 altusNotes = {
   \transpose c' c'' {
     \clef "treble"
-    % two measures
     r2 g2. e4 fis g |
     a2 g4 e |
     fis g4.( fis16 e fis4) |
@@ -133,28 +90,20 @@ altusNotes = {
 }
 
 altusLyrics = \lyricmode {
-  % two measures
-  Ju -- bi -- la -- te |
-  De -- o, om -- |
-  nis ter -- ra, |
-  "..." |
-  -us. |
+  Ju -- bi -- la -- te
+  De -- o, om -- nis ter -- ra,
+  "..."
+  -us.
 }
 
-tenorIncipit = <<
-  \new MensuralVoice = "tenorIncipit" <<
-    \repeat unfold 9 { s1 \noBreak }
-    {
-      \clef "neomensural-c4"
-      \key f \major
-      \time 2/2
-      r\longa
-      r\breve
-      r1 c'1.
-    }
-  >>
-  \new Lyrics \lyricsto tenorIncipit { IV- }
->>
+tenorIncipit = {
+  \clef "neomensural-c4"
+  \key f \major
+  \time 2/2
+  r\longa
+  r\breve
+  r1 c'1.
+}
 
 tenorNotes = {
   \transpose c' c' {
@@ -171,26 +120,18 @@ tenorNotes = {
 }
 
 tenorLyrics = \lyricmode {
-  % two measures
-  Ju -- bi -- la -- te |
-  "..." |
+  Ju -- bi -- la -- te
+  "..."
   -us.
 }
 
-bassusIncipit = <<
-  \new MensuralVoice = "bassusIncipit" <<
-    \repeat unfold 9 { s1 \noBreak }
-    {
-      \clef "bass"
-      \key f \major
-      \time 2/2
-      %% incipit
-      r\maxima
-      f1.
-    }
-  >>
-  \new Lyrics \lyricsto bassusIncipit { IV- }
->>
+bassusIncipit = {
+  \clef "mensural-f"
+  \key f \major
+  \time 2/2
+  r\maxima
+  f1.
+}
 
 bassusNotes = {
   \transpose c' c' {
@@ -207,8 +148,8 @@ bassusNotes = {
 }
 
 bassusLyrics = \lyricmode {
-  Ju -- bi- |
-  "..." |
+  Ju -- bi-
+  "..."
   -us.
 }
 
@@ -216,33 +157,33 @@ bassusLyrics = \lyricmode {
   <<
     \new StaffGroup = choirStaff <<
       \new Voice = "discantusNotes" <<
-        \global
         \set Staff.instrumentName = #"Discantus"
         \incipit \discantusIncipit
+        \global
         \discantusNotes
       >>
-      \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
+      \new Lyrics \lyricsto discantusNotes { \discantusLyrics }
       \new Voice = "altusNotes" <<
-        \global
         \set Staff.instrumentName = #"Altus"
+        \global
         \incipit \altusIncipit
         \altusNotes
       >>
-      \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
+      \new Lyrics \lyricsto altusNotes { \altusLyrics }
       \new Voice = "tenorNotes" <<
-        \global
         \set Staff.instrumentName = #"Tenor"
+        \global
         \incipit \tenorIncipit
         \tenorNotes
       >>
-      \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
+      \new Lyrics \lyricsto tenorNotes { \tenorLyrics }
       \new Voice = "bassusNotes" <<
-        \global
         \set Staff.instrumentName = #"Bassus"
+        \global
         \incipit \bassusIncipit
         \bassusNotes
       >>
-      \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
+      \new Lyrics \lyricsto bassusNotes { \bassusLyrics }
     >>
   >>
   \layout {