Astro integration / how to maintain reasonable staff-staff spacing when `crop` is enabled

"Ky Decker" <[email protected]> Sun, 19 Jul 2026 11:26:15 -0400
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>
--f0d1bebf1e984f376ccb8a3214004816bae63910
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi!

I'm building an integration for Astro which allows compiling and displaying LilyPond scores:

https://lilypond.ky.fyi

Currently I'm setting `crop` on all scores by default in order to help with responsive web design and prevent unnecessary whitespace on webpages.

However, the `crop` default causes spacing between staff groups to be overly tight, see examples:

https://lilypond.ky.fyi/examples/

Is there any way to reserve a reasonable amount of space between staves when enabling `crop`?

Ky Decker
--f0d1bebf1e984f376ccb8a3214004816bae63910
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title></head><body><div>Hi!</div><di=
v><br></div><div>I'm building an integration for Astro which allows comp=
iling and displaying LilyPond scores:</div><div><br></div><div><a href=3D=
"https://lilypond.ky.fyi/" rel=3D"noopener noreferrer" target=3D"_blank"=
 title=3D"https://lilypond.ky.fyi/">https://lilypond.ky.fyi</a></div><di=
v><br></div><div>Currently I'm setting `crop` on all scores by default i=
n order to help with responsive web design and prevent unnecessary white=
space on webpages.</div><div><br></div><div>However, the `crop` default =
causes spacing between staff groups to be overly tight, see examples:</d=
iv><div><br></div><div><a href=3D"https://lilypond.ky.fyi/examples/" rel=
=3D"noopener noreferrer" target=3D"_blank" title=3D"https://lilypond.ky.=
fyi/examples/">https://lilypond.ky.fyi/examples/</a></div><div><br></div=
><div>Is there any way to reserve a reasonable amount of space between s=
taves when enabling `crop`?</div><div><br></div><div>Ky Decker</div></bo=
dy></html>
--f0d1bebf1e984f376ccb8a3214004816bae63910--