i tried han-wen:donald axel script today with 2.5.20 and macos 10.3.9 and got the following error:

$ lilypond bp4.ly
GNU LilyPond 2.5.20
Processing `bp4.ly'
Parsing...
Interpreting music... [3]
Preprocessing graphical objects...
Calculating line breaks... bp4.ly:4:11: In expression (make-circle-stencil 0.7 0.1):
bp4.ly:4:11: Wrong number of arguments to #<procedure make-circle-stencil (radius thickness fill)>


jonatan's suggestion worked nicely and centered the circle above the note as well. thanks!

-sean

--------------------------------------------
Sean Reed
Hamburg, Germany
Web: www.seanreed.de

On 26.04.2005, at 22:41, Jonatan Liljedahl wrote:

On Mon, 25 Apr 2005 02:10:49 +0200
Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:

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)
          )))


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?


/Jonatan    -=( http://kymatica.com )=-


_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user




_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to