4

After changing my style to weinberg, the hi hat and bass drum stems are now disconnected:

disconnected

My code:

\version "2.24"

\header {
  title = "abc"
}

\drums {
  \clef percussion
  \numericTimeSignature
  \time 4/4
  \set DrumStaff.drumStyleTable = #weinberg-drums-style

  << {
    hh4 4 4 4
  } \\ {
    \stemUp
    
    bd8 8 sn4 s sn8 bd8
  } >>
}

How can I "force" them to always connect?

6
  • This may be specific to Weinberg. When I run your code in HackLily it works fine, but the Weinberg style is ignored.
    – Aaron
    Commented Dec 24, 2022 at 22:44
  • HackLily uses lilypond 2.23.2, weinberg was added in 2.24, perhaps that's the cause? Commented Dec 24, 2022 at 22:58
  • I'm saying that if you remove Weinberg altogether, the stems work as expected. I don't have a way to test 2.24, but try removing the Weinberg line and see if the stems then behave as you want them.
    – Aaron
    Commented Dec 24, 2022 at 23:02
  • Yeah, removing the weinberg style 'fixes' it. @Elements In Space said that it is caused by the larger space between the notes in the weinberg style. Commented Dec 24, 2022 at 23:09
  • Try my solution to your other question. An initial test indicates it will align the stems the way you want.
    – Aaron
    Commented Dec 24, 2022 at 23:57

1 Answer 1

4

The issue here is that weinberg style has the hats on the g space instead of the e space, which is by default too far apart to have Lilypond connect the Stems. Solve this by increasing the length of the corresponding stem:

\version "2.24"

\header {
  title = "abc"
}

\drums {
  \clef percussion
  \numericTimeSignature
  \time 4/4
  \set DrumStaff.drumStyleTable = #weinberg-drums-style

  << {
    hh4 4 4 4
  } \\ {
    \stemUp
    \once\override Stem.length-fraction = #1.5
    bd8 8 sn4 s sn8 bd8
  } >>
}

Just keep in mind that this does look a bit weird.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.