lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `\afterGrace` and clef problem


From: Lukas-Fabian Moser
Subject: Re: `\afterGrace` and clef problem
Date: Mon, 13 Feb 2023 10:40:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

Hi Werner,

Alternatively you may try to use \afterGrace to insert the \clef
before the bar line, although this would probably require some
manual spacing too.
This doesn't work at all: `\afterGrace` doesn't accept a clef, as the
image shows.

afterGrace is defined as

#(define-music-function (fraction main grace) ((scale?) ly:music? ly:music?) ...)

You write

\afterGrace 1 { s8 \clef "bass" } | c,1

but 1 is a valid scale? because of

(define-public (scale? x)
  (or (and (rational? x) (exact? x) (not (negative? x)))
      (fraction? x)
      (and (ly:moment? x) (scale? (ly:moment-main x)))))

in scm/c++.scm.

Lukas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]