]> git.donarmstrong.com Git - lilypond.git/commitdiff
(accurate_boxes): enlarge Y-extent of flat to
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 11 Mar 2004 00:15:43 +0000 (00:15 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 11 Mar 2004 00:15:43 +0000 (00:15 +0000)
prevent aligned 6ths.

53 files changed:
ChangeLog
Documentation/user/cheatsheet.itely
VERSION
input/regression/accidental-placement.ly
lily/accidental.cc
lily/ambitus.cc
lily/paper-book.cc
lily/stem.cc
ly/a3-init.ly
ly/a4-init.ly
ly/accordion-defs-init.ly
ly/book-init-init.ly
ly/catalan.ly
ly/center-init.ly
ly/chord-modifiers-init.ly
ly/declarations-init.ly
ly/deutsch.ly
ly/drumpitch-init.ly
ly/dynamic-scripts-init.ly
ly/english.ly
ly/engraver-init.ly
ly/espanol.ly
ly/generate-documentation.ly
ly/generate-interface-doc-init.ly
ly/grace-init.ly
ly/gregorian-init.ly
ly/init.ly
ly/italiano.ly
ly/legal-init.ly
ly/letter-init.ly
ly/midi-init.ly
ly/nederlands.ly
ly/norsk.ly
ly/params-init.ly
ly/part-paper-init.ly
ly/performer-init.ly
ly/property-init.ly
ly/scale-definitions-init.ly
ly/script-init.ly
ly/spanners-init.ly
ly/suomi.ly
ly/svenska.ly
ly/tabloid-init.ly
scm/clef.scm
scm/define-context-properties.scm
scm/define-grob-properties.scm
scm/define-grobs.scm
scm/define-markup-commands.scm
scm/music-functions.scm
scm/new-markup.scm
scm/output-lib.scm
scm/stencil.scm
scm/to-xml.scm

index 25cae3f0cab45961c97528fde9706896e3ec680b..3d5ad1aafef6db088c2949238abe36d6a0857605 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-03-11  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/accidental.cc (accurate_boxes): enlarge Y-extent of flat to
+       prevent aligned 6ths.
+
        * lily/custos.cc (print): remove neutral position.
        (print): remove adjust-if-on-staffline.
 
index b47e200e307cc59cecc121fbc23a29e714486521..ec9d1aa189136ea95d6f8ee9f85497d909c0885a 100644 (file)
@@ -238,8 +238,9 @@ twinkle
 @tab lyric hyphen 
 @tab
 @lilypond[fragment,relative=1]
- \notes { g'4 g }
-  \lyricsto "" \new Lyrics \lyrics {  twin -- kle }
+ << \notes { g'4 g }
+    \lyricsto "" \new Lyrics \lyrics {  twin -- kle }
+    >> 
 @end lilypond 
 
 @item @code{\chords @{ c:dim f:maj7 @}}
diff --git a/VERSION b/VERSION
index d84cbb075a74235d9e5dd9399dfb6960b9204c78..19131d29c27d3bbe569f7e2cbef425e81b23559c 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=1
-PATCH_LEVEL=29
-MY_PATCH_LEVEL=hwn1
+PATCH_LEVEL=30
+MY_PATCH_LEVEL=
 
index 3e3dbaf2f6ea3442e79bef2c8ac285de24e1b169..69712b8df6cf5f04af7f845b74895bbdd4724919 100644 (file)
@@ -11,24 +11,30 @@ flats in a sixth should be staggered.  "
 }
 
 
-\score { \notes \context Voice \relative c' {
-    cis4
-    c4
- \transpose c c' {    
-  <bis es gis>4
-  <es! as!>
-  <gis! cis!>
-  <g! des'>
-  <ges! es'!>
-}    
-    <cis d es fis gis ases bes ces d e! >4
-    <bes'! fis!>     
-    <bes! cis!>
-    <c! es ges beses>
-    <bes! c d f >    
-    <bes,! c d f >
+\score {
+    \notes \context Voice \relative c'
+    {
+       cis4
+       c4
+       \transpose c c' {
+           <ges es'>
+           <bis es gis>4
+           <es! as!>
+           <gis! cis!>
+           <g! des'>
+           <ges! es'!>
+       }    
+       <cis d es fis gis ases bes ces d e! >4
+       <bes'! fis!>     
+       <bes! cis!>
+       <c! es ges beses>
+       <bes! c d f >    
+       <bes,! c d f >
+    }
+    \paper {
+       raggedright = ##t
+    }
+
 }
-\paper { raggedright = ##t}
-     }
 
 
index a5398a1573e3dc95f19b02e4d0bd5cf4c96ac412..3d2cdacf96b6431ddd0d9e629399b0154d46a6db 100644 (file)
@@ -80,6 +80,11 @@ Accidental_interface::accurate_boxes (Grob *a,Grob**common)
            really close.
          */
          stem[X_AXIS][RIGHT] *= .5;
+
+         /*
+           To prevent vertical alignment for 6ths
+          */
+         stem[Y_AXIS]  *= 1.1;  
          bulb[Y_AXIS][UP] *= .35;
 
          boxes.push (bulb);
index b785223ebb7a852abc3dd9498c4f2ec3015ea58b..9e5b145557a9a0f2472f0a56b7bcac37ce356013 100644 (file)
 #include "paper-def.hh"
 #include "lookup.hh"
 
+/*
+  UGH UGH UGH
+
+  This does 3 things at one:
+
+  - acc positioning
+  - drawing accidentals
+  - drawing note heads
+
+  It confuses interpretation & formatting.
+
+  UGH.
+  --hwn.
+ */
+
 /*
  * TODO: note-head collision handling
  *
@@ -238,6 +253,7 @@ Ambitus::print (SCM smob)
     {
       accidentals_style = String ("");
     }
+  
   int num_acc;
   num_acc = number_accidentals (key_signature, pitch_min, true, false);
   add_accidentals (me, &head_min, num_acc, pitch_min,
@@ -255,4 +271,4 @@ Ambitus::print (SCM smob)
 
 ADD_INTERFACE (Ambitus, "ambitus-interface",
   "An object that represents the pitch range of a voice.",
-  "c0-position pitch-min pitch-max accidentals note-head-style join-heads");
+  "c0-position pitch-min pitch-max accidentals note-head-style accidentals-style join-heads");
index 92a9191d56e9d905bc9e1f81529120e94e69dc6c..d75befab14e2d01f7c494423ed803d81f44daaef 100644 (file)
@@ -42,15 +42,17 @@ public:
   Paper_def *paper_;
   int number_;
 
-  SCM lines_;
-  SCM protect_;
-  Stencil *header_;
-  Stencil *footer_;
+  Protected_scm lines_;
+  Protected_scm header_;
+  Protected_scm footer_;
+  
+  Stencil *get_header () { return unsmob_stencil (header_); }
+  Stencil *get_footer () { return unsmob_stencil (footer_); }
 
   /* actual height filled with text.  */
   Real height_;
   
-  //HMMM all this size stuff to paper/paper-outputter?
+  // HMMM all this size stuff to paper/paper-outputter?
   Real hsize_;
   Real vsize_;
   Real top_margin_;
@@ -82,40 +84,36 @@ Page::Page (Paper_def *paper, int number)
   SCM make_header = scm_primitive_eval (ly_symbol2scm ("make-header"));
   SCM make_footer = scm_primitive_eval (ly_symbol2scm ("make-footer"));
 
-  header_ = unsmob_stencil (scm_call_2 (make_header, paper_->smobbed_copy (),
-                                       scm_int2num (number_)));
-  protect_ = SCM_EOL;
-  // ugh, how to protect a Stencil from the outside?
-  protect_ = scm_cons (header_->get_expr (), protect_);
-  if (header_)
-    header_->align_to (Y_AXIS, UP);
+  header_ = scm_call_2 (make_header, paper_->smobbed_copy (),
+                                       scm_int2num (number_));
+  if (get_header ())
+    get_header ()->align_to (Y_AXIS, UP);
     
   // FIXME: tagline/copyright
-  footer_ = unsmob_stencil (scm_call_2 (make_footer, paper_->smobbed_copy (),
-                                       scm_int2num (number_)));
-  // ugh, how to protect a Stencil from the outside?
-  protect_ = scm_cons (footer_->get_expr (), protect_);
-  if (footer_)
-    footer_->align_to (Y_AXIS, UP);
+  footer_ = scm_call_2 (make_footer, paper_->smobbed_copy (),
+                       scm_int2num (number_));
+
+  if (get_footer ())
+    get_footer ()->align_to (Y_AXIS, UP);
 }
 
 void
 Page::output (Paper_outputter *out, bool is_last)
 {
-  if (header_)
+  if (get_header ())
     {
-      out->output_line (stencil2line (header_), false);
+      out->output_line (stencil2line (get_header ()), false);
       out->output_line (height2line (head_sep_), false);
     }
   out->output_scheme (scm_list_1 (ly_symbol2scm ("start-page")));
   for (SCM s = lines_; gh_pair_p (s); s = ly_cdr (s))
     out->output_line (ly_car (s), is_last && gh_pair_p (ly_cdr (s)));
   out->output_scheme (scm_list_2 (ly_symbol2scm ("stop-page"),
-                                 gh_bool2scm (is_last && !footer_)));
-  if (footer_)
+                                 gh_bool2scm (is_last && !get_footer ())));
+  if (get_footer ())
     {
       out->output_line (height2line (foot_sep_), false);
-      out->output_line (stencil2line (footer_), is_last);
+      out->output_line (stencil2line (get_footer ()), is_last);
     }
 }
 
