Le jeudi 07 septembre 2023 à 17:31 -0400, brin solomon a écrit :
> I'm using a modified version of this LSR snippet
> https://lsr.di.unimi.it/LSR/Item?id=900 to re-engrave a historical score that
> uses a curly-style bass clef. The clef shape is a little wider than a standard
> bass clef, and this means that it sometimes collides with notes and rests when
> used in actual music. After looking at the internals manual, I want to try
> adjusting the horizontal-skylines property, but I can't find any documentation
> on what a "pair of skylines" should look like (as opposed to a boolean, pair
> of numbers, etc). Can anyone point me in the right direction so I can give
> this custom clef a little more space? Is there a different approach that would
> be better here?

A skyline pair is, well, a pair of skylines. (In current versions, anyway; there
used to be special "skyline pair" objects, but now they're plain normal Scheme
pairs of skylines.) And if you want to visualize what a skyline is, you can do 

\layout {
  \context {
    \Score
    \override Clef.show-horizontal-skylines = ##t
    \override Clef.show-vertical-skylines = ##t
  }
}


to see that they're basically object outlines in a given direction.
You can construct them with functions like

ly:make-skylines
ly:skylines-for-stencil
ly:skyline-pad

of which the documentation is at

https://lilypond.org/doc/v2.24/Documentation/internals/scheme-functions

With that being said, this will be inconvenient; I think it would
be much simpler to just add the padding to your shape itself.
(For example, construct it as \markup \with-dimensions #... #... \path ...)

Jean

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to