lilypond-user
[Top][All Lists]
Advanced

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

Re: snap (bartok) pizz


From: Han-Wen Nienhuys
Subject: Re: snap (bartok) pizz
Date: Tue, 26 Apr 2005 18:11:42 +0200

Op di, 26-04-2005 te 17:41 -0300, schreef Jonatan Liljedahl:

> > 
> > this  is rather involved. You could also do
> > 
> > #(def-markup-command (bartokpizz layout props) ()
> >   (ly:stencil-add
> >           (make-circle-stencil 0.7 0.1 #f)
> >           (ly:make-stencil
> >             (list 'draw-line 0.1 0 0.1 0 1)
> >             '(-0.1 . 0.1) '(0.1 . 1)
> >           )))
> > 
> 
> Oh, I see! No need to go trough the markup interpretation since markup
> commands should return a stencil.
> Beware though that without ly:stencil-translate-axis, the symbol will
> not be centered above the note but centered around the the left edge of
> the note, it seems... is there a way to (in the scheme above) make sure
> the stencil is centered above the note/chord that the markup is attached
> to?

No, you should play with self-alignment-X of TextItem. See other grobs
in define-grobs.scm for inspiration 

-- 
Han-Wen Nienhuys - address@hidden
LilyPond Software Design - http://www.lilypond-design.com





reply via email to

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