]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/regression/instrument-name-partial.ly: move from input/test.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 4 Jul 2003 10:41:08 +0000 (10:41 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 4 Jul 2003 10:41:08 +0000 (10:41 +0000)
* input/test/vertical-text.ly: remove

* ly/engraver-init.ly (LyricsVoiceContext): add more vertical
space above lyrics lines.

* input/test/uniform-breaking.ly: remove file.

* lily/gourlay-breaking.cc (combine_demerits): add comment about
uniform spacing density.

* input/test/chords.ly (keys): remove file.

23 files changed:
ChangeLog
input/regression/grace-nest3.ly
input/regression/grace-nest5.ly
input/regression/instrument-name-partial.ly [new file with mode: 0644]
input/regression/repeat-volta-skip-alternatives.ly
input/regression/size13.ly
input/regression/size16.ly
input/regression/size20.ly
input/regression/size23.ly
input/regression/size26.ly
input/regression/slur-symmetry-1.ly
input/regression/slur-symmetry.ly
input/regression/text-spanner.ly
input/test/chords.ly [deleted file]
input/test/staff-margin-partial.ly [deleted file]
input/test/title.ly
input/test/uniform-breaking.ly [deleted file]
input/test/vertical-text.ly [deleted file]
lily/gourlay-breaking.cc
lily/mensural-ligature-engraver.cc
lily/mensural-ligature.cc
ly/engraver-init.ly
scm/define-grob-properties.scm

index cac377f87d08849588a26ee56e80cf0cb8cd942a..c71a2484a2fa659de1e4c464e41bebe5214f1e35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2003-07-04  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
+       * input/regression/instrument-name-partial.ly: move from input/test.
+
+       * input/test/vertical-text.ly: remove
+
+       * ly/engraver-init.ly (LyricsVoiceContext): add more vertical
+       space above lyrics lines.
+
+       * input/test/uniform-breaking.ly: remove file.
+
+       * lily/gourlay-breaking.cc (combine_demerits): add comment about
+       uniform spacing density. 
+
+       * input/test/chords.ly (keys): remove file.
+
        * scm/documentation-lib.scm (oop): use srfi-1 too.
 
        * input/regression/*.ly: add \version
index a0ba32869229a2dfd61a6fe38e7ea71d998ea39f..e2ef2c27a4ad4a40582afd408990d32a67613715 100644 (file)
@@ -1,4 +1,7 @@
 \version "1.7.18"
+\header {
+    texidoc = "Another nested grace situation"
+    }
 
 \score { \notes \relative c'' {
        f1
index 0c5c45b3c922a557991358dd1de1588dbebb131c..b09734c0db51f8fe616de63e216df39a9d1dd133 100644 (file)
@@ -1,4 +1,7 @@
 \version "1.7.18"
+\header {
+    texidoc = "Another nested grace situation"
+    }
 
 \score
 { \notes \relative c'' {
diff --git a/input/regression/instrument-name-partial.ly b/input/regression/instrument-name-partial.ly
new file mode 100644 (file)
index 0000000..ce50eea
--- /dev/null
@@ -0,0 +1,10 @@
+\version "1.7.18"
+\header {
+    texidoc = "Instrument names are also printed on  partial starting measures."
+}
+
+\score {
+  \notes \relative c'' { \property Staff.instrument = "foo" \partial 4 c4 c1 }
+  \paper { raggedright = ##t }
+}
+
index 6a01d7a6e352a9d2a6144257dd905852f13758e1..dfdc4a8c6e1a8797adba56ae2ba2c524a796bd7f 100644 (file)
@@ -1,4 +1,9 @@
 \version "1.7.18"
+\header {
+    texidoc = "When too few alternatives are present, the first alternative is repeated,
+by printing a range for the 1st repeat."
+    }
+
 
 \score {  \notes \context Voice {
   \repeat volta 3 c1
index 9a7cec06ab891af7afad619f9c7e69b31fb4c075..c6304eb92a61518fd238a98c354fbaf34375828d 100644 (file)
@@ -3,5 +3,9 @@ foollilypondbook = "
 \score
 "
 
+\header {
+    texidoc ="Staff height 13 pt"
+    }
+
 \include "paper13.ly"
 \include "allfontstyle.ly"
index d7501fe5763dd149c3a9c6913b45397a8b4154a9..5f2345e799c054634c7f62e3613564ff32cf509e 100644 (file)
@@ -3,6 +3,11 @@ foollilypondbook = "
 \score
 "
 
+\header {
+    texidoc ="Staff height 16 pt"
+    }
+
+
 
 \include "paper16.ly"
 \include "allfontstyle.ly"
index ee51d250a51c8abf3a6341043c28967d690ae582..2b7ea1122e361e25b5e3c40c5f92cfe532f52cdb 100644 (file)
@@ -3,6 +3,11 @@ foollilypondbook = "
 \score
 "
 
+\header {
+    texidoc ="Staff height 20 pt"
+    }
+
+
 
 \include "paper20.ly"
 \include "allfontstyle.ly"
index bb05df5d0c7655e7b1a3f15555ab43b007b715bf..4830fa4d14e17b347af3d1d94fc0c717356ff365 100644 (file)
@@ -3,5 +3,10 @@ foollilypondbook = "
 \score
 "
 
+\header {
+    texidoc ="Staff height 23 pt"
+    }
+
+
 \include "paper23.ly"
 \include "allfontstyle.ly"
index e8ab3681d52ad820dfedc10c189cd2dde402053f..7fa6600ef638d1e78bfd5366843d58b063e5031a 100644 (file)
@@ -3,6 +3,11 @@ foollilypondbook = "
 \score
 "
 
+\header {
+    texidoc ="Staff height 26 pt"
+    }
+
+
 
 \include "paper26.ly"
 \include "allfontstyle.ly"
index dfac6626acb431a9f414de643b5143629e1f110b..a077e63f92b8cfcf5b0873e716271487a4736243 100644 (file)
@@ -1,4 +1,8 @@
 \version "1.7.18"
+\header
+{
+  texidoc = "Symmetric figures should lead to symmetric slurs."
+}
 
 \score{
        \notes\relative c''<
index aa06e7219a10180bef188420ddc7adc85a06cc1d..4a66e5f468f6930beba70268d5772b2e65cf9b1f 100644 (file)
@@ -1,4 +1,9 @@
 \version "1.7.18"
+\header
+{
+    texidoc = "Symmetric figures should lead to symmetric slurs."
+
+}
 
 \score{
        \notes\relative c'<
index 51e02aa182ee6726a26432fc9f289d0bd4117add..17c2713afc76eec5f965dce91cafcdbe904f2707 100644 (file)
@@ -1,6 +1,7 @@
 \version "1.7.18"
-
-% text spanners should not repeat start text when broken
+\header {
+texidoc= "Text spanners should not repeat start text when broken"
+}
 
 \score {
   \notes \relative c'' {
diff --git a/input/test/chords.ly b/input/test/chords.ly
deleted file mode 100644 (file)
index 7455346..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-% FIXME: doesn't display anything useful.
-\version "1.7.18"
-\score { \notes { c4^"fixme"}}
-
-
-%{
-Would this be acceptable/good enough/convenient for entry?
-
-   Convention/Standard    Lily
-   
-   C#                     cis
-   Cb                     ces
-   Cm Cmin               c:3- c:m c:min
-   Caug                   c:5+ c:aug
-   Cdim                   c:3-.5- c:dim
-   Cmaj7                  c:7+ c:maj
-   C7                     c:7
-   Csus Csus4            c:4 c:sus
-
-%}
-
-%{
-
-% used to be quarter notes here. Why? --hwn 
-scales =  \notes \transpose c c' \chords{
-               %<<c e g>>1
-               c1:m c:min c:dim c:aug c:sus c:maj
-                c1:6 c:7 c:9 c:11 c:13
-               c:m7 c:m sus c:m7.sus
-               c:dim7 c:dim9 c2:7^5 
-               c:13^5.7.9.11
-               % c1:7^5 c:13^5
-               c1 g d a e b fis
-                c1 f bes es as des ges
-               % wierd, multiple :add, ^sub
-               c:7+.9-^3.5
-               % long
-               c\breve c\longa
-       }
-
-keys =  \notes{
-                s1
-                s1 s1 s1
-                s1 s1
-                s1
-                \key g \major s1
-                \key d \major s1 
-                \key a \major s1 
-                \key e \major s1 
-                \key b \major s1 
-                \key fis \major s1
-                \key c \major s1 
-                \key f \major s1 
-                \key bes \major s1
-                \key es \major s1
-                \key as \major s1
-                \key des \major s1
-                \key ges \major s1
-                \key c \major s1*2
-                \key c \major s1*6
-       }
-
-\score{
-       <
-               \context ChordNames \scales
-               \context Staff < \scales \keys >
-       >
-       \paper{
-               \translator { 
-                       \ChordNamesContext
-                       ChordName \override #'word-space = #1 
-               }
-       }
-}
-
-%}
diff --git a/input/test/staff-margin-partial.ly b/input/test/staff-margin-partial.ly
deleted file mode 100644 (file)
index 555d0dc..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-\version "1.7.18"
-% test staff margin with partial measure.
-% regression.  -gp
-
-\score {
-\notes { \property Staff.instrument = "foo" \partial 4 c4 c1 }
-  \paper {
-    \translator { \StaffContext \consists Instrument_name_engraver }
-  }
-}
-
index 7928ca95b48e3994d1554feb0812b034e0534951..a0b5b35830c2977d83b7a69f5ccdf8c07982ae5b 100644 (file)
@@ -16,6 +16,8 @@
   copyright = "public domain"
   enteredby = "jcn"
   source =  "urtext"
+
+  texidoc ="This test ly2dvi titling. process with ly2dvi, not lilypond-book." 
 }
 
 \score {
diff --git a/input/test/uniform-breaking.ly b/input/test/uniform-breaking.ly
deleted file mode 100644 (file)
index ae70cb4..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-\version "1.7.18"
-% definately need to check with Han or Jan for this one.
-% I haven't a clue what it does, but the output doesn't look
-% special.  -gP
-
-
-%{
-Hmm, ik vraag me af of dit al helemaal koel is.
-
-  return abs (this_one.force_f_) + abs (prev.force_f_ - this_one.force_f_)
-      + break_penalties
-
-Neem als voorbeeld iets dat lijkt op allemande: keuze tussen 2 of drie
-maten per regel.
-
-* 2 lange maten -> lelie kiest 2 /regel  :beetje los
-* 3 korte -> lelie kiest 3 /regel        :beetje krap
-* 2 korte, 1 lange -> 3/regel            :krap
-* 1 korte, 2 lange -> 3/regel            :erg krap
-* 3 lange -> 3/regel                     :urg krap
-
-als je naar beloningen kijkt, kan ik me goed voorstellen dat sprong
-van 'al wat krapper' naar los te groot wordt, en ze dus steeds krapper
-wordt, tot urg krap aan toe, want kracht lineair?  Dat lijkt ook geval
-in allemande.
-
-Zie hoe eerst 10 en 9 mooi op 2maat/regel staan terwijl later tot 14
-toe 3/regel.
-
-Heb niet zomaar beter idee, nog.
-%}
-
-\score{
-       \notes\relative c'{
-               % 10
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c c8 ces c ces
-
-               % 9
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c c8 c ces c
-
-               % 1
-               c4 c c c
-               c4 c c c
-               c4 c c c
-
-               % 2
-               c4 c c c
-               c4 c c c
-               c4 c c8 c c c
-
-               % 3
-               c4 c c c
-               c4 c c c
-               c8 c c c c8 c c c 
-
-               % 4
-               c4 c c c
-               c4 c c8 c c c
-               c8 c c c c8 c c c 
-
-               % 5
-               c4 c c c
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-
-               % 6
-               c4 c c8 c c c
-               % c4 c c c8 c
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-
-               % 7
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-
-               % 8
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c ces
-
-               % 9
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c c8 c ces c
-
-               % 10
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c c8 ces c ces
-
-               % 11
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c c ces8 c ces c
-
-               % 12
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c c ces c8 ces c ces
-
-               % 13
-               c8 c c c c8 c c c 
-               c8 c c c c8 c c c 
-               c8 c ces c ces8 c ces c
-
-       }
-       \paper {
-               indent=0.0\mm
-               linewidth=90.0\mm
-       }
-}
-
-
-
diff --git a/input/test/vertical-text.ly b/input/test/vertical-text.ly
deleted file mode 100644 (file)
index a2e529f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-\version "1.7.18"
-% TODO: huh?  This text isn't vertical...?
-
-\score{
-       <
-               \context Staff = o \notes\relative c,,, { 
-                       \stemDown  c8-[ c c c] c4 c4 \break  c8-[ c c c] c4 c4
-               }
-               \context Lyrics \lyrics{
-                       BLA gag _2 < { BLA gag } { BLA gag la } > _2 
-               }
-               \context Staff = t \notes\relative c''''' { 
-                       \stemUp  c8-[ c c c] c4 c  c8-[ c c c] c4 c
-               } 
-       >
-       \paper{
-
-       }
-}
-
-
-
index 17cd71a5a2014bcc0c8b180a78e9a45b4bc542e4..b4657f893ada1c0ea373e93032056f45f534500a 100644 (file)
@@ -231,9 +231,19 @@ Gourlay_breaking::combine_demerits (Column_x_positions const &prev,
          break_penalties += gh_scm2double (pen);
        }
     }
+
   /*
-    Q: do want globally non-cramped lines, or locally equally cramped lines. 
+    Q: do we want globally non-cramped lines, or locally equally
+    cramped lines?
+
+    There used to be an example file input/test/uniform-breaking to
+    demonstrate problems with this approach. When music is gradually
+    becoming denser, the uniformity requirement makes lines go from
+    cramped to even more cramped (because going from cramped
+    3meas/line to relatively loose 2meas/line is such a big step.
+    
    */
+
   Real demerit = abs (this_one.force_) +  abs (prev.force_ - this_one.force_)
     + break_penalties;
   
index 3674775cda450e65384ba4beccd264180b3cb85a..8c73fb6ceca9326de3d2d5b05dd8ff56723df19d 100644 (file)
@@ -448,7 +448,7 @@ Mensural_ligature_engraver::join_primitives (Array<Grob_info> primitives)
          if (output & MLP_ANY)
            {
              int delta_pitch = (pitch.steps () - last_pitch.steps ());
-             primitive->set_grob_property ("join-left",
+             primitive->set_grob_property ("join-left-amount",
                                            gh_int2scm (delta_pitch));
            }
        }
index 5c446c42701f248b0efcfecec358fe211600e5c2..849f7852273190a5de0e4e536749a02c9c372e5b 100644 (file)
@@ -217,7 +217,7 @@ internal_brew_primitive (Grob *me, bool ledger_take_space)
        return Molecule ();
     }
 
