+++ /dev/null
-\header {
-
- texidoc = "Notes in different staves should be aligned to the
- left-most note, in case of collisions."
-
-}
-
-\layout { ragged-right = ##t }
-
-\version "2.19.21"
-
-\relative <<
- \new Staff {
- <<
- { f' g } \\
- { g f }
- >> }
- \new Staff {
- c4 c
- }
->>
\header {
-
- texidoc = "Collision resolution may be forced manually with @code{force-hshift}. "
+ texidoc = "Colliding note-columns may be shifted manually
+with @code{force-hshift}. Arrangements of notes after
+collision-resolution have their main columns (not suspended notes)
+left-aligned, excluding columns with forced shifts."
}
-\version "2.19.21"
+\version "2.19.24"
-\paper {
- ragged-right = ##t
-}
+\new PianoStaff \with { \consists #Span_stem_engraver } <<
+ \new Staff \fixed c' <<
+ \new Voice {
+ \voiceOne f e
+ \crossStaff
+ \once\override NoteColumn.force-hshift = #-0.8
+ f
+ \once\override NoteColumn.force-hshift = #-1.5
+ e
+ }
+ \new Voice {
+ \voiceTwo e f
+ \once\override NoteColumn.force-hshift = #0
+ \crossStaff e
+ \crossStaff f
+ }
+ >>
+ \new Staff {\clef bass g g e f }
+>>
-\relative {
- << { f'
- \override NoteColumn.force-hshift = #0.1
- f } \\
- { e e }
- >>
-}
}
vector<Grob *> done;
- Real left_most = 1e6;
+ Real left_most = 0.0;
vector<Real> amounts;
for (; scm_is_pair (hand); hand = scm_cdr (hand))
done.push_back (s);
amounts.push_back (amount);
- if (amount < left_most)
- left_most = amount;
}
for (; scm_is_pair (autos); autos = scm_cdr (autos))
{