[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-bug
Subject:    crossStaff, beams and tuplets [was: Re: three small bugs]
From:       Simon Albrecht <simon.albrecht () mail ! de>
Date:       2015-10-30 20:26:15
Message-ID: 5633D267.3030402 () mail ! de
[Download RAW message or body]

Hello Gilberto,

thanks for reporting and sorry for the late response.

On 27.10.2015 13:43, Gilberto Agostinho wrote:
> - no. 3: when using \crosStaff, one has to manually set \autoBeamOff 
> when crossing, as well as hiding any tuplet numbers and brackets. 
> Couldn't this be done automatically? If one wants to use \crossStaff 
> for a certain passage, then very likely he doesn't want beams and 
> tuplets displaying there. The reference mentions that one should use 
> \autoBeamOff but there are no mentions about tuplets.
>
> \version "2.19.28"
> \score{
>   \new PianoStaff <<
>     \new Staff {c'8 d' \tuplet 3/2 {e' f' g'}}
>     \new Staff {\clef bass \crossStaff{\stemUp c8 d \tuplet 3/2 {e f g}}}
>   >>
>   \layout{
>     \context {
>       \PianoStaff
>       \consists #Span_stem_engraver
>     }
>   }
> }

I’ve added <https://sourceforge.net/p/testlilyissues/issues/4651/>. In 
the meantime, you can easily use a custom version of \crossStaff, as can 
be seen in the attachment.

Yours, Simon


["crossStaff-amended.ly" (text/x-lilypond)]

\version "2.19.28"
crossStaff =
#(define-music-function (notes) (ly:music?)
   (_i "Create cross-staff stems")
   #{
     \temporary \override Stem.cross-staff = #cross-staff-connect
     \temporary \override Flag.style = #'no-flag
     \temporary \override TupletBracket.stencil = ##f
     \temporary \override TupletNumber.stencil = ##f
     \temporary \override Beam.stencil = ##f
     #notes
     \revert Stem.cross-staff
     \revert Flag.style
     \revert TupletBracket.stencil
     \revert TupletNumber.stencil
     \revert Beam.stencil
   #})
\score {
  \new PianoStaff <<
    \new Staff { c'8 d' \tuplet 3/2 {e' f' g'}}
    \new Staff {\clef bass \crossStaff{\stemUp c8 d \tuplet 3/2 {e f g}}}
  >>
  \layout{
    \context {
      \PianoStaff
      \consists #Span_stem_engraver
    }
  }
}

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic