lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross staff stems with modern flags


From: Andrew Bernard
Subject: Re: Cross staff stems with modern flags
Date: Sat, 01 Jun 2013 09:05:50 +1000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Yes, this makes strange output - half right.

Andrew

On 1/06/13 1:51 AM, Phil Holmes wrote:
I think it's a bug in the way the modern-straight-flag stencil is implemented - it seems to prevent any Flag.style being interpreted, and so the style of no-flag is ignored.  It's a bit of a faff, but you can fix this with selected reverts and overrides in the voices:
 
\version "2.17.18"
 
upper = \relative c'' {
  \clef treble
  \voiceOne
  \override Flag.stencil = #modern-straight-flag
  \autoBeamOff
  a8 d e f
  \oneVoice
  c d e f
}
 
lower = \relative c {
  \clef bass
  \voiceOne
  \autoBeamOff
  \override Flag.stencil = #modern-straight-flag
  e8 d
  \revert Flag.stencil
  \crossStaff { e f }
  \override Flag.stencil = #modern-straight-flag
  \oneVoice
  g8 f g4
}
 
\score {
  \new StaffGroup <<
    \new Staff { \upper }
    \new Staff { \lower }
  >>
 
  \layout {
    \context {
      \Score
    }
    \context {
      \StaffGroup
      \consists #Span_stem_engraver
    }
  }
}

--
Phil Holmes
 
 
----- Original Message -----
Sent: Friday, May 31, 2013 4:10 PM
Subject: Cross staff stems with modern flags

Greetings List,

If I have modern straight flags turned on and attempt to use cross-staff stemmed chords, the flags show up on the bottom stems. What am I doing wrong? Using ordinary default flags, the problem is not visible.
\version "2.17.18"

upper = \relative c'' {
  \clef treble
  \voiceOne
  a8 d e f
  \oneVoice
  c d e f
}

lower = \relative c {
  \clef bass
  \voiceOne
  \autoBeamOff
  \crossStaff { e8 d e f }
  \autoBeamOn
  \oneVoice
  g8 f g4
}

\score {
  \new StaffGroup <<
    \new Staff { \upper }
    \new Staff { \lower }
  >>

  \layout {
    \context {
      \Score
      \override Flag #'stencil = #modern-straight-flag
    }
    \context {
      \StaffGroup
      \consists #Span_stem_engraver
    }
  }
}
Andrew



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

[Prev in Thread] Current Thread [Next in Thread]