|
From: | Jean Abou Samra |
Subject: | Re: Displaying StaffGroupBar after tweak |
Date: | Sun, 25 Jun 2023 20:38:18 +0200 |
User-agent: | Evolution 3.48.3 (3.48.3-1.fc38) |
Le vendredi 16 juin 2023 à 15:24 +0200, Jean Abou Samra a écrit :
I don't have the time to find a solution right now, but for a start, here is already a more "M" MWE: [...]
This appears to work better:
\version "2.24.1"
#(define (Workaround_engraver context)
(let ((bars '())
(staff-symbol #f)
(new-staff-symbol #f))
(make-engraver
(acknowledgers
((staff-symbol-interface engraver grob source-engraver)
(set! new-staff-symbol grob))
((bar-line-interface engraver grob source-engraver)
(set! bars (cons grob bars))))
((stop-translation-timestep engraver)
(for-each (lambda (bar)
(ly:grob-set-object! bar 'staff-symbol (or staff-symbol new-staff-symbol)))
bars)
(when new-staff-symbol
(set! staff-symbol new-staff-symbol)
(set! new-staff-symbol #f))
(set! bars '())))))
kHide = {
\stopStaff
\override Staff.StaffSymbol.line-count= 1
\startStaff
}
\new StaffGroup <<
\new Staff \with { \consists #Workaround_engraver } { R1 R1 \break \kHide R1 R1 }
\new Staff { R1 R1 R1 R1 }
>>
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] | Current Thread | [Next in Thread] |