> ---------- Forwarded message ----------
> From: Rick Kimpel <[email protected]>
> To: lilypond-user <[email protected]>
> Cc:
> Bcc:
> Date: Fri, 28 Feb 2020 17:58:24 +0000
> Subject: default stem directions
> I am trying to learn how to change the default stem directions.
> I assume it has something to do with ly:stem::calc-default-direction,
> but I have no idea where to go from there.
> I would like an output that looks like this:
>
> \version "2.19.83"
> \score {
> \new Staff
> \with { \override StaffSymbol.line-count = #1 }
> {
> \clef percussion
> \numericTimeSignature
> \autoBeamOff
> \relative c' {
> \stemDown b8 \stemUp c4 c8
> \stemDown b8[ b] b \stemUp c
> }
> }
> }
>
> ...without having to do all the \stemUp \stemDown stuff.
> I'm ok with the manual beaming.
>
> Thanks,
> Rick
You can combine two voices
and use spacers instead of rests
\version "2.19.81"
stemUpNotes = \relative c' {
s8 c4 c8
s8 s s c8
}
stemDownNotes = \relative c' {
b8 s4 s8
b8[ b] b s
}
\score {
\new Staff
\with { \override StaffSymbol.line-count = #1 }
{
\clef percussion
\numericTimeSignature
\autoBeamOff
<< \stemUpNotes \\ \stemDownNotes >>
}
}
HTH,
Elaine Alt
415 . 341 .4954 "*Confusion is
highly underrated*"
[email protected]
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-