lilypond-devel
[Top][All Lists]
Advanced

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

Beam by Slur


From: Han-Wen Nienhuys
Subject: Beam by Slur
Date: Thu, 15 Jul 2004 20:45:00 +0200

address@hidden 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   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

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