[Top][All Lists]
[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: |
Mon, 25 Apr 2005 02:10:49 +0200 |
Op zo, 24-04-2005 te 23:48 -0300, schreef Jonatan Liljedahl:
> > have i overlooked something?
> >
> > is there a markup or workaround for this?
>
> This is how I do it, put this in your .ly file:
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> #(def-markup-command (bartokpizz layout props) ()
> (interpret-markup layout props
> (markup #:stencil
> (ly:stencil-translate-axis
> (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)
> )
> )
> 0.7 X
> )
> )
> )
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)
)))
--
Han-Wen Nienhuys - address@hidden
LilyPond Software Design - http://www.lilypond-design.com