gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bars too close to notes


From: Han-Wen Nienhuys
Subject: Bars too close to notes
Date: Wed, 11 Oct 2000 18:08:04 +0200

address@hidden writes:
> Hi all, 
> 
> this may be another newbie question. When I compile the
> attached .ly file, I get the score but measures 6 and 7 are
> terminated by a bar too close to the last chords in the
> measure. I am using lilypond 1.3.94 on Solaris 7 and Linux,

try this:

--- bar.cc~  Fri Oct  6 17:06:32 2000
+++ bar.cc   Wed Oct 11 18:06:34 2000
@@ -7,6 +7,7 @@
 */
 #include <math.h>

+#include "paper-column.hh"
 #include "main.hh"
 #include "dimensions.hh"
 #include "score-element.hh"
@@ -150,7 +151,19 @@
   if (! gh_equal_p  (g, orig))
     me->set_elt_property ("glyph", g);

-
+  /*
+    set a (pseudo) stem-direction, so we get extra space between
+    stemup and barline.
+  */
+  Score_element * col = item->column_l ();
+  SCM dirlist = col->get_elt_property ("dir-list");
+  SCM scmdir = gh_int2scm (-1);
+  if (scm_sloppy_memq (scmdir, dirlist) == SCM_EOL)
+    {
+      dirlist = gh_cons (scmdir, dirlist);
+      col->set_elt_property ("dir-list", dirlist);
+    }
+
   return SCM_UNSPECIFIED;
 }

-- 

Han-Wen Nienhuys   |   address@hidden    | http://www.cs.uu.nl/~hanwen/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]