lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing staff size with custom note head stencils


From: Thomas Morley
Subject: Re: Changing staff size with custom note head stencils
Date: Wed, 31 Oct 2012 21:52:23 +0100

2012/10/31 Paul Morris <address@hidden>:
[...]
>
> upTriangle =
> #(ly:make-stencil
>     (list 'embedded-ps
>     "gsave
>       currentpoint translate
>       newpath
[...]

Hi Paul,

postscript is scaled with global-staff-size only.

To work around you could use:

TwinNoteNoteHeads =
#(lambda (grob)
  (let* ((sz (ly:grob-property grob 'font-size 0.0))
         (mult (magstep sz)))
      (set! (ly:grob-property grob 'stencil) (ly:stencil-scale
(stencil-notehead grob) mult mult))
      (set! (ly:grob-property grob 'stem-attachment) (stem-adjuster grob))))

Complete file attached.

HTH,
  Harm

Attachment: custom-note-heads-paul.ly
Description: Binary data


reply via email to

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