-  SCM join_left_scm = me->get_grob_property ("join-left");
+  SCM join_left_scm = me->get_grob_property ("join-left-amount");
   if (join_left_scm != SCM_EOL)
     {
       int join_left = gh_scm2int (join_left_scm);
index d4ac28c8e1df4684971c3d3b56b4e74581ba5647..a0039f92d2ff5e502fd756c83443cc1f2768b252 100644 (file)
@@ -298,7 +298,7 @@ StaffGroupContext = \translator {
 LyricsVoiceContext= \translator{
        \type "Engraver_group_engraver"
        \consistsend "Hara_kiri_engraver"
-       minimumVerticalExtent = #'(-1.2 . 1.2)
+       minimumVerticalExtent = #'(-1.2 . 2.4)
        extraVerticalExtent = ##f
        verticalExtent = ##f
 
index f9e3d923027a987a30748d725de316e8d367faeb..cf6484e9add38a7defcdecbe9ff6f7252595aae7 100644 (file)
@@ -532,9 +532,11 @@ staff in a row more often, when the heights of the notes vary.
 (grob-property-description 'position-callbacks list? "list of
 functions set spanner positions.")
 (grob-property-description 'join-left boolean? "is this ligature head joined with the previous one?")
+(grob-property-description 'join-left-amount number? "DOCME")
+
 (grob-property-description 'delta-pitch number? "the interval between this and the neighbouring note, or, more precisely, their vertical distance; this is used in ligatures for calculation of the height of vertical joins flexa shapes")
 (grob-property-description 'head-width ly:dimension? "width of this ligature head")
-(grob-property-description 'primitive ly:grob? "Pointer to a ligature primitive, i.e. an item similar to a note head that is part of a ligature.")
+(grob-property-description 'primitive integer? "Pointer to a ligature primitive, i.e. an item similar to a note head that is part of a ligature. [TODO: change this]")
 (grob-property-description 'minimum-beam-collision-distance ly:dimension?
 "Minimum distance to beam for a rest collision.")