> Where the notes in a "chord" are of unequal length.
>
> I've tried using polyphony and forcing the stem direction, but I've gotten
> problems with very small misalignments in the stems, and in this case it
> would be nice if the direction of the note heads could be handled
> automatically.
>
> I've tried searching the documentation and not found anything obviously
> relevant.
>
> -Arle
Hi,
for writing chords, with different NoteHeads I'd use
\tweak #'duration-log #...
in the chord.
But it does not work in all cases with cross-stems:
If the lowest note of a upper chord is tweaked the cross-staff-stem disappears.
I added a workaround. But it is a _very_ _poor_ one.
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.17.6"
>
\relative c' {\displayMusic
%% First chord
<
c
e
\tweak #'duration-log #2 g
>2
%% second chord
<
c
\tweak #'duration-log #2 e
g
>2
%% third chord
%% cross-staff-stem doesn't work
<
\tweak #'duration-log #2 c
e
g
>2
}
workaround =
\relative c' {
%% Very poor workaround
\startStaff
\override Staff.StaffSymbol #'ledger-extra = #-1
\stopStaff
<
\tweak #'transparent ##t a
\tweak #'duration-log #2 c
e
g
>2
\startStaff
\revert Staff.StaffSymbol #'ledger-extra
\stopStaff
}
two =
\relative c {
\voiceOne
\clef bass
\crossStaff { <c g'>2 <c g'> <c g'> <c g'> }
}
%% Single-staff-chords work with \tweak #'duration-log
\new Staff \one
%% cross-staff-stems doesn't work in all cases,
\score {
\new PianoStaff <<
\new Staff { \one\workaround }
\new Staff \two
>>
\layout {
\context {
\PianoStaff
\consists #Span_stem_engraver
}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
Regards,
Harm