Re: Placement of new clef within measure

Hans Aikema <[email protected]> Sun, 5 Jul 2026 01:07:27 +0200
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>


Op 5 jul 2026 om 00:16 heeft Peter Payzant <[email protected]> het volgende geschreven:



Hello, William-

Thanks for the suggestion. Looking at that list of functions, I see
that LilyPond also has a function

\breakAlignInsert clef after staff-bar

which looks ideal. Here's the modified LilyPond file:

\version "2.24.3"

\relative c {

\time 4/4

\clef "bass"

a b c d |

\clef alto e f g a

}

\layout {

\context {

\Score

\breakAlignInsert clef after staff-bar

}

}

Unfortunately, this failed to engrave, generating the error
messages

Which is logical as you appear to use Lilypond 2.24 and \breakAlignInsert is a new function that is only available in 2.25 and 2.26 versions of lilypond

LilyPond Changes

lilypond.org

https://lilypond.org/doc/v2.26/Documentation/changes-big-page.html#miscellaneous-improvements

Desktop/ Clefs.ly:11:6 : error: unknown escaped string:
`\breakAlignInsert'

\breakAlignInsert clef after staff-bar

Desktop/ Clefs.ly:11:24 : error: syntax error, unexpected SYMBOL,
expecting '='

\breakAlignInsert

clef after staff-bar

Desktop/ Clefs.ly:13:2 : error: Unfinished main input

I'm still near the start of the learning curve, so this mat be due
to a lack of understanding on my part.

- - - Peter

On 2026-07-04 14:42, William Rehwinkel
wrote:

Dear
Peter,

See if this works for you, using \breakAlignInsert. . .
favicon.ico (image/vnd.microsoft.icon, 318 B) - not displayed