+2005-04-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * input/test/spacing-optical.ly (Module): new file.
+
+ * lily/staff-spacing.cc: add same-direction-correction
+
2005-04-06 Jan Nieuwenhuizen <janneke@gnu.org>
* Documentation/user/introduction.itely (Engraving): Comment-out
spot which fragment is which?
@cindex optical spacing
-@c @lily pondfile[quote,noindent]{spacing-optical.ly}
+@lilypondfile[quote,noindent]{spacing-optical.ly}
@cindex regular rhythms
@cindex regular spacing
{
#(set-octavation 1)
\times 2/3 { c'8[\< f]( f''\!) }
+ #(set-octavation 0)
+ <f \5>
}
\skip 1 >>
\new Staff \relative c'' {
--- /dev/null
+
+\header {
+texidoc = "Stem directions and head positions are taken into account for spacing "
+
+}
+
+\paper {
+ raggedright = ##t
+ indent = #0.0
+}
+
+music = {
+ c'4 e''4 e'4 b'4 |
+ \stemDown
+ b'8[ e'' a' e'']
+ \stemNeutral
+ e'8[ e'8 e'8 e'8]
+}
+
+
+
+\score
+{
+ \music
+ \layout {
+ \context {
+ \Staff
+ \override NoteSpacing #'stem-spacing-correction = #0.6
+ }
+ }
+}
+
+\score
+{
+ \music
+ \layout {
+ \context {
+ \Staff
+ \override NoteSpacing #'stem-spacing-correction = #0.0
+ \override NoteSpacing #'same-direction-correction = #0.0
+ \override StaffSpacing #'stem-spacing-correction = #0.0
+ }
+ }
+}
"This object calculates spacing details from a "
" breakable symbol (left) to another object. For example, it takes care "
" of optical spacing from a bar lines to a note.",
- "stem-spacing-correction left-items right-items");
+ "same-direction-correction stem-spacing-correction left-items right-items");