lilypond-user
[Top][All Lists]
Advanced

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

Re: Segmented beam to avoid collision


From: Pierre Perol-Schneider
Subject: Re: Segmented beam to avoid collision
Date: Wed, 14 May 2014 10:20:30 +0200

2014-05-14 8:34 GMT+02:00 Javier Ruiz-Alma <address@hidden>:
I've failed to find documentation to generate a custom segmented beam as shown in this engraving.
Help appreciated.
 
Since you do not give any tiny example I'm not sure about the settings but you can adapt/be inspired by this :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.18.2"

% nothing important here :

\layout {

   indent = 0

   \context {

     \Score

     \omit Clef

     \omit KeySignature

     \omit TimeSignature

     proportionalNotationDuration = #(ly:make-moment 1/20)

   }

}


% here it goes :

\relative c' {

   \key f\major

   \override Score.StaffSymbol.layer = #3

   << {

       <f bes d f>4-.

       \once\override TextScript.layer = #2

       \once\override NoteHead.layer = #3

       \once\override Accidental.layer = #3

       \once\override Stem.layer = #3

       \once\override TextScript.extra-offset = #'(0 . -7)

       <g b ees g>-.

         ^\markup {

           \with-color #white

           \filled-box #'(-2.5 . 1.7) #'(0 . 2) #0

         }

       cis,

   }\\

   {

       \stemUp

       \override Beam.positions = #'(-.2 . .1)

       s8 b8.[ c16] s8

       \revert Beam.positions

   } >>

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


HTH,

Pierre




reply via email to

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