[EMAIL PROTECTED] writes:
> I propose a new kind of autobeaming: beam by slur.
> 
> For beam by slur, beams are calculated according to the normal autobeam 
> rules, then limited by the following two rules:
> 
> 1. Only slurred notes may be beamed.
> 
> 2. When the notes spanned by a slur are also spanned by a beam, the 
> slur is not engraved.
> 
> This style is typical of hymn books, where eliminating slurs in the 
> inner voices makes it easier to set the lyrics.
> 
> Can this be done easily?  I have inspected the source code for the beam 
> and slur engravers (a couple months ago), but there is a lot of context 
> required to understand it, so I've come here for advice.  It seems that 
> some communication between the slur and beam engravers is required, but 
> I don't know where to begin.

You will want to look at auto-beam-engraver.cc and slur-engraver.cc.
You can have the auto-beam-engraver notice slurs, by adding
slur-interface to the acks argument of the ENTER_DESCRIPTION macro
call. The slur objects are then announced to acknowledge_grob().

For removing a slur, try Grob::suicide().

-- 

 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 



_______________________________________________
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to