lilypond-user
[Top][All Lists]
Advanced

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

Re: What is the `bracket-text` property good for?


From: Werner LEMBERG
Subject: Re: What is the `bracket-text` property good for?
Date: Thu, 12 Dec 2024 13:47:02 +0000 (UTC)

> Actually, the descriprion is wrong, imho.
>
>   (bracket-text ,ly:grob? "The text for an analysis bracket.")
>
> should become something at he lines of:
>
>   (bracket-text ,ly:grob? "The text-grob for an analysis bracket.")

I plan to change the docstring to

  A pointer to the text grob of an analysis bracket.

>> Can you please give an example how to use it (or a link to
>> something similar)?
> 
> I took horizontal-bracket-texted.ly from our regtests and added
> functionality in \layout to emphasize some brackets with thickness
> and color relying on the 'text.  [...]

Thanks a lot!

>> As mentioned earlier, neither `bracket-text` nor `pedal-text` are
>> used anywhere in the code.
> 
> Well, yes. Though if you go through those internal properties then you
> will notice that a plethora of them are not used in the .scm-files.
> Some examples:
> accidental-grobs
> all-elements
> concurrent-hairpins
> ...

I now wonder whether it make sense to orthogonalize the property names
(to a certain extent).  For example, I can imagine that all properties
that are pointers to grobs have a final `-grob` or `-grobs` in their
names.  Thus:

  bracket-text-grob
  all-element-grobs
  concurrent-hairpin-grobs
  ...

> For pedal-text the description is misleading, though - I'd go for
> text-grob as well.

I plan to use

  A pointer to the text grob of a mixed-style piano pedal.


     Werner



reply via email to

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