|
From: | David Nalesnik |
Subject: | Re: Analysis brackets with text [was: how to get notes without tails?] |
Date: | Sun, 30 Aug 2015 17:11:22 -0500 |
Hi David,On Aug 30, 2015, at 3:16 PM, David Nalesnik <address@hidden> wrote:LilyPond already has the ability to make analysis brackets, which are attached to note columns and can nest as in the link (HorizontalBracket). I have an old patch for adding text to these that I will finish up and post. (I have code for doing this in Scheme, but my approach now is an enhancement of the C++ engraver.)The attached file is what I used to use when making form handouts.This is great! – both the analysis brackets (which I didn’t know about before) and your code for text labels for them. I’ve often resorted to using Inkscape to add this kind of thing to LilyPond SVGs.In trying out your code I noticed that it didn’t really work when the text was wider than the bracket (the bracket was pushed over out of place). So I came up with a revision that handles this, using the “center-stencil-on-stencil” function I recently contributed to the LSR. See attached.
Would be nice to have this in the LSR, at least. It also might be nice if it could accept a markup instead of a string, so you could change the appearance of the text (size, color, style, etc.).
[Prev in Thread] | Current Thread | [Next in Thread] |