Re: Placement of new clef within measure

William Rehwinkel via LilyPond user discussion <[email protected]> Sat, 4 Jul 2026 13:42:37 -0400
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>
Dear Peter,

See if this works for you, using \breakAlignInsert. See 
https://lilypond.org/doc/v2.26/Documentation/notation/available-music-functions

-William

\version "2.26.0"
\relative c {
   \time 4/4
   \clef "bass"
   a b c d |
   \clef alto e f g a
}
\layout {
   \context {
     \Score
     \breakAlignInsert #begin-of-line-invisible clef after staff-bar
   }
}


On 7/4/26 1:05 PM, Peter Payzant wrote:
> Hi-
> 
> When there is a clef change within a piece of music, like this:
> 
>     \version "2.24.3"
>     \relative c {
>        \time 4/4
>        \clef "bass"
>        a b c d |
>        \clef alto e f g a
>     }
> 
> 
> 
> LilyPond places the new clef at the end of the previous measure. Is 
> there any way to have the new clef occur at the beginning of the current 
> measure?
> 
> Thanks
> 
> Peter
>