[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sectionLabel with box - global formatting
From: |
Stephan Schöll |
Subject: |
sectionLabel with box - global formatting |
Date: |
Sat, 1 Apr 2023 21:02:10 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 |
Hi Ponders
In earlier scores of mine I used
/mark /markup { /box "Mark Label" }
Now that I'm migrating (some of) those to /sectionLabel (yes, I can
simply replace /mark by /sectionLabel) I wonder how I could add the box
globally. I know that I could accomplish that with a substitution
function like
sctLbl =
#(define-music-function
(label)
(markup?)
#{
\sectionLabel \markup {\box #label }
#})
\relative c' { \sctLbl "Hello" c d e f }
But my programmer's gut feeling tells me that a configuration approach
would be the preferred one. I guess the solution looks something like this
\layout {
\context {
\Score
\set Score.markFormatter = ...
}
}
TIA
Stephan
- sectionLabel with box - global formatting,
Stephan Schöll <=