]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.36.jcn1
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 19 Mar 2000 23:56:58 +0000 (00:56 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 19 Mar 2000 23:56:58 +0000 (00:56 +0100)
1.3.36.jcn1
===========

* Added and updated a faq about postscript and ghostscript.

* Fixed order of slurVerticalDirection verticalDirection in
  generic-property.scm.  Similar fixes for Stem, Tie, etc.

* Added a Text_engraver to GraceContext.  Maybe it was removed on
  purpose: scripst on grace notes seem broken, they appear on the
  main note.

* Bugfix: volume effect of (de)crescendi was sometimes wrong way round.

CHANGES
Documentation/faq.texi
VERSION
input/test/bar-break.ly
input/test/bb.ly
lily/dynamic-engraver.cc
lily/span-dynamic-performer.cc
ly/engraver.ly
mutopia/Coriolan/coriolan-paper.ly
mutopia/Coriolan/coriolan-part-paper.ly
scm/generic-property.scm

diff --git a/CHANGES b/CHANGES
index 25d8b6894f91f509872f3e55c47cc77cd42cf4b7..651c19451b492cb6cabcde6c9e590f83fabb3408 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,17 @@
+1.3.36.jcn1
+===========
+
+* Added and updated a faq about postscript and ghostscript.
+
+* Fixed order of slurVerticalDirection verticalDirection in
+  generic-property.scm.  Similar fixes for Stem, Tie, etc.
+
+* Added a Text_engraver to GraceContext.  Maybe it was removed on
+  purpose: scripst on grace notes seem broken, they appear on the
+  main note.
+
+* Bugfix: volume effect of (de)crescendi was sometimes wrong way round.
+
 .3.35.hwn1
 ===========
 
index 6cc6c1cb8d649de82185e37aa2f814e1f32f5fc0..6953ff89b7ad3b1e7ea8a7dca1ae744265228ae6 100644 (file)
@@ -440,12 +440,20 @@ Direct PS output is still experimental.  For creating nice looking ps
 output, use TeX and @code{dvips}.
 
   
-@subsubsection The beams and slurs are gone if use the XDvi magnifying glass!?
+@subsubsection The beams and slurs are gone when using the XDvi magnifying glass!?
 
-The beams and slurs are done in PostScript.  XDvi doesn't show
-PostScript in the magnifying glass.  Complain to the XDvi maintainers.
+Various dynamic symbols, such as beams, crescendi, slurs are done in
+PostScript.  XDvi doesn't show PostScript in the magnifying glass.
+Complain to the XDvi maintainers.
 
 
+@subsubsection Beams, slurs and crescendi are not displayed at all!
+
+See previous answer.  XDvi uses GhostScript for displaying PostScript,
+check that you have GhostScript installed.  If you use a different
+DVI viewer, check if it will display embedded PostScript.  Don't worry,
+the symbols should appear on the printout.
+
 @subsubsection A lot of musical stuff doesn't make it to the MIDI file, eg.  dynamics, articulation, etc.
 
 The MIDI output was originally put in as a proof that MIDI could be
diff --git a/VERSION b/VERSION
index c53e8e4d15e3b2bcadd42bf45efc0914665b74f0..3ffada1af9785b2027cad3e0ba3e35a776b30544 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=36
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index d45a9ddf0190fb8c14ce59a47023030f712ecda4..5eff32f3a33d1e6b220061da255f7206e16461ae 100644 (file)
@@ -2,22 +2,27 @@
 {
   \context StaffGroup = a < 
     \context PianoStaff = b <
-      \context Staff = "c" \notes\relative c'' { b1 \break b }
-      \context Staff = "d" \notes\relative c'' { b1 \break b }
+      \context Staff = "c" \notes\relative c'' { b4 b \bar "empty"; \break b b }
+      \context Staff = "d" \notes\relative c'' { b4 b b b }
     >
   >
 
   \paper {
        indent=100.0\mm;
        linewidth=150.0\mm;
-    \translator
-    {
+    \translator {
       \StaffContext
         \consists "Staff_margin_engraver";
        numberOfStaffLines  = #1
-        marginScriptPadding = #10  % urg: this is in PT
+        marginScriptPadding = #30  % urg: this is in PT
        instrument = #"Foo"
-       instr = #"Foo"
+       instr = #"Bar"
     }
+    \translator {
+      \StaffGroupContext
+        \consists "Staff_margin_engraver";
+        marginScriptPadding = #10  % urg: this is in PT
+       instrument = #" \n \n \n \n \n \n \n \n \n \nPiano\n(For rehearsal only)"
+      }
   }
 }
index 0c01477ada77072520e989406703eb2597e0c558..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,23 +0,0 @@
-\score
-{
-  \context StaffGroup = a < 
-    \context PianoStaff = b <
-      \context Staff = "c" \notes\relative c'' { b1 \break b }
-      \context Staff = "d" \notes\relative c'' { b1 \break b }
-    >
-  >
-
-  \paper {
-       indent=100.0\mm;
-       linewidth=150.0\mm;
-    \translator
-    {
-      \StaffContext
-        \consists "Staff_margin_engraver";
-       numberOfStaffLines  = #1
-        marginScriptPadding = #30  % urg: this is in PT
-       instrument = #"Foo"
-       instr = #"Bar"
-    }
-  }
-}
index 038d02ba54c68071c4ab2b5b9b4fc88e09835405..26753ccdee91b5f7ad10d8d29e136ef5168599a6 100644 (file)
@@ -187,7 +187,7 @@ Dynamic_engraver::do_try_music (Music * m)
 void
 Dynamic_engraver::do_process_music ()
 {
-  if ((span_req_l_drul_[START] || text_req_l_)
+  if ((span_req_l_drul_[START] || span_req_l_drul_[STOP] || text_req_l_)
       && !line_spanner_
       && pending_element_arr_.size ())
     {
@@ -211,34 +211,57 @@ Dynamic_engraver::do_process_music ()
     last_request_mom_ = now_mom ();
   else
     {
-      for (int i = 0; i < pending_element_arr_.size (); i++)
+
+#if 1
+      /*
+       Maybe always creating a line-spanner for a (de)crescendo (see
+       below) is not a good idea:
+
+            a\< b\p \!c
+
+       the \p will be centred on the line-spanner, and thus clash
+       with the hairpin.  When axis-group code is in place, the \p
+       should move below the hairpin, which is probably better?
+       */
+      if (now > last_request_mom_)
+#else
+      /*
+       During a (de)crescendo, pending request will not be cleared,
+       and a line-spanner will always be created, as \< \! are already
+       two requests.
+       */
+      if (now > last_request_mom_ && !span_start_req_l_)
+#endif 
        {
-         Score_element* e = pending_element_arr_[i];
-         side_position (e).set_axis (Y_AXIS);
-         side_position (e).add_staff_support ();
-
-         /*
-           UGH UGH 
-          */
-         Direction d = directional_element (e).get ();
-         if (!d)
+         for (int i = 0; i < pending_element_arr_.size (); i++)
            {
-             SCM s = get_property ("dynamicDirection");
-             if (!isdir_b (s))
-               s = get_property ("verticalDirection");
-             if (isdir_b (s))
-               d = to_dir (s);
-             directional_element (e).set (d);
-           }
+             Score_element* e = pending_element_arr_[i];
+             side_position (e).set_axis (Y_AXIS);
+             side_position (e).add_staff_support ();
+
+             /*
+               UGH UGH 
+             */
+             Direction d = directional_element (e).get ();
+             if (!d)
+               {
+                 SCM s = get_property ("dynamicDirection");
+                 if (!isdir_b (s))
+                   s = get_property ("verticalDirection");
+                 if (isdir_b (s))
+                   d = to_dir (s);
+                 directional_element (e).set (d);
+               }
          
-         SCM s = get_property ("dynamicPadding");
-         if (gh_number_p (s))
-           e->set_elt_property ("padding", s);
-         s = get_property ("dynamicMinimumSpace");
-         if (gh_number_p (s))
-           e->set_elt_property ("minimum-space", s);
+             SCM s = get_property ("dynamicPadding");
+             if (gh_number_p (s))
+               e->set_elt_property ("padding", s);
+             s = get_property ("dynamicMinimumSpace");
+             if (gh_number_p (s))
+               e->set_elt_property ("minimum-space", s);
+           }
+         pending_element_arr_.clear ();
        }
-      pending_element_arr_.clear ();
     } 
 
   if (text_req_l_)
index 44b2547008b8e7c2e28eccd7d3265b4b3a0486c7..b4807e3a9d9324f2cb8397b02f492af7376437eb 100644 (file)
@@ -40,6 +40,7 @@ private:
   Drul_array<Span_req*> span_req_l_drul_;
   Array<Audio_dynamic_tuple> dynamic_tuple_arr_;
   Array<Audio_dynamic_tuple> finished_dynamic_tuple_arr_;
+  Direction dir_;
   Direction finished_dir_;
 };
 
@@ -109,6 +110,7 @@ Span_dynamic_performer::do_process_music ()
 
   if (span_req_l_drul_[STOP])
     {
+      finished_dir_ = dir_;
       if (!span_start_req_l_)
        {
          span_req_l_drul_[STOP]->warning (_ ("can't find start of (de)crescendo"));
@@ -117,8 +119,6 @@ Span_dynamic_performer::do_process_music ()
        {
          span_start_req_l_ = 0;
          finished_dynamic_tuple_arr_ = dynamic_tuple_arr_;
-         finished_dir_ = span_req_l_drul_[STOP]->span_type_str_ == "crescendo"
-           ? RIGHT : LEFT;
          dynamic_tuple_arr_.clear ();
          if (finished_dynamic_tuple_arr_.size ())
            dynamic_tuple_arr_.push (finished_dynamic_tuple_arr_.top ());
@@ -127,6 +127,8 @@ Span_dynamic_performer::do_process_music ()
 
   if (span_req_l_drul_[START])
     {
+      dir_ = span_req_l_drul_[START]->span_type_str_ == "crescendo"
+       ? RIGHT : LEFT;
       span_start_req_l_ = span_req_l_drul_[START];
       audio_p_ = new Audio_dynamic (0);
       Audio_element_info info (audio_p_, 0);
index d5d4842896b8373dd770f87f0ee46c5010739587..c8f6b73bdbd52b7ee1d2146a386777471babbeba 100644 (file)
@@ -170,6 +170,7 @@ GraceContext=\translator {
 
        \consists "Rhythmic_column_engraver";
        \consists "Dynamic_engraver";
+       \consists "Text_engraver";
 
        \consists "Property_engraver";
 
index 3defda7a5bc1f7bf694d4c90aaf5355ec9612719..2b3b88b76d445dc32611b1363ab4ed5066233b35 100644 (file)
@@ -40,8 +40,9 @@
        }
        \translator { 
                \ScoreContext 
-               textEmptyDimension = ##t
+               %textEmptyDimension = ##t
                textStyle = #"italic"
+               timeSignatureStyle = #"C"
        }
        \translator { \OrchestralScoreContext }
 }
index f16655066b84931b3a2d820a412f8b398b23dea6..7ec5642f26dfbb7f580dfb3f9d38115731a75779 100644 (file)
@@ -28,7 +28,7 @@
                %% Aargh: absulute dynamics:
                \remove "Text_engraver";
        }
-
+       % Hmm
        \translator {
                \StaffContext
                \accepts "VoiceOne";
                instrScriptPadding = #35  %% urg, this is in pt
                maximumRestCount = #1
        }
-       \translator { \OrchestralPartStaffContext }
+       \translator { 
+               \OrchestralPartStaffContext 
+               \accepts "VoiceOne";
+               \accepts "VoiceTwo";
+               instrumentScriptPadding = #55  %% urg, this is in pt
+               instrScriptPadding = #35  %% urg, this is in pt
+               maximumRestCount = #1
+       }
        \translator { 
                \ScoreContext skipBars = ##t 
-               textEmptyDimension = ##t
+               %textEmptyDimension = ##t
                textStyle = #"italic"
+               timeSignatureStyle = #"C"
        }
 }
index dc20e838cc1553a4d9bc300f7713ec48815c827d..467f9e8c73acdf1dc6c99858122e6665ebac7c35 100644 (file)
@@ -16,8 +16,8 @@
 (define generic-stem-properties
   (cons "Stem"
        (list
-        (list 'stemVerticalDirection dir? 'direction)
         (list 'verticalDirection dir? 'direction)       
+        (list 'stemVerticalDirection dir? 'direction)
         (list 'stemLength number? 'length)
         (list 'flagStyle string? 'flag-style)
         (list 'stemCentered boolean? 'stem-centered)
@@ -28,8 +28,8 @@
 
 (define generic-dot-properties
   (cons "Dots" (list
-               (list 'dotDirection dir? 'direction)
                (list 'verticalDirection dir? 'direction)
+               (list 'dotDirection dir? 'direction)
                )
        ))
 
@@ -91,8 +91,8 @@
 (define generic-breathing-sign-properties
   (cons "Breathing_sign"
        (list
-        (list 'breathingSignVerticalDirection dir? 'direction)
         (list 'verticalDirection dir? 'direction)
+        (list 'breathingSignVerticalDirection dir? 'direction)
         )))
 
 (define generic-clef-properties
 
 (define generic-tie-properties
   (cons "Tie" (list
-              (list 'tieVerticalDirection dir? 'direction)
               (list 'verticalDirection dir? 'direction)
+              (list 'tieVerticalDirection dir? 'direction)
   )))
 (define generic-tie-column-properties
   (cons "Tie_column" (list
-                     (list 'tieVerticalDirection dir? 'direction)
                      (list 'verticalDirection dir? 'direction)
+                     (list 'tieVerticalDirection dir? 'direction)
   )))
 
 
 (define generic-slur-properties
   (cons "Slur"
        (list
-        (list 'slurVerticalDirection dir? 'direction)
         (list 'verticalDirection dir? 'direction)       
+        (list 'slurVerticalDirection dir? 'direction)
         (list 'slurDash number? 'dashed))))
 
 (define generic-timesig-properties