|
From: | tisimst |
Subject: | Re: Accidental in brackets |
Date: | Mon, 5 Dec 2016 09:30:26 -0700 (MST) |
Hey!Total hack, but if you check out scm/stencil.scm, you’ll see how parentheses are made…(define-public (parenthesize-stencilstencil half-thickness width angularity padding)"Add parentheses around @var{stencil}, returning a new stencil."(let* ((y-extent (ly:stencil-extent stencil Y))(lp (make-parenthesis-stencily-extent half-thickness (- width) angularity))(rp (make-parenthesis-stencily-extent half-thickness width angularity)))(set! stencil (ly:stencil-combine-at-edge stencil X LEFT lp padding))(set! stencil (ly:stencil-combine-at-edge stencil X RIGHT rp padding))stencil))So it looks like you can substitute in make-connected-path-stencil for make-parenthesis-stencil, using sensible parameters for the connected path based on the y extent and the width.
[Prev in Thread] | Current Thread | [Next in Thread] |