|
From: | Jon Arnold |
Subject: | Change stem stencil |
Date: | Mon, 22 May 2017 21:19:50 -0500 |
My only problem is that the Smufl glyph doesn't flip vertically with the stem, so it doesn't look right on down-stems. Can anyone help enhance the script to account for stem direction?#(define (muffle-stem grob)(if (ly:stencil? (ly:stem::print grob))(let* ((stencil (ly:stem::print grob))(X-ext (ly:stencil-extent stencil X))(Y-ext (ly:stencil-extent stencil Y))(width (interval-length X-ext))(len (interval-length Y-ext)))(ly:stencil-translate(grob-interpret-markup grob(markup #:smuflglyph "stemDamp"))(cons 0 (interval-start Y-ext))))#f))
[Prev in Thread] | Current Thread | [Next in Thread] |