Fantastic work, David! Definitely more involved code than you would expect,
but very thoroughly done, allowing for non-centered alignments even. This
would make an excellent addition to the core code, IMHO. Perhaps called
"centered-name-column"?

The only thing that I would further request (and this applies to
instrumentName in general) is that the indent variable automatically adjust
itself to be larger to compensate for names that run into the left margin
(and sometimes off the page entirely!). It just seems like the kind of
thing that should automatically happen, but maybe that's just me thinking
out loud.

- Abraham

On Mon, May 11, 2015 at 8:24 AM, David Nalesnik-2 [via Lilypond] <
ml-node+s1069038n176433...@n5.nabble.com> wrote:

> Hi,
>
> On Sun, Apr 26, 2015 at 12:45 PM, Kieren MacMillan <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=176433&i=0>> wrote:
>
>> Hello all,
>>
>> In the snippet <http://lsr.di.unimi.it/LSR/Snippet?id=383>, the
>> instrument names are centered [beautifully!] based on the total indent
>> value.
>>
>> How would one make the instruments be centered in a block only the width
>> of the longest instrument name (plus maybe a little padding), with the
>> block right-aligned to the beginning of the score?
>
>
> Attached please find my solution to this unexpectedly involved problem.
>
> Best,
> David
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=176433&i=1>
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> *instrument-name-positioning.ly <http://instrument-name-positioning.ly>*
> (11K) Download Attachment
> <http://lilypond.1069038.n5.nabble.com/attachment/176433/0/instrument-name-positioning.ly>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/can-InstrumentName-padding-centered-according-to-the-longest-instrument-name-tp175419p176433.html
>  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/can-InstrumentName-padding-centered-according-to-the-longest-instrument-name-tp175419p176439.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to