Eventhough I thought I had prevented this it happened :) That you can rewrite the notehead replacement to any glyph I want does not change the fact that it is exactly the glyph/notehead I give it. Once the enviroment changes I have to replace all the noteheads. Imagine this for a complex piano score where you need this kind of mixed-duration chords. Yes, I know I can use variables but its still less elegant than using duration-log.
Nils On Tue, 26 Apr 2011 06:10:30 -0400 "m...@apollinemike.com" <m...@apollinemike.com> wrote: > On Apr 26, 2011, at 6:04 AM, Nils wrote: > > > Thank you for your answer. This is what I'm looking for. > > { <c' e' \tweak #'duration-log #1 g'> } > > because it respects notehead-styles. > > > > The other method mentioned is limited to one style. > > > > The other one can use any glyph you'd like. > > > Do you know how breve and longa can be produced with that? #breve or #0.5 > > does not give an error, but it also does not work. > > { <\tweak #'stencil #(lambda (grob) (grob-interpret-markup grob (markup > #:musicglyph "noteheads.slmensural"))) f' a' c''> } > > You can throw whatever you want in there... > > { <\tweak #'stencil #(lambda (grob) (grob-interpret-markup grob (markup > #:musicglyph "clefs.G"))) f' a' c''> } > > Cheers, > MS > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user