%...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+.... \version "2.26" \include "globals.ily" \header { title = "Sonata in C major" opus = "K.270" source = "https://vmirror.imslp.org/files/imglnks/usimg/7/7e/IMSLP914434-PMLP511238-E4551_37-41-Scarlatti_-_Keyboard_Sonatas,_L.451-463.pdf" } % % Positions and shapes % slurShapeA = \shape #'((0.3 . 0) (0.3 . 0) (0 . 0) (0 . 0)) \etc slurShapeB = \shape #'((0.3 . 0) (0.3 . 0) (0 . 0) (0 . 0)) \etc slurShapeC = \shape #'((0 . -0.5) (0 . 0.5) (0 . 0.5) (0 . -1)) \etc slurShapeD = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 2.5) (0 . 2.5) (0 . 2.5) (0 . 2.5)) ) \etc slurShapeE = \shape #'((0 . 0.3) (0 . 0.3) (0 . 0) (0 . 0)) \etc slurShapeF = \shape #'((0 . 1) (0 . -0.5) (0 . -0.5) (0 . 0)) \etc slurShapeG = \shape #'((0 . -1.5) (0 . 1) (0 . 1) (0 . -1.5)) \etc slurShapeH = \shape #'((0 . -2) (0 . 0.5) (0 . 0.5) (0 . -1)) \etc slurShapeI = \shape #'( ((-0.3 . 2) (0 . 1.5) (0 . 0.5) (0 . 0)) ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ) \etc tieShapeA = \shape #'((-1 . 0) (-1 . 0) (0 . 0.5) (-0.7 . 0.3)) \etc tieShapeB = \shape #'((-1 . 0) (-1 . 0) (0 . 0.5) (-0.7 . 0.3)) \etc tieShapeC = \shape #'((-1 . 0) (-1 . 0) (0 . 0.5) (-0.7 . 0.3)) \etc % % Music % global = { \time 2/2 \key c \major } rightHandUpper = \relative { \repeat volta 2 { e'8.(\prall d16 e8 f g4-- g--) | c8.(\prall b16 c8 d e4-- e--) | 4( ) | 8.( 16 8.) 16-. \appoggiatura { q8 } 2 | c'8.(\prall b16 c8 d e4-- e--) | e8.(\prall d16 e8 f g4-- g--) | 4( ) | 8.( 16 8.) 16-. \appoggiatura { q8 } 2 | \barNumberCheck 9 c8.(\prall b16 c8 d e4-- e--) | % First beat, prall in urtext, missing in source e8.(\prall d16 e8 f g4-- g--) | g8.(\prall f16 g8 a bf4-- bf--) | \tuplet 3/2 4 { c8( bf a g[ f e)] } \appoggiatura { e4 } f2 | \acciaccatura { g8 } f8([ e)] f16( gs a b! f4-- e--) | \acciaccatura { e8 } \tuplet 3/2 { d([ cs d] } cs16 d e f d4-- c--) | \acciaccatura { b8 } \tupletOff \tuplet 3/2 { a([ gs a] } b16 c d e d4-- c--) | \appoggiatura { c16 } b4.(\prall a8 g!4) r | \barNumberCheck 17 b8.(\prall a16 b8 c d4-- d--) | g4-- ( ) | b8.(\prall a16 b8 c d4-- d--) | e8.(\prall d16 e8 f g4-- g--) | c4-- ( ) | e4(\prall g) d(\prall g) | e4(\prall g) d(\prall g) | c,4(\prall g') b,(\prall g') | \barNumberCheck 25 \osp #'(2.5 . 0) a,4(\prall g') \osp #'(2.5 . 0) g,(\prall g') | \osp #'(2.5 . 0) f,4(\prall g') \osp #'(2.5 . 0) e,(\prall c') | e,4( d8.\prall c16) \appoggiatura { c8 } d4 r4\fermata | \bar "||" \key ef \major g8.(\prall f16 g8 af bf4-- bf--) | ef8.(\prall d16 ef8 f g4-- g--) | 4( ) | 8.( 16 8.) 16-. \appoggiatura { q8 } 2 | ef'8.(\prall d16 ef8 f g4-- g--) | \barNumberCheck 33 g8.(\prall f16 g8 af bf4-- bf--) | 4( ) | 8.( 16 8.) 16-. \appoggiatura { q8 } 2 | ef8.(\prall d16 ef8 f g4-- c--) | \voiceOne c4( b2) g4-- | af2. g4-- | g2 \oneVoice \appoggiatura { d4 } ef2 | \acciaccatura { f8 } ef8.( d16 ef8 fs) \voiceOne fs4( g) | \barNumberCheck 41 \acciaccatura { a8 } g8.( fs16 g8 a) a4( bf) | bf4( a) \acciaccatura { a8 } g4( fs8 g) | \appoggiatura { g16 } fs4.(\prall e8 d4) \oneVoice r | \bar "||" \key c \major 8.( 16 8 4) -- | 8.( 16 8 4) -- | 8.( 16 8 4) -- | \voiceOne \acciaccatura { c'8 } b8.( a16 g8. fs16) \oneVoice \appoggiatura { fs4 } g2 | b,8.(\prall a16 b8 c d4-- d--) | \barNumberCheck 49 g4-- ( ) | b8.(\prall a16 b8 c d4-- g--) | e4\prall ^\trillSharp g-- c,\prall e-- | a,4\prall c-- fs,\prall fs'-- | d4\prall fs-- b,\prall d-- | g,4\prall b-- e,\prall ^\trillSharp e'-- | c4\prall e-- a,\prall c-- | fs,8.( g16 a32 b c d e8~ \tupletOn \tuplet 3/2 { e8 d c } \tupletOff \tuplet 3/2 { b[ a g] } | \barNumberCheck 57 fs8.)-\slurShapeA ( g16 a32 b c d e8~ \tuplet 3/2 4 { e8 d c b[ a g]) } | \appoggiatura { g16 } fs4.-\slurShapeB (\prall e8 d4) c'-- | \tuplet 3/2 4 { b8-\slurShapeC ( c d c[ b a] } g4-- a---\insideSlur \prall | g4--) \tuplet 3/2 { g'8( d b } c4-- a'--) | r4 \tuplet 3/2 { g8( d b } c4-- a'--) | r4 \tuplet 3/2 { b,8( c d } a2~ | a4) \tuplet 3/2 { b8( c d } a2~ | a4) \tuplet 3/2 { c8( d e } a,4) \tuplet 3/2 { fs'8( g a } | \barNumberCheck 65 a,4) \tuplet 3/2 { b8-\slurShapeD ( c d } 4-- -- | g4--) g'-- \appoggiatura { fs8 } e4 \appoggiatura { d8 } c4 | \appoggiatura { b8 } a4 \tuplet 3/2 { b8( c d } g,4-- fs--) | r4 g-- \appoggiatura { fs8 } e4 \appoggiatura { d8 } c4 | \appoggiatura { b8 } a4 \tuplet 3/2 { b8( c d } g,4-- fs--) | \appoggiatura { fs4 } g2 r | } \repeat volta 2 { g'8.(\prall fs16 g8 a b4-- b--) | b8.(\prall a16 b8 c d4-- d--) | \barNumberCheck 73 \bar "||" \key ef \major bf'4( g ef df~ | df4 c8. bf16) \appoggiatura { bf8 } c2 | c8.(\prall ^\trillFlat bf16 c8 df ef4-- ef--) | ef8.(\prall df16 ef8 f gf4-- gf--) | 4( ) q( ) | f8.( ef16 df8. c16) \appoggiatura { c8 } df2 | f8.(\prall e16 f8 g) \voiceOne g4( af) | \oneVoice g8.(\prall f16 g8 af) \voiceOne af4( bf) | \barNumberCheck 81 \oneVoice e,8.(\prall d!16 e8 f) \voiceOne f4( g) | \oneVoice c,8.(\prall b16 c8 e) \voiceOne e4( f) | \oneVoice bf,8.(\prall af16 bf8 c) \voiceOne e4-\slurShapeI ( f | \oneVoice 4) c-\slurShapeE (~ \stemDown c8 bf af g) | \stemNeutral af8.(\prall g16 af8 b) \voiceOne b4( c) | d!4.-\slurShapeF ( ef16 f \oneVoice 4-- --) | ef8.( d16 ef8-- g--) d8.( c16 d8-- g--) | c,4-- af'(~ \tuplet 3/2 4 { af8 g f ef[ d c] } | \barNumberCheck 89 b4) g'(~ \tuplet 3/2 4 { g8 f ef d[ c bf] } | c4) af'(~ \tuplet 3/2 4 { af8 g f ef[ d c]) } | \appoggiatura { c16 } b4.(\prall a8 g4) r | \bar "||" \key c \major b8.(\prall a16 b8 c d4-- d--) | g4-- ( ) | b8.(\prall a16 b8 c d4-- d--) | e8.(\prall d16 e8 f g4-- g--) | c4-- ( ) | \barNumberCheck 97 e8.(\prall d16 e8 f g4--) c-- | a4\prall c-- f,\prall a-- | d,4\prall f-- b,\prall b'-- | g4\prall b-- e,\prall g-- | c,4\prall e-- a,\prall a'-- | f4\prall a-- d,\prall f-- | b,8.-\slurShapeH ( c16 d32 e f g a8~ \tupletOn \tuplet 3/2 { a8 g f } \tupletOff \tuplet 3/2 { e[ d c] } | b8.)-\slurShapeG ( c16 d32 e f g a8~ \tuplet 3/2 4 { a8 g f e[ d c]) } | \barNumberCheck 105 \appoggiatura { c16 } b4.(\prall a8 g4) f'-- | \tuplet 3/2 4 { e8( f g f[ e d] } c4 d\prall | c4--) \tuplet 3/2 { c'8( g e } f4-- d'--) | r4 \tuplet 3/2 { c8( g e } f4-- d'--) | r4 \tuplet 3/2 { e,8( f g } d2~ | d4) \tuplet 3/2 { e8( f g } d2~ | d4) \tuplet 3/2 { f8( g a } d,4) \tuplet 3/2 { b'8( c d } | d,4) \tuplet 3/2 { e8( f g } 4-- -- | \barNumberCheck 113 c4--) c'-- \appoggiatura { b8 } a4 \appoggiatura { g8 } f4 | \appoggiatura { e8 } d4 \tuplet 3/2 { e8( f g } c,4-- b--) | r4 c-- \appoggiatura { b8 } a4 \appoggiatura { g8 } f4 | \appoggiatura { e8 } d4 \tuplet 3/2 { e8( f g } c,4-- b--) | \appoggiatura { b4 } c2 r | } } rightHandLower = \relative { \repeat volta 2 { s1*32 | \barNumberCheck 33 s1*4 | \voiceFour d''4( ef f) c-- | b4( c d) ef-- | f4 \oneVoice \acciaccatura { f8 } ef( d) s2 | s2 \voiceFour ef | \barNumberCheck 41 d2 d | cs2 cs| d4 s2. | \key c \major s1*3 | g4 s2. | s1 | \barNumberCheck 49 s1*16 | \barNumberCheck 65 s1*6 | } \repeat volta 2 { s1*2 | \barNumberCheck 73 \key ef \major s1*6 | s2 e | s2 f | \barNumberCheck 81 s2 df | s2 c | s2 ~ | \hideNoteHead df4 s2. | s2 g, | f2 s | s1*2 | \barNumberCheck 89 s1*24 | \barNumberCheck 113 s1*5 | } } rightHand = { \global << \new Voice \rightHandUpper \new Voice \rightHandLower >> } leftHandUpper = \relative { \repeat volta 2 { c'8.(\prall b16 c8 d \voiceThree e4-- e--) | e8.(\prall f16 e8 d c4-- c--) | s1*2 | \clef treble e8.(\prall d16 e8 f g4-- g--) | g8.(\prall a16 g8 f e4-- e--) | s1*2 | \barNumberCheck 9 s1*8 | \barNumberCheck 17 g8.(\prall fs16 g8 a b4-- b--) | s1*7 | \barNumberCheck 25 s1*4 | g8.(\prall af16 g8 f ef4-- ef--) | s1*2 | g8.(\prall f16 g8 af bf4-- bf--) | \barNumberCheck 33 bf8.(\prall c16 bf8 af g4-- g--) | s1*7 | \barNumberCheck 41 s1*16 | \barNumberCheck 57 s1*2 | s2 \clef bass 4-- a-- | s2. \hideNoteHead c4-\tieShapeA _~ | c4( b) s \hideNoteHead c_~ | c4( b) s \hideNoteHead g-\tieShapeB _~ | g4( fs) s \hideNoteHead g-\tieShapeB _~ | g4( fs) s2 | \barNumberCheck 65 s1*6 | } \repeat volta 2 { b8.(\prall a16 b8 c d4-- d--) | d8.(\prall c16 d8 e f4-- f--) | \barNumberCheck 73 \key ef \major s1*3 | \clef treble c'8.(\prall bf16 c8 df ef4-- ef--) | s1*4 | \barNumberCheck 81 s1*8 | \barNumberCheck 89 s1*3 | \key c \major g,8.(\prall fs16 g8 a b4-- b--) | s1*4 | \barNumberCheck 97 s1*8 | \barNumberCheck 105 s1*2 | s2. \hideNoteHead f4_~ | f4( e) s \hideNoteHead f4_~ | f4( e) s \clef bass \hideNoteHead c-\tieShapeC _~ | c4( b) s \hideNoteHead c-\tieShapeC _~ | c4( b) s2 | s1 | \barNumberCheck 113 s1*5 | } } leftHandLower = \relative { \repeat volta 2 { s2 \voiceTwo c'2 | c2 s | \addTenuto { \oneVoice c,,4 c'' c,, c'' } | c,,2 r | \clef treble \voiceTwo c''1 | c1 | \addTenuto { \clef bass \oneVoice c,,4 c'' c,, c'' } | c,,2 r | \barNumberCheck 9 R1 | \addTenuto { 4 q q q | 4 q q q | } 2 r | \addTenuto { q4 q q | 4 q q q | } q2. 4 | \osp #'(0 . 2.5) g2( g,4) r | \barNumberCheck 17 \clef treble s2 \voiceTwo g'' | \addTenuto { \clef bass \oneVoice g,,4 g'' g,, g'' } | g,,2 r | \clef treble c''8.(\prall b16 c8 d e4-- e--) | \addTenuto { \clef bass c,,4 c'' c,, c'' | c,,4 c'' c,, b'' | c,,4 c'' b,, b'' | a,,4 a'' g,, g'' | \barNumberCheck 25 f,,4 f'' e,, e'' | d,,4 d'' c,, c'' | } g,2 r\fermata | \key ef \major \clef treble ef''8.(\prall d16 ef8 f g4-- g--) | \voiceTwo ef2 s | \addTenuto { \clef bass \oneVoice ef,,4 ef'' ef,, ef'' } | ef,,2 r | \clef treble \voiceTwo ef''1 | \barNumberCheck 33 ef1 | \addTenuto { \clef bass \oneVoice ef,,4 ef'' ef,, ef'' } | ef,,2 r | \addTenuto { 4 q q q | 4 q q | 4 q q q | } 4-- \osp #'(0 . 2.5) c( c,) r | \addTenuto { 4 q q q | \barNumberCheck 41 4 q q q | 4 q q q | } d2( d,4) r | \key c \major \addTenuto { d'4 d,, d'' d,, | d''4 d,, d'' d,, | d''4 d,, d'' d,, | } g2 r | \clef treble g''8.(\prall fs16 g8 a b4-- b--) | \barNumberCheck 49 \addTenuto { \clef bass g,,4 g'' g,, g'' | g,,4 g'' b,, b'' | c,,4 c'' a,, a'' | fs,,4 fs'' d,, d'' | b,4 b'' g,, g'' | e,,4 e'' c,, c'' | a,4 a'' fs,, fs'' | } d,,2. 4-- | \barNumberCheck 57 2. 4-- | 2. fs'4-- | \osp #'(1 . 0) g4_( \voiceTwo d2) | \oneVoice 2. 4_(~ | \voiceTwo 2) \oneVoice r4 _(~ | \voiceTwo 2) \oneVoice r4 _(~ | \voiceTwo 2) \oneVoice r4 _(~ | \voiceTwo 2) \oneVoice r4 ~ | \barNumberCheck 65 q4 c_( d-- d,-- | 4--) \osp #'(-2.5 . 0) b'_( c a | fs4 g d-- d,-- | g4--) \osp #'(-2 . 0) e'_( c a | fs4 g d'-- d,-- | 2) r | } \repeat volta 2 { \voiceTwo g''1 | g1 | \barNumberCheck 73 \key ef \major \addTenuto { \oneVoice 4\sd q q q | } \osp #'(0 . 3) af2(\su af,4) r | \clef treble af''8.(\prall g16 af8 bf c4-- c--) | \voiceTwo af2 af | \addTenuto { \clef bass \oneVoice af,,4 af'' af,, af'' } | 2 r | \addTenuto { df'4 \clef treble df'' \clef bass c,, \clef treble c'' | \clef bass bf,,4 bf'' g,, g'' | \barNumberCheck 81 c,,4 c'' bf,, bf'' | af,,4 af'' f,, f'' | g,,4 g'' f,, f'' | e,,4 e'' c,, c'' | f,,4 f'' ef,,! ef''! | d,,4 d'' g,, g'' | c,,4 c'' bf,, bf'' | af,,4 af'' f,, f'' | \barNumberCheck 89 g,,4 g'' ef,, ef'' | af,,4 af'' f,, f'' | } g,,2 r | \key c \major \clef treble s2 \voiceTwo g'' | \addTenuto { \clef bass \oneVoice g,,4 g'' g,, g'' } | g,,2 r | \clef treble c''8.(\prall b16 c8 d e4-- e--) | \addTenuto { \clef bass c,,4 c'' c,, c'' | \barNumberCheck 97 c,,4 c'' e,, \clef treble e'' | \clef bass f,,4 \clef treble f'' \clef bass d,, \clef treble d'' | \clef bass b,,4 b'' g,, g'' | e,4 \clef treble e'' \clef bass c,, \clef treble c'' | \clef bass a,,4 a'' f,, f'' | d,4 \clef treble d'' \clef bass b,, b'' | } g,,2. 4-- | 2. 4-- | \barNumberCheck 105 2. 4-- | c4( f g-- g,--) | 2. \clef treble 4_(^~ | \voiceTwo 2) \oneVoice r4 4_(^~ | \voiceTwo 2) \oneVoice r4 \clef bass _(~ | 2) r4 _(~ | 2) r4 ~ | q4 f_( g-- g,-- | \barNumberCheck 113 c4) \osp #'(0 . 2.5) e'( f d | b4 c g-- g,-- | c4--) \osp #'(-0.5 . 0) e_( f d | b4 c g'-- g,-- | 2) r | } } leftHand = { \global \clef bass << \new Voice \leftHandUpper \new Voice \leftHandLower >> } dynamics = { \override Hairpin.after-line-breaking = ##f \override DynamicTextSpanner.style = #'none \repeat volta 2 { s1\p | s1*3 | s1\pp | s1*3 | \barNumberCheck 9 s1-\tweak Y-offset #-1 \p | s1\cresc | s1 | s2\mf \grace { s4\> } s2\! | s1\p | s1*3 | \barNumberCheck 17 s1\p | s1*4 | s1-\tweak Y-offset #-5 \p | s1 | s1\cresc | \barNumberCheck 25 s1*2 | s1-\tweak Y-offset #-3 \f | % key ef major s1\p | s1*3 | s1\pp | \barNumberCheck 33 s1*3 | s2.\p\< s4\! | s1\mf | s1*2 | s2\p s\cresc | \barNumberCheck 41 s1 | s1\mf | s1 | % key c major s1\p | s1 | s2.\< s4\! | s2\mf \grace { s4\> } s2\! | s1\p | \barNumberCheck 49 s1*2 | s1\mf | s1*4 | s4.\< s8-\tag midi \f \! s4\> \tuplet 3/2 { s4 s8\! } | \barNumberCheck 57 s4.\< s8\! s4\> \tuplet 3/2 { s4 s8\! } | s1-\tweak Y-offset #-1.5 \mf | s1 | s4 s2\p s4\> | s4\! s2\p s4\> | s4\! s2\mf s4\> | s4\! s2\p s4\> | s4\! s2.\cresc | \barNumberCheck 65 s4 s2.\mf | s4 s2.\p | s1 | s4 s2.\mf | s1*2 | } \repeat volta 2 { s1-\tweak Y-offset #0.5 \p | s1\cresc | \barNumberCheck 73 % key ef major s1\mf | s2 \grace { s8-\tweak Y-offset #-1 \> } s2\! | s1-\tweak Y-offset #-1 \p | s1-\tweak Y-offset #1 \cresc | s1\mf | s2 \grace { s8\> } s2\! | s2\mf s4\> s\! | s2 s4\> s\! | \barNumberCheck 81 s2 s4\> s\! | s2 s4\> s\! | s2 s\> | s1\! | s1*2 | s1\p | s4 s2.\mf | \barNumberCheck 89 s1*2 | s2-\tweak Y-offset #-2 \> s\! | % key c major s1\p | s1*4 | \barNumberCheck 97 \override DynamicLineSpanner.Y-offset = #-4.5 s1\cresc | s1\mf | s1*4 | s4.\< s8\! s4-\tag midi \f \> \tuplet 3/2 { s4 s8\! } | s4.\< s8\! s4\> \tuplet 3/2 { s4 s8\! } | \barNumberCheck 105 \override DynamicLineSpanner.Y-offset = #1 \grace { s16\mf } s1 | s1 | s4 s2\p s4\> | s4\! s2\p s4-\alterBroken Y-offset #'(0 -1) \> | s4\! s2-\tweak Y-offset #-1.5 \mf s4\> | s4\! s2\p s4\> | s4\! s2.\cresc | s4 s2.-\tweak Y-offset #-1 \mf | \barNumberCheck 113 s4 s2.\p | s1 | s4 s2.-\tweak Y-offset #-2 \mf | s1*2 | } } tempi = { \repeat volta 2 { \tempo "Andante" 2 = 66 s1*24 | \barNumberCheck 25 s1*2 | \set Score.tempoHideNote = ##t s2. \tempo 4 = 60 s4 | \tempo 2 = 66 s1*5 | \barNumberCheck 33 s1*32 | \barNumberCheck 65 s1*4 | s4 \tempo 2 = 60 s \tempo 2 = 56 s \tempo 2 = 52 s | \tempo 2 = 48 s1 | } \repeat volta 2 { \tempo 2 = 66 s1*2 | \barNumberCheck 73 s1*40 | \barNumberCheck 113 s1*3 | \tag layout { s1*2 | } \tag midi { \alternative { { s4 \tempo 2 = 60 s \tempo 2 = 56 s \tempo 2 = 52 s | \tempo 2 = 48 s1 | } { s4 \tempo 2 = 58 s \tempo 2 = 52 s \tempo 2 = 46 s | \tempo 2 = 40 s1 | } } } } } forceBreaks = { % page 1 s1*4 \break s1*5 \break s1*4 \break \grace { s8 } s1*4 \break s1*5 \break s1*5 \pageBreak % page 2 s1*4 \break s1*4 \break s1*4 \break \grace { s8 } s1*4 \break s1*5 \pageBreak % page 3 s1*5 \break s1*4 \break \grace { s16 } s1*4 \break s1*4 \break s1*5 \pageBreak % page 4 s1*5 \break s1*4 \break s1*4 \break s1*4 \break s1*4 \pageBreak % page 5 s1*5 \break s1*5 \break s1*3 \break \grace { s16 } s1*4 \break s1*4 \break } \score { \keepWithTag layout \new PianoStaff \with { \override StaffGrouper.staff-staff-spacing = #'((basic-distance . 9) (padding . 1)) } << \new Staff = "upper" \rightHand \new Dynamics \dynamics \new Staff = "lower" \leftHand \new Dynamics \tempi \new Devnull \forceBreaks >> \layout {} } \include "articulate.ly" \score { \keepWithTag midi \articulate << \new Staff = "upper" << \rightHand \dynamics \tempi >> \new Staff = "lower" << \leftHand \dynamics \tempi >> >> \midi {} }