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

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

Individual staff sizes?


From: Mats Bengtsson
Subject: Individual staff sizes?
Date: Sun, 28 Jan 2001 13:55:41 +0100

I tried to update input/test/staff-size.ly but don't
manage to set the staff-space separately for each 
staff.

When I do
\property Staff.StaffSymbol \override #'staff-space = #0.8
nothing happens. 
On the other hand, when I do 
\paper{
  \translator{\StaffContext
    StaffSymbol \override #'staff-space = #0.8
  }
}
the setting works, but that's of course unusuable since
all the staffs get the same size.

The example file also illustrates a clear disadvantage
of the new property setting mechanism.

The single line 
    \property Staff.fontSize = #-1
corresponds to:
 \property Staff.BarLine \override #'font-relative-size = #-1
 \property Staff.Clef \override #'font-relative-size = #-1
 \property Staff.SeparatingGroupSpanner \override #'font-relative-size = #-1
 \property Staff.SeparationItem \override #'font-relative-size = #-1
 \property Staff.StaffSymbol \override #'font-relative-size = #-1
 \property Staff.TimeSignature \override #'font-relative-size = #-1
 \property Staff.VerticalAxisGroup \override #'font-relative-size = #-1
 \property Thread.NoteHead \override #'font-relative-size = #-1
 \property Voice.Beam \override #'font-relative-size = #-1
 \property Voice.DynamicLineSpanner \override #'font-relative-size = #-1
 \property Voice.DynamicText \override #'font-relative-size = #-1
 \property Voice.NoteColumn \override #'font-relative-size = #-1
 \property Voice.Stem \override #'font-relative-size = #-1

I definitely hope you don't plan to remove the generic-property.scm
at least until there's an equivalently powerful replacement.

   /Mats

diff -u input/test/staff-size.ly~ input/test/staff-size.ly
--- input/test/staff-size.ly~   Sun Dec 17 18:54:32 2000
+++ input/test/staff-size.ly    Sun Jan 28 13:51:27 2001
@@ -1,10 +1,11 @@
 \score {
-  \notes \relative c' < \context Voice {
-       \property Staff.staffSpace = #10
+  \notes \relative c' < 
+    \context Staff=VA {
+       \property Score.StaffSymbol \override #'staff-space = #0.8
        \property Staff.fontSize = #-1
-       \property Voice.fontSize = #-1
 
-       \property Voice . dynamicDirection = \up \stemDown
+       \property Voice.DynamicLineSpanner \override #'direction = #1 
+       \stemDown
 %\key gis \major;
        c8 d [e f g a] b c \ff
   }
@@ -12,6 +13,10 @@
 \context Staff = VB {  \property Voice . dynamicDirection = \down
c,,4 \ff c c 
c  }
 
 >
-\paper { linewidth = -1.; }
+\paper { linewidth = -1.; 
+%  \translator{\StaffContext
+%    StaffSymbol \override #'staff-space = #0.8
+%  }
+  }
 }
 \version "1.3.117"; 



reply via email to

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