lilypond-user
[Top][All Lists]
Advanced

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

Re: mid-measure key change


From: Alex Loomis
Subject: Re: mid-measure key change
Date: Sun, 15 Dec 2013 22:37:16 -0500

If this is something you're composing, general practice would suggest you move it to the beginning or end of the bar. That said, you could make time signatures and bar lines temporarily invisible and represent that internally as two bars of 2/2.

\version "2.16.2"


global = {

\key c \major

\numericTimeSignature

\time 4/2

\hideNotes \grace g

\unHideNotes

\once \override Score.TimeSignature #'transparent = ##t

\time 2/2

\override TupletBracket #'bracket-visibility = ##f

\override TupletNumber #'stencil = ##f

}


rightOne = \relative c'' {

\global

g1 \key ges \major c,1\fz

}


rightTwo = \relative c'' {

\global

\times 2/3 {

r8 g, bes d bes g bes g bes d bes g

\once \override Score.BarLine #'color = #white

\bar "'"

\change Staff = "left" \stemUp

aes\rest c, ges' beses ges c, ges' c, ges' beses ges c, }

}


left = \relative c' {

\global

bes,,1 ( \key ges \major eeses )

}


\score {

\new PianoStaff <<

\new Staff = "right" << \rightOne \\ \rightTwo >>

\new Staff = "left" { \clef bass \left }

>>

\layout { }

}





On Sun, Dec 15, 2013 at 9:50 PM, Mark Stephen Mrotek <address@hidden> wrote:

Hello,

 

The key change in the upper staff can be properly aligned (after the “g”) if I use \bar '' '' and \break. This disrupts Lilypond’s auto-spacing.

 

Is another solution possible?

 

Thank you.

 

Mark


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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