Re: Box around notes for individual instruments inside a Staff group
Tina Petzel <[email protected]> Tue, 21 Jul 2026 15:35:34 +0200
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <[email protected]> |
--nextPartfe38wODtSEq_eMWrmlGiqw Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Tina Petzel <[email protected]> To: [email protected] Subject: Re: Box around notes for individual instruments inside a Staff group Date: Tue, 21 Jul 2026 15:35:34 +0200 Message-ID: <[email protected]> In-Reply-To: <[email protected]> References: <[email protected]> MIME-Version: 1.0 Hi Juan, > So far, it has function great when outputting instrument parts, but when > I join them, each box is being drawn for the entire group (see image > below where boxes should be surrounding the black-head groups). As the > code is really obscure for me, I don't really see if there is an error > on me while notating the boxes, or if it's the code that takes into > account everything that is happening inside the staff group. Could > anyone tell me if grouping is done by default? If it is, what should I > need to alter in order to make the box adjust per instrument? move the engraver from score to staff: \context { \Staff \consists \musicBoxerEngraver % for spans \consists \boxEngraver } You might also need something like `\override Box.Y-extent = #'(+inf.0 . -inf.0)` to avoid outside-staff-handling to shift around stuff inside the box. Cheers, Tina --nextPartfe38wODtSEq_eMWrmlGiqw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQS0sdUK2Lu8of48K2+FHhaCPe7BywUCal91pgAKCRCFHhaCPe7B y0xVAQDp0a4BoPq2PJ2L+H1viSSvMGZbYI3XyQfkDyPFal4ybQEA2MTwC7jCGcrj ehrQ5L8sKdUGPCTBsIlv3/VjnmCjiQ0= =iy4N -----END PGP SIGNATURE----- --nextPartfe38wODtSEq_eMWrmlGiqw--