Alex Loomis,

 

Thank you for your reply and the instructions. I see that it works. I shall
need some time to  connect each command to its result in the score.

 

Mark

 

From: [email protected] [mailto:[email protected]] On Behalf Of
Alex Loomis
Sent: Sunday, December 15, 2013 7:37 PM
To: Mark Stephen Mrotek
Cc: [email protected]
Subject: Re: mid-measure key change

 

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 <[email protected]>
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
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

 

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to