@@ -123,10 +121,10 @@ Real
 Page::text_height ()
 {
   Real h = vsize_ - top_margin_ - bottom_margin_;
-  if (header_)
-    h -= header_->extent (Y_AXIS).length () + head_sep_;
-  if (footer_)
-    h -= footer_->extent (Y_AXIS).length () + foot_sep_;
+  if (get_header ())
+    h -= get_header ()->extent (Y_AXIS).length () + head_sep_;
+  if (get_footer ())
+    h -= get_footer ()->extent (Y_AXIS).length () + foot_sep_;
   return h;
 }
 
index fdedb4d22aeb6934cdf9ea5860fd2ed699729483..1a80ca819919576f68938f849ef7aae80da76cdf 100644 (file)
@@ -592,7 +592,7 @@ Stem::flag (Grob*me)
       return Stencil ();
     }
 
-  bool adjust = to_boolean (me->get_property ("adjust-if-on-staffline"));
+  bool adjust = true;
 
   String staffline_offs;
   if (String::compare (flag_style, "mensural") == 0)
@@ -984,7 +984,7 @@ ADD_INTERFACE (Stem,"stem-interface",
 ,
               
               "tremolo-flag french-beaming "
-              "avoid-note-head adjust-if-on-staffline thickness "
+              "avoid-note-head thickness "
               "stem-info beamed-lengths beamed-minimum-free-lengths "
               "beamed-extreme-minimum-free-lengths lengths beam stem-shorten "
               "duration-log beaming neutral-direction stem-end-position "
index 259eccc6358fc2b7efa494a4dc4d9013a1cfcd55..e1980fae81689978365bb8f1644fa8b2b5d6c765 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 % a3-init.ly
 
 hsize = 296.9 \mm
index ecf51b9f73b9a265617a32c2e31bf5d351f5af31..2fb61d2a8f635cd03fecfeb3bdd22e2389a1c8a0 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 % a4.ly
 
 hsize = 210.0 \mm
index 8c432fc9b10f8532d190825904d8ea9dae671760..90b5edaf0d335ef966c790fb0aed0122431f92ec 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 % Symbols needed to print accordion music
 % 
 %  2' = T
index e9c4e2c6028252e3368421cf094716760e56828c..d1466f80550a5d4549255b9c2ca0ba11a03d83a2 100644 (file)
@@ -1,6 +1,6 @@
 % Toplevel initialisation file. 
        
-\version "2.1.28"
+\version "2.1.30"
 
 
 \include "declarations-init.ly"
index 119184bfce3d618b08609785d3cf94511dab2cf0..37452f06e61a7d62df3c22296d9d4b8d31635c20 100644 (file)
@@ -73,4 +73,4 @@ pitchnamesCatalan = #`(
 
 pitchnames = \pitchnamesCatalan
 
-\version "2.1.28"
+\version "2.1.30"
index 82a8ea52aaa58bec277952fc2e6b8f232b4cda7a..ca26b5caea084f60d692c8e70922c50c91f14c9a 100644 (file)
@@ -1,6 +1,6 @@
 % Toplevel initialisation file. 
        
-\version "2.1.28"
+\version "2.1.30"
 
 
 \include "declarations-init.ly"
index d780d3ff9de2fa565827c732922198faaea83603..2f72eea81851ccf96d64556c889edb2d9f0cbf76 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 chordmodifiers = #default-chord-modifier-list
 
index 4cbadfea8385c8a1783be64a1e1438035f94dfb4..0a119daeb7e7ccef6b6f2bc7fb788098e95a3a21 100644 (file)
@@ -1,6 +1,6 @@
 #(ly:set-option 'old-relative)
 
-\version "2.1.29"
+\version "2.1.30"
 breve = #(ly:make-duration -1 0)
 longa = #(ly:make-duration -2 0 )
 maxima = #(ly:make-duration -3 0)
index b967c5e7c01ceb98596453da2a47fd1eba279be0..548929f549670fc7f6283ac233963e1693f964c8 100644 (file)
@@ -49,4 +49,4 @@ pitchnamesDeutsch = #`(
 
 pitchnames = \pitchnamesDeutsch
 
-\version "2.1.28"
+\version "2.1.30"
index 3f35910f8ab9c397d29337a772e56f428cc4f0c4..61929346cd95770e9e808cea6035e354c34265b5 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.28"
+\version "2.1.30"
 
 drumPitchNames =
 #'((acousticbassdrum . acousticbassdrum)
index b4c85955b1fb2ebaa0f722e7d44214394b72b0d2..8bfcac5086c665afedb75263e933883ef1a79585 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 %
 % declare the standard dynamic identifiers.
index b1a06f7086d966cb34134d0f497cce988b9dde33..af754fa53aad3d1e9d3e62a72a5d49dc9caa5c94 100644 (file)
@@ -87,5 +87,5 @@ pitchnamesEnglish = #`(
 
 pitchnames = \pitchnamesEnglish
 
-\version "2.1.28"
+\version "2.1.30"
 
index 2c1469b1f4f47cf6a4f6e763c84d80e5fd34d372..c43a03166edcde0caccbb559d2da81a843087c6b 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.29"
+\version "2.1.30"
 
 \context {
     \name Global
@@ -452,7 +452,7 @@ AncientRemoveEmptyStaffContext = \context {
     
     clefGlyph = #"clefs-G"
     clefPosition = #-2
-    centralCPosition = #-6
+    middleCPosition = #-6
     
     defaultBarType = #"|"
     barNumberVisibility = #default-bar-number-visibility
@@ -711,7 +711,7 @@ EasyNotation = \context {
 
   % Choose vaticana do clef on 3rd line as default.
   clefGlyph = #"clefs-vaticana_do"
-  centralCPosition = #1
+  middleCPosition = #1
   clefPosition = #1
   clefOctavation = #0
 
index 31e39e4d8f9a65bcb659351f35036283e1237a9f..ecdc1492f5bf07f25c9f83bac1342fdf151e9828 100644 (file)
@@ -58,4 +58,4 @@ pitchnamesEspanol = #`(
 
 pitchnames = \pitchnamesEspanol
 
-\version "2.1.28"
+\version "2.1.30"
index 9ea349a2547bfdcf4bf3a54c64def6048c4f0c89..7cd7d60fb11342dc1f49032f0956c3b1360ab9be 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 %
 % Running LilyPond on this file generates the documentation
index 29f1ea4167812c8d559472fb50620b979defcdcb..fd1b27072779bcc44020628a5624a75f74cccfb2 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 %
 % Running LilyPond on this file generates the short interface doc
index 9b3502d5bf2992741dd476079a1aa7d3a0decf39..03a5df28fa0b2386567cf3406820adc6cdd287c2 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 
 startGraceMusic = \notes {
index c8fd5007ebaa5311b763fd9cd10d3451c9794bbe..8b4c01ad66d54916a7efced628115d249b099ab0 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 %%%%%%%%
 %%%%%%%% shortcuts common for all styles of gregorian chant notation
index a0505d8eeaef8678635b90f418778413856bc7cf..a86ad966a7013bf6ab16b2da27a9cf79993ec724 100644 (file)
@@ -4,7 +4,7 @@
 #(define-public midi-debug #f)
 
 
-\version "2.1.28"
+\version "2.1.30"
 
 \include "declarations-init.ly"
 
index c40a756d6dc3dc26424f24486752083e26a769f2..e59f8fc78f7cd08a036594eb9640b40314a21088 100644 (file)
@@ -86,4 +86,4 @@ pitchnamesItaliano = #`(
 
 pitchnames = \pitchnamesItaliano
 
-\version "2.1.28"
+\version "2.1.30"
index 70939cc4e580af3530a1bcbcaf02e557f3f522e5..2b02f8fc0278a1e062f759261193ba9d228016e6 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 % legal-init.ly
 
 hsize = 8.5 \in
index 9d3a1925435457ff544332494cbfe357d618177b..fcc13b5973e60c5b945fc7dd70e28f59d9a9da3a 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 % letter-init.ly
 
 hsize = 8.5 \in
index 30999086cf9fdf0e552de1b3b956969341773ec1..95f012d188277d643f863d2227528cbffa44d20b 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 \midi {
         \tempo 4=60
        \include "performer-init.ly"
index 4454a9fbf7b0d1c11b5f66c6500beef8a56368db..c3e2a9630636a2495f58c67c047c36a7dcd69eef 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 %{
  common dutch names for notes. es means flat, is means sharp
 %}
index 3a7b303f92a067945eebefcddd24c4249102aced..96f5333e3025cc402585298daeff9f5394ade8de 100644 (file)
@@ -105,4 +105,4 @@ pitchnamesNorsk = #`(
 
 pitchnames =\pitchnamesNorsk
 
-\version "2.1.28"
+\version "2.1.30"
index 9b1307d2d5de61244e3fe488300debeabd153725..f2a6f6f794e428e30e92d4f368c322f52a7c6a12 100644 (file)
@@ -1,2 +1,2 @@
-\version "2.1.28"
+\version "2.1.30"
 
index 9d70875f87e54a86a87b63e186645fd938275efe..e0eb32ecc3ebaa5061ee83e10a6e25386a7ea6d0 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.29"
+\version "2.1.30"
 
 % JUNKME
 %part-paper-init.ly
index 7d550b7ed62873bb64366f576e632239f4a5ef4a..27d041644f0d0d466c822bd2619d5615d52566e8 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.29"
+\version "2.1.30"
 
                                %
                                % setup for Request->Element conversion. Guru-only
index e150bdd5dd068525c8ad7094c7a588225f4bc4dc..81378b76283921bfc642a311561487e18cee0211 100644 (file)
@@ -1,6 +1,6 @@
 % property-init.ly
 
-\version "2.1.28"
+\version "2.1.30"
 
 stemUp = \override Stem  #'direction = #1
 stemDown = \override Stem  #'direction = #-1 
index d768109d9c67d615b9497cf656f242b30f4b0f22..633c15a3074686cc770987552d4f54903a2cc191 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 
 major = #`(
index 8ba8e152072131d5f60a40b11ec0ed4158c73e19..366bb2abb9b53965d23f5b366cb85c77194485d4 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 
 dashHat= "marcato"
index b41dff50d66555b85e8508d19ad2119cdcd567ad..3e1eae9c7d74ced1ab7e64a7b099be6381d63395 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 startGroup = #(make-span-event 'NoteGroupingEvent START)
 stopGroup = #(make-span-event 'NoteGroupingEvent STOP)
index e28135a7f9b6617e65ae552b40705aadf0757981..22813ee100dace0598ebfb2e2ef81816004986e2 100644 (file)
@@ -48,4 +48,4 @@ pitchnamesSuomi = #`(
 
 pitchnames = \pitchnamesSuomi
 
-\version "2.1.28"
+\version "2.1.30"
index fd24d97ae0260d584901eb1bcc41ec377d4582ed..897433120f093160826cef3a123fe8e2a30138e3 100644 (file)
@@ -42,4 +42,4 @@ pitchnamesSvenska = #`(
 )
 
 pitchnames = \pitchnamesSvenska
-\version "2.1.28"
+\version "2.1.30"
index 0377eb7ed6a17266761a09dbe04a23afe2929079..2cc637e301e38301de5b73e0118cfd34dbbad3a6 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.28"
+\version "2.1.30"
 
 % tabloid-init.ly
 
index 8c21a4f3042e14f8b562dbeb776544e05ccce4fc..bfddb1644c74083db85cdd9615c056624baba3d3 100644 (file)
     (if (pair? e)
        (let* ((musics (map make-prop-set  
                            `(((symbol . clefGlyph) (value . ,(cadr e)))
-                             ((symbol . centralCPosition)
+                             ((symbol . middleCPosition)
                               (value . ,(+ oct
                                            (caddr e)
                                            (cdr (assoc (cadr e) c0-pitch-alist)))))
index 1f2533d1f53cb333c3fcb2affb44bb9e4b0a06bc..ffa54d5939076750db3e7590f37638702c334c43 100644 (file)
@@ -293,7 +293,7 @@ sustain pedals: @code{text}, @code{bracket} or @code{mixed} (both).")
      (pedalSostenutoStyle ,symbol? "see @code{pedalSustainStyle}.")
      (printOctaveNames ,boolean? "Print octave marks for the NoteNames context.")
      (rehearsalMark ,integer? "The last rehearsal mark printed.")
-     (repeatCommands ,list? "This property is read to find any command of the form @{code(volta . @var{x})}, where @var{x} is a string or @code{#f}")
+     (repeatCommands ,list? "This property is read to find any command of the form @code{(volta . @var{x})}, where @var{x} is a string or @code{#f}")
 
      (restNumberThreshold ,number?
                          "If a multimeasure rest takes less
@@ -388,7 +388,7 @@ is a pair of dimensions, for example, this sets the sizes of a staff
 to 10 (5+5) staffspaces high.
 
 @example
-\set Staff.verticalExtent = #'(-5.0 . 5.0)
+\\set Staff.verticalExtent = #'(-5.0 . 5.0)
 @end example
 
 
@@ -481,7 +481,7 @@ Script_engraver for typesetting note-super/subscripts. See
 ")
      (quotes ,hash-table? "Hash table, mapping names to music-event vectors.")
      (stavesFound ,grob-list? "list of all staff-symbols found.")
-     (instrumentSupport ,ly:grob-list? "list of grobs to attach instrument name
+     (instrumentSupport ,grob-list? "list of grobs to attach instrument name
 to.")
      (tieMelismaBusy ,boolean? "Signal whether a tie is present.")
      )
index 6ed99f8c9efff6b59aad2ff28552b2a990633d10..577deb64c380df86f6144b93aa5cf22066e8136f 100644 (file)
@@ -153,14 +153,6 @@ line).")
 center of the staff.")
 
      ;; todo: why is this tunable?
-     (neutral-position ,number? "Position (in half staff spaces) where
-to flip the direction of stems: by default, custodes above this
-position get their stems downwards; custodes below this position get
-their stems upwards.  A value of 0 designates the center of the staff.
-Use property neutral-direction to control the behaviour of stems on
-the neutral position itself.  (Note: currently, neutral-position is
-supported only for custodes; for stems of note heads, neutral-position
-is currently fixed to 0, i.e. the middle of the staff.)")
      (dir-function ,procedure? "The function to determine the
 direction of a beam. Choices include: 
 
@@ -338,8 +330,8 @@ this column. 10000 or more means forbid linebreak, -10000 or less
 means force linebreak.  Other values influence linebreaking decisions
 as a real penalty.")
      
-     (pitch-max ,ly:pitch? "FIXME, JUNKME")
-     (pitch-min ,ly:pitch? "FIXME, JUNKME")
+     (pitch-max ,ly:pitch? "Top pitch for ambitus.")
+     (pitch-min ,ly:pitch? "Bottom pitch for ambitus.")
 
      (positions ,pair?
                "Pair of staff coordinates @code{(@var{left}
@@ -471,7 +463,7 @@ zigzag, relative to @code{zigzag-width}. A value of 1 gives 60-degree
 zigzags.")
      (zigzag-width ,ly:dimension? "The width of one
 zigzag-squiggle. This number will be adjusted slightly so that the
-line can be constructed from a whole number of squiggles.")
+glissando line can be constructed from a whole number of squiggles.")
 
      (avoid-note-head ,boolean? "If set, the stem of a chord does not
 pass through all note heads, but starts at the last note head. ")
@@ -638,6 +630,8 @@ than a whole rest.")
      
      ;; end ancient notation
 
+     ; ugh.
+     (accidentals-style ,symbol? "style for ambitus.")
      
      )))
 
index cbbb9c3806f05081d7d408c85e8a4210799850ee..1920f4a57cd3f345a0cb1d2b5e2b8635bbc6e74f 100644 (file)
        (meta . ((interfaces . (spacing-interface note-spacing-interface item-interface ))))
        ))
 
-    (StaffSymbol
-     . (
-       (print-function . ,Staff_symbol::print)
-       (line-count . 5)
-       (ledger-line-thickness  . (1.0 . 0.1))
-       (layer . 0)
-       (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
-       ))
-
     (SostenutoPedal
      . (
        (print-function . ,Text_item::print)
        (direction . -1)
        (meta . ((interfaces . (piano-pedal-interface axis-group-interface side-position-interface  spanner-interface))))
        ))
+
+    (StaffSymbol
+     . (
+       (print-function . ,Staff_symbol::print)
+       (line-count . 5)
+       (ledger-line-thickness  . (1.0 . 0.1))
+       (layer . 0)
+       (meta . ((interfaces . (staff-symbol-interface spanner-interface))))
+       ))
        
     (Stem
      . (
        (X-extent-callback . ,Stem::dim_callback)       
        (Y-extent-callback . ,Stem::height)
        (Y-offset-callbacks . (,Staff_symbol_referencer::callback))
-       (adjust-if-on-staffline . #t)
        (font-family . music)      
        (meta . ((interfaces . (stem-interface  font-interface item-interface ))))
        ))
index 06a05f5f9957751f51090571eef6201717b7e1db..e714adba721e876f26c201caea5d867506aec50c 100644 (file)
@@ -37,7 +37,7 @@
                        markups))
         (text-width (apply + (map interval-length
                                   (map (lambda (x)
-                                         (ly:stencil-get-extent x X))
+                                         (ly:stencil-extent x X))
                                        stencils))))
        (word-count (length markups))
        (word-space (cdr (chain-assoc 'word-space props)))
@@ -312,8 +312,8 @@ and/or @code{extra-offset} properties. "
          (m2 (interpret-markup paper props arg2)))
     (ly:stencil-align-to! m1 X CENTER)
     (ly:stencil-align-to! m2 X CENTER)    
-    (let* ((x1 (ly:stencil-get-extent m1 X))
-           (x2 (ly:stencil-get-extent m2 X))
+    (let* ((x1 (ly:stencil-extent m1 X))
+           (x2 (ly:stencil-extent m2 X))
            (line (ly:round-filled-box (interval-union x1 x2) '(-0.05 . 0.05) 0.0))
            ;; should stack mols separately, to maintain LINE on baseline
            (stack (stack-lines -1 0.2 0.6 (list m1 line m2))))
@@ -338,7 +338,7 @@ and/or @code{extra-offset} properties. "
          (stemth 0.13)
          (stemy (* dir stemlen))
          (attachx (if (> dir 0)
-                      (- (cdr (ly:stencil-get-extent headgl X)) stemth)
+                      (- (cdr (ly:stencil-extent headgl X)) stemth)
                       0))
          (attachy (* dir 0.28))
          (stemgl (and (> log 0)
@@ -348,7 +348,7 @@ and/or @code{extra-offset} properties. "
                              (max stemy attachy))
                        (/ stemth 3))))
          (dot (ly:find-glyph-by-name font "dots-dot"))
-         (dotwid (interval-length (ly:stencil-get-extent dot X)))
+         (dotwid (interval-length (ly:stencil-extent dot X)))
          (dots (and (> dot-count 0)
                     (apply ly:stencil-add
                            (map (lambda (x)
@@ -375,7 +375,7 @@ and/or @code{extra-offset} properties. "
                                                   (* 1.5 dotwid)
                                                   0)
                                               ;; huh ? why not necessary?
-                                              ;;(cdr (ly:stencil-get-extent headgl X))
+                                              ;;(cdr (ly:stencil-extent headgl X))
                                               dotwid)
                                            X)
                stemgl)))
index 5011a0a0ee90a16188dd5ed0ebef052e81a8ab54..5f7d3619880739bb7771dc0303e906ab22f35e7d 100644 (file)
@@ -75,7 +75,7 @@
   (display ": { ")  
   (let ((es (ly:music-property music 'elements))
        (e (ly:music-property music 'element)))
-    (display (ly:get-mutable-properties music))
+    (display (ly:mutable-music-properties music))
     (if (pair? es)
        (begin (display "\nElements: {\n")
               (map display-music es)
@@ -275,25 +275,25 @@ a property set for MultiMeasureRestNumber."
 (define-public (make-ottava-set octavation)
   (let ((m (make-music 'ApplyContext)))
     (define (ottava-modify context)
-      "Either reset centralCPosition to the stored original, or remember
-old centralCPosition, add OCTAVATION to centralCPosition, and set
+      "Either reset middleCPosition to the stored original, or remember
+old middleCPosition, add OCTAVATION to middleCPosition, and set
 OTTAVATION to `8va', or whatever appropriate."     
-      (if (number? (ly:context-property         context 'centralCPosition))
+      (if (number? (ly:context-property         context 'middleCPosition))
          (if (= octavation 0)
-             (let ((where (ly:context-property-where-defined context 'centralCPosition))
+             (let ((where (ly:context-property-where-defined context 'middleCPosition))
                    (oc0 (ly:context-property context 'originalCentralCPosition)))
-               (ly:context-set-property! context 'centralCPosition oc0)
+               (ly:context-set-property! context 'middleCPosition oc0)
                (ly:unset-context-property where 'originalCentralCPosition)
                (ly:unset-context-property where 'ottavation))
-             (let* ((where (ly:context-property-where-defined context 'centralCPosition))
-                    (c0 (ly:context-property context 'centralCPosition))
+             (let* ((where (ly:context-property-where-defined context 'middleCPosition))
+                    (c0 (ly:context-property context 'middleCPosition))
                     (new-c0 (+ c0 (* -7 octavation)))
                     (string (cdr (assoc octavation '((2 . "15ma")
                                                      (1 . "8va")
                                                      (0 . #f)
                                                      (-1 . "8va bassa")
                                                      (-2 . "15ma bassa"))))))
-               (ly:context-set-property! context 'centralCPosition new-c0)
+               (ly:context-set-property! context 'middleCPosition new-c0)
                (ly:context-set-property! context 'originalCentralCPosition c0)
                (ly:context-set-property! context 'ottavation string)))))
     (set! (ly:music-property m 'procedure) ottava-modify)
@@ -523,7 +523,7 @@ without context specification. Called  from parser."
 
 (define-public (set-start-grace-properties context)
   (define (execute-1 x)
-    (let ((tr (ly:translator-find context (car x))))
+    (let ((tr (ly:context-find context (car x))))
       (if (ly:context? tr)
          (ly:context-pushpop-property tr (cadr x) (caddr x) (cadddr x)))))
   
@@ -533,7 +533,7 @@ without context specification. Called  from parser."
 
 (define-public (set-stop-grace-properties context)
   (define (execute-1 x)
-    (let ((tr (ly:translator-find context (car x))))
+    (let ((tr (ly:context-find context (car x))))
       (if (ly:context? tr)
          (ly:context-pushpop-property tr (cadr x) (caddr x)))))
   
index b3f3d6d046b2d32b79d155701e1965e56b0f78ad..7c455a5f4d2bff4f3c86a7b79517448648abbca4 100644 (file)
@@ -419,7 +419,7 @@ Also set markup-signature and markup-keyword object properties."
               (ly:stencil? (cadr stencils)))
           (let* ((tail (stack-stencil-line  space (cdr stencils)))
                  (head (car stencils))
-                 (xoff (+ space (cdr (ly:stencil-get-extent head X)))))
+                 (xoff (+ space (cdr (ly:stencil-extent head X)))))
             (ly:stencil-add head
                              (ly:stencil-translate-axis tail xoff X)))
           (car stencils))
index d21ccf65204db2358b723a8326ec0d4a44c6ba47..1f70e44e62d469df4f8cb891faaa317cf23b6498 100644 (file)
@@ -50,8 +50,8 @@
     (let ((slur (Slur::print grob))
           (text (fontify-text (ly:get-default-font grob) letter)))
     
-      (let ((x (/ (- (cdr (ly:stencil-get-extent slur 0)) 
-                     (/ (cdr (ly:stencil-get-extent text 0)) 2.0)
+      (let ((x (/ (- (cdr (ly:stencil-extent slur 0)) 
+                     (/ (cdr (ly:stencil-extent text 0)) 2.0)
                      )
                   -2.0)))
       
@@ -75,8 +75,8 @@
   (let*
    (
     (mol    (callback grob))
-    (x-ext (interval-widen (ly:stencil-get-extent mol 0) x-padding))
-    (y-ext (interval-widen (ly:stencil-get-extent mol 1) y-padding))
+    (x-ext (interval-widen (ly:stencil-extent mol 0) x-padding))
+    (y-ext (interval-widen (ly:stencil-extent mol 1) y-padding))
     (x-rule (make-filled-box-stencil (interval-widen x-ext line-thick)
                               (cons 0 line-thick)))
     (y-rule (make-filled-box-stencil (cons 0 line-thick) y-ext))
index 1e88d6c4dc8e121b533c0065183f4d39464f7a0a..bad27138e5e47d5e6126c79e4dbab32374b373f1 100644 (file)
@@ -33,7 +33,7 @@
 (define-public (bracketify-stencil stil axis thick protusion padding)
   "Add brackets around STIL, producing a new stencil."
 
-  (let* ((ext (ly:stencil-get-extent stil axis))
+  (let* ((ext (ly:stencil-extent stil axis))
         (lb (ly:bracket axis ext thick (- protusion)))
         (rb (ly:bracket axis ext thick protusion)))
     (set! stil
@@ -68,8 +68,8 @@ encloses the contents.
 ;; TODO merge this and prev function. 
 (define-public (box-stencil stil thick padding)
   "Add a box around STIL, producing a new stencil."
-  (let* ((x-ext (interval-widen (ly:stencil-get-extent stil 0) padding))
-        (y-ext (interval-widen (ly:stencil-get-extent stil 1) padding))
+  (let* ((x-ext (interval-widen (ly:stencil-extent stil 0) padding))
+        (y-ext (interval-widen (ly:stencil-extent stil 1) padding))
         (y-rule (make-filled-box-stencil (cons 0 thick) y-ext))
         (x-rule (make-filled-box-stencil (interval-widen x-ext thick)
                                           (cons 0 thick))))
index d88649315a50786d31656d9fe11c449501b63e9b..d97f2682ac41c90d3e82a65ab026150a5befb2b3 100644 (file)
@@ -116,7 +116,7 @@ is then separated.
   (let* ((name (ly:music-property music 'name))
         (e (ly:music-property music 'element))
         (es (ly:music-property music 'elements))
-        (mprops (ly:get-mutable-properties music))
+        (mprops (ly:mutable-music-properties music))
         (d (ly:music-property music 'duration))
         (p (ly:music-property music 'pitch))
         (ignore-props '(origin elements duration pitch element)))