On Sun, Mar 29, 2026 at 7:44 AM Michael Scheer <[email protected]> wrote:

> Hi Lilypond users,
>
> I am currently experimenting with colored background markers (red
> semitransparent box behind the staff lines), to make repetitions more
> visible. A minimal example is below. It will not be optimal, a)
> \startGroup \stopGroup around notes is a bit unintuitive for future
> use, but as of now I don't know a way other than spanners. Ideally I
> would have to write down just one command and bind my markers to the
> bar lines.
>
> I have to look more into Scheme - and here's the issue. The arguments
> x-left and x-right don't make their way into
> "HorizontalBracket.shorten-pair".
>

The arguments are not evaluated because you have them in a quoted Scheme
expression.

You need to quasiquote the expression, and evaluate the arguments by
preceding them with a comma.


>
>       \once\override HorizontalBracket.shorten-pair = #'( x-left .
> x-right) #})
>

needs to be

\once \override HorizontalBracket.shorten-pair = #`( ,x-left . , x-right)
#})

Note the use of ` instead of ' before the Scheme pair.

See https://www.gnu.org/software/guile/manual/r5rs/Quasiquotation.html for
more explanation of quasiquote

HTH,

Carl

Reply via email to