%...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+.... \version "2.26" \include "globals.ily" \header { title = "Sonata in A minor" opus = "K.265" source = "https://ks15.imslp.org/files/imglnks/usimg/8/8b/IMSLP914618-PMLP510255-E4613_11-16-Scarlatti_-_Keyboard_Sonatas,_Supp_30-45.pdf" } % % Positions and shapes % slurShapeA = \shape #'((-0.3 . 0) (-0.3 . 0) (-0.3 . 0) (-0.3 . 0)) \etc slurShapeB = \shape #'( ((0 . 1) (0 . 0) (0 . 0) (0 . 0)) ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ) \etc slurShapeC = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . -1.2) (0 . -0.9) (0 . -0.7) (0.2 . -0.7)) ) \etc slurShapeD = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0.3 . 0) (0.3 . 0) (0 . 0) (0 . 0)) ) \etc slurShapeE = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . -2.2) (0 . -2.2) (0 . -2.2) (0 . -2.2)) ) \etc slurShapeF = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 0) (0 . 0) (0 . -2) (0 . -2)) ) \etc slurShapeG = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 2.7) (0 . 2.7) (0 . 2.7) (0 . 2.7)) ) \etc slurShapeH = \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 3) (0 . 3) (0 . 3) (0 . 3)) ) \etc % % Music % global = { \time 4/4 \key a \minor } rightHand = \relative { \global \repeat volta 2 { r8 e''16( d c8-.) c16( b a8-.) a16\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b) a8(\prall gs16 a | b8-.) e16( d c8-.) c16( b a8-.) a16\( g! \grace { f!16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b c8-.) b-. | \bar "||" \time 3/8 a4 b8-. | 4 8-. | 4.~ | q4 8-. | \barNumberCheck 9 4.~ | q4 8-. | 4.~ | b8 c-. e,-. | d4.~-\tag layout \prallprall -\tag midi \prall | d8 g-. b,-. | \appoggiatura { b16 } c4.~ | c8 c'-. e,-. | \barNumberCheck 17 d4.~-\tag layout \prallprall -\tag midi \prall | d8 g-. b,-. | \appoggiatura { b16 } c4.~ | c8 g'-. g-. | \acciaccatura { a8 } g( f) f-. | \acciaccatura { g8 } f( e) e-. | \acciaccatura { f8 } e( d) d-. | \acciaccatura { e8 } d( c) c-. | \barNumberCheck 25 c8( a') g-. | \slashedGrace { g8-\slurShapeA ( } -. -. -. | c4.~ | c8 g'-. g-. | \acciaccatura { a8 } g( f) f-. | \acciaccatura { g8 } f( e) e-. | \acciaccatura { f8 } e( d) d-. | \acciaccatura { e8 } d( c) c-. | \barNumberCheck 33 c8( a') g-. | \slashedGrace { g8( } -. -. -. | c4.-> | c'8( c,) b-. | c4.-> | c'8( c,) b-. | c8( g') c,-. | \acciaccatura { e8 } d-. c-. b-. | \barNumberCheck 41 \bar "||" \time 4/4 c8-. e16( d c8-.) c16( b a8-.) a16\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b) a8(\prall gs16 a | b8-.) e16( d c8-.) c16( b a8-.) a16\( g! \grace { f!16( } \afterGrace 15/16 f4)\trill { g16 f } | << { \voiceOne e8-.\) fs16( gs a8 b16 c d8 c16 b c8-.) b-. | } \new Voice { \voiceFour s2 gs8-. a4 gs8-. | } >> \bar "||" \time 3/8 \oneVoice a4. | a'4. | a,4. | a'4. | \barNumberCheck 49 \acciaccatura { a8 } g4( fs8) | e8-. fs-. g-. | \acciaccatura { a8 } g( fs) fs-. | \acciaccatura { g8 } fs( e) e-. | \acciaccatura { fs8 } e8( ds) ds-. | r8 b'-. b-. | \acciaccatura { c8 } b( a) a-. | \acciaccatura { b8 } a( g) g-. | \barNumberCheck 57 \acciaccatura { a8 } g( fs) fs-. | \acciaccatura { g8 } fs( e) e-. | \acciaccatura { fs8 } e( d!) d-. | \acciaccatura { d8 } c( b) c-. | b4.~ | b8 g'-. e-. | b4.~ | b8 g'-. e-. | \barNumberCheck 65 b4.~ | b8 b'-. g-. | fs8( c') a->~ | a8 fs-. ds-. | e4. | r8 e-. e-. | \acciaccatura { f8 } e( d) d-. | \acciaccatura { e8 } d( c) c-. | \barNumberCheck 73 \acciaccatura { d8 } c( b) b-. | r8 e-. a,-. | \acciaccatura { b8 } a( gs) gs-. | a8-. b-. c-. | \appoggiatura { d16 } c8(\trill b4) | r8 e-. e-. | fs8( d) g-. | c,8(\prall b) c-. | \barNumberCheck 81 b8( g') d-. | c8(\prall b) c-. | b4.~ | b8 g'-. g-. | \acciaccatura { a8 } g8( fs) fs-. | \acciaccatura { fs8 } e( ds) e-. | \appoggiatura { e16 } fs4. | r8 b-. b-. | \barNumberCheck 89 \acciaccatura { c8 } b( a) a-. | \acciaccatura { b8 } a( g) g-. | \acciaccatura { a8 } g( fs) fs-. | \acciaccatura { g8 } fs( e) e-. | \acciaccatura { fs8 } e( d!) d-. | c8(\prall b) c-. | b4.~ | b8 g'-. e-. | \barNumberCheck 97 b4.~ | b8 b'-. g-. | fs8( c') a->~ | a8 fs-. ds-. | e4. | \stemDown e,8( e') ds-. | e4. | e,8( e') ds-. | \barNumberCheck 105 \addStaccato { e8 fs g | 8 | } \bar "||" \time 4/4 \stemNeutral e8 e16( d! c8-.) c16( b a8-.) a16\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b) a8(\prall gs16 a | b8-.) e16( d c8-.) c16( b a8-.) a16\( g! \grace { f!16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b c8-.) b-. | \bar "||" \time 3/8 \key a \major a4 cs8-\slurShapeD ( | d8 e fs | \barNumberCheck 113 e8 d cs) | \acciaccatura { cs8 } b4 a8-. | \acciaccatura { a8 } gs4. | r8 b( a) | r8 cs( b) | r8 d( cs) | e8.( d32 cs b8-.) | r8 fs'8( e) | \barNumberCheck 121 r8 e( d) | r8 d( cs) | e8.( d32 cs b8-.) | r8 e,-. e-. | e8( fs) fs-. | fs8( gs) gs-. | gs8( a) a-. | a8( b) b-. | \barNumberCheck 129 a'8.( gs32 fs e8-.) | r8 fs,-. fs-. | fs8( gs) gs-. | gs8( as) as-. | as8( b) b-. | b8( cs) cs-. | b'8.( a!32 g fs8-.) | r8 fs-. d-. | \barNumberCheck 137 cs8( g') e-. | cs8( as) b-. | b8( cs4) | r8 b'-. b,-. | fs'8.( e32 d cs8-.) | r8 b'-. b,-. | fs'8.( e32 d cs8-.) | r8 b'-. b-. | \barNumberCheck 145 \acciaccatura { b8 } a( g) fs-. | \acciaccatura { g8 } fs( e) d-. | \acciaccatura { e8 } d-. cs4 | r8 d'-. d,-. | a'8.( g32 fs e8-.) | r8 d'-. d,-. | a'8.( g32 fs e8-.) | r8 a-. a-. | \barNumberCheck 153 \acciaccatura { b8 } a( gs!) gs-. | \acciaccatura { a8 } gs( fs) fs-. | \acciaccatura { gs8 } fs( e) e-. | \acciaccatura { fs8 } e( d) d-. | \acciaccatura { e8 } d-. cs4-> | r8 a'8-. a,-. | e'8.( d32 cs b8-.) | r8 a'8-. a,-. | \barNumberCheck 161 e'8.( d32 cs b8-.) | r8 e,-. e-. | e8( fs) fs-. | fs8( gs!) gs-. | gs8( a) a-. | a8( b) b-. | cs8( d) e-. | 8-. -. -. | \barNumberCheck 169 a4. | a'8( a,) gs-. | a4. | a'8( a,) gs-. | a8( a') fs-. | \stemDown ds8-. a-. fs-. | gs8( b') d,!-. | cs8( a') cs,-. | \barNumberCheck 177 b8( fs') d->~ | d8 b-. gs-. | \stemNeutral a4. | a'8( a,) gs-. | a4. | a'8( a,) gs-. | \addStaccato { 8 | 8 | } \barNumberCheck 185 \bar "||" \time 4/4 \key a \minor a8-. e'16( d c8-.) c16( b a8-.) a16\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b) a8(\prall gs16 a | b8-.) e16( d c8-.) c16( b a8-.) a16\( g! \grace { f!16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) fs16( gs a8 b16 c d8 c16 b c8-.) b-. | \bar "||" a8-. a'16( e f d e b c8-.) e16( a, b d b gs | a8-.) a'16( g!) g( f e d c8-.) f16( e) e( d c b | c8-.) d16( c) \stemDown c( b a gs a d c b e a, b gs | a8-.) a'16( e f d e b c8-.) e16( a, b d b gs | \barNumberCheck 193 a8-.) a'16( e f d gs e a e f d c a' b, gs' | a16 e f d c a' b, gs' a e f d \stemNeutral a8-.) gs-. | a1 | } } leftHand = \relative { \global \clef bass \repeat volta 2 { r8 e'16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b) b( c a | e8-.)\noBeam e''16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b a e'-.) e,-. | \time 3/8 a8-. a'( g | f8 e d | c8) c'( b | a8 g f | \barNumberCheck 9 e8) e'( d | c8 b a | g8) g'_( f | e8 d e | \clef treble f8 e f | g8 f g | a8 g f | e8 d e | \barNumberCheck 17 f8 e f | g8 f g | a8 g f | 4.) | 4.( | 4. | 4. | 4. | \barNumberCheck 25 f4) \clef bass f,8( | g4) g,8-. | \clef treble r8 c'-. d-. | 4. | 4.-\slurShapeB ( | 4. | 4. | 4. | \barNumberCheck 33 f4) \clef bass f,8( | g4) g,8-. | c8( d) e-. | f4 g8-. | c,8( d) e-. | f4 g8-. | e4 a8-. | f4 g8-. | \barNumberCheck 41 \time 4/4 c,8-. e'16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b) b( c a | e8-.)\noBeam e''16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b a e'-.) e,-. | \time 3/8 a8-. a'( b | c8 b a) | b,8 b'( cs | ds8 cs b) | \barNumberCheck 49 e,8-.\noBeam \clef treble e'( fs | g8-.) fs-. e-. | 4._( | 4. | 4. | 4.) | \clef bass 4.( | 4. | \barNumberCheck 57 4. | 4. | 4.) | << { \voiceTwo e4.( | ds4.) | } \new Voice { \voiceThree a'4.~ | a8 g-. fs-. | } >> << { g4. } \\ { e } >> | << { a8( g) fs-. } \\ { ds4. } >> | << { g4. } \\ { e } >> | \barNumberCheck 65 << { a8( g) fs-. } \\ { ds4. } >> | << { g4. } \\ { e } >> | \oneVoice 4. | 4. | e8( e') d!-. | 4. | 4._( | 4.) | \barNumberCheck 73 e8( e') d-. | 4.( | 4.) | c8-. b-. a-. | e8( e') d-. | 4. | << { d4. } \\ { c4 b8-. } >> | << { c4. } \\ { a4 d,8-. } >> | \barNumberCheck 81 << { b'4. } \\ { g4. } >> | << { c4. } \\ { a4 d,8-. } >> | g8-.\noBeam \clef treble g'-. fs-. | 4. | 4._( | 4.) | b8( b') a-. | 4. | \barNumberCheck 89 4.( | 4. | 4. | 4. | 4.) | << { \voiceTwo e4.( | ds4.) | } \new Voice { \voiceThree a'4.~ | a8 g-. fs-. | } >> << { e4.-\slurShapeC ( | \barNumberCheck 97 ds4.) | } \new Voice { \voiceThree g4. | \barNumberCheck 97 a8( g) fs-. | } >> << { g4. } \\ { e4. } >> | \clef bass \oneVoice 4. | 4. | e8( fs) g-. | a4 b8-. | e,8( fs) g-. | a4 b8-. | \barNumberCheck 105 g8-. fs-. e-. | a4 b8-. | \time 4/4 e,8 e'16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b) b( c a | e8-.)\noBeam e''16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b a e'-.) e,-. | \time 3/8 \key a \major a8-. a'( gs | fs8 e d | \barNumberCheck 113 cs8 b a | d8 e fs | e8) e'( d | 4.) | 4._( | 4.) | e8( e') d-. | 4. | \barNumberCheck 121 4._( | 4.) | e8( e') d-. | cs4. | 4.-\slurShapeE _( | 4. | 4. | 4. | \barNumberCheck 129 4.) | d,4. | \osp #'(0 . -2.5) 4._( | 4. | 4. | 4. | 4.) | 4.-\slurShapeF _( | \barNumberCheck 137 4. | 4. | fs8) fs'( e | d4) g8-. | fs8-. fs( e-.) | d8-. d( g | fs8-.) fs( e-.) | 4. | \barNumberCheck 145 4. | 4._( | \clef treble a8) a'( g | fs4) b8-. | a8-. a( g-.) fs8-. fs( b | a8-.) a( g-.) | 4.( | \barNumberCheck 153 4. | 4. | 4. | 4. | a8-.) a'( g | fs4. | e8-.) e( d-.) | cs8-. cs( fs | \barNumberCheck 161 e8-.) e( d-.) | cs4. | \clef bass 4._( | 4. | 4. | 4.) | << { e'4. } \\ { a,8( b) cs-. } >> | d,4 e8-. | \barNumberCheck 169 a8( b) cs-. | d4 e8-. | a,8( b) cs-. | d4 e8-. | a,4. | 4._( | 4.) | 4. | \barNumberCheck 177 4. | 4. | a,8( b) cs-. | d4 e8-. | a,8( b) cs-. | d4 e8-. | cs4 fs8-. | d4 e8-. | \barNumberCheck 185 \time 4/4 \key a \minor a,8-.\noBeam e''16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b) b( c a | e8-.)\noBeam e''16( d c8-.) c16( b a8-.) a16_\( g \grace { f16( } \afterGrace 15/16 f4)\trill { g16 f } | e8-.\) d( c) c( b a e'-.) e,-. | a8-. c( d gs a-.) c,-\slurShapeG ( d e | a,8-.) a'4( b8 c-.) d,4( e8 | a8-.) d,4( e8 f-.) d( e) e,-. | a8-. c( d gs a-.) c,-\slurShapeH ( d e | \barNumberCheck 193 a,8-.) c( d b \stemUp c d e d | c8 d e d c d e-.) e,-. | a1 | } } dynamics = { \override TextScript.Y-offset = #-0.5 \override DynamicTextSpanner.style = #'none \repeat volta 2 { s8 s4.\f s4 s-\tag layout \sf -\tag midi \ff | s8 s\mf s4\< s\! s8.-\tag layout \sf -\tag midi \ff \> s16\! | s8 s2..-\tweak Y-offset #0 \p | s2 s-\tweak Y-offset #-1 ^\pocoRit | % time 3/8 s4.\p | s4. | s4.-\tweak Y-offset #0.5 \cresc | s4. | \barNumberCheck 9 s4.*5 | s8 s4\p | s4. | s8 s4\f | \barNumberCheck 17 s4. | s8 s4\p | s4. | s4\< s8\! | s4.\f | s4.\dim | s4. | s4.\p | \barNumberCheck 25 s4.\mf | s4. | s4.\f | s8 s4\p | s4.*4 | \barNumberCheck 33 s4.*2 | s4\mf\> s8\! | s4\f s8\p | s4. | s4.\f | s4.*2 | \barNumberCheck 41 % time 4/4 s1\f | s8 s\mf s4\< s\! s-\tag layout \sf -\tag midi \ff \> | s8\! s2..\p | s2 s-\tweak Y-offset #-2 ^\pocoRit | % time 3/8 s4\p\< s8\! | s4\> s8\! | s4\< s8\! | s4\> s8\! | \barNumberCheck 49 s4.\mf | s4.\< | s4.\f\> | s4. | s4 s8\! | s4.\p-\tweak Y-offset #1.5 \< | s4.-\tweak Y-offset #1 \f | s4.-\tweak Y-offset #1.5 \dim | \barNumberCheck 57 s4.*3 | s4.\p | s4. | s4.\cresc | s4.*2 | \barNumberCheck 65 s4.*2 | s4.\f | s4.*2 | s8 s4\mf | s4.*2 | \barNumberCheck 73 s4.*5 | s8 s4\< | s4.\f | s4. | \barNumberCheck 81 s4.*7 | s8 s4\< | \barNumberCheck 89 s4.-\tweak Y-offset #0.5 \f | s4.-\tweak Y-offset #1 \dim | s4.*3 | s4-\tag layout \sf -\tag midi \ff s8\p | s4. | s4.\cresc | \barNumberCheck 97 s4.*2 | s4.\f | s4. | s4\> s8\! | s4.-\tweak Y-offset #-1.5 \mf | s4.*2 | \barNumberCheck 105 s4\< s8\! | s4. | % time 4/4 s2.\f s4-\tag layout \sf -\tag midi \ff | s8 s4.\mf\< s4\! s8.-\tag layout \sf -\tag midi \ff \> s16\! | s8\! s2..\p | s2 s-\tweak Y-offset #-1.5 ^\pocoRit | % time 3/8, key a major s4.\p | s4. | \barNumberCheck 113 s4.*3 | s4.\cresc | s4.*2 | s4.\mf | s4.\p | \barNumberCheck 121 s4.*2 | s4.\mf | s4.\p | s4.\cresc | s4.*3 | \barNumberCheck 129 s4.\f | s4.\p | s4.\cresc | s4.*3 | s4.\f | s4.\mf | \barNumberCheck 137 s4.*3 | s8 s4\f | s4. | s8 s4\p | s4. | s8 s4\mf | \barNumberCheck 145 s4.*3 | s8 s4\f | s4. | s8 s4\p | s4. | s8 s4\mf | \barNumberCheck 153 s4. | s4.\dim | s4.*2 | s4.\p | s8 s4\f | s4. | s8 s4\p | \barNumberCheck 161 s4. | s8 s4\cresc | s4.*4 | s4.-\tweak Y-offset #1 \mf | s4. | \barNumberCheck 169 s4. | s4.\f | s4.\mf | s4.\f | s4.\mf | s4.\cresc | s4.*2 | \barNumberCheck 177 s4.*2 | s4.\f | s4.*5 | \barNumberCheck 185 % time 4/4 s2.\f s4-\tag layout \sf -\tag midi \ff | s8 s4.\mf\< s4\! s8.-\tag layout \sf -\tag midi \ff \> s16\! | s8\! s2..\p | s2 s-\tweak Y-offset #-1.5 ^\pocoRit | s1\f | s1*2 | s8 s2..\p | \barNumberCheck 193 s8 s2..\cresc | s2 s\f | s1 | } } tempi = { \repeat volta 2 { \tempo "Allegro" 4 = 112 s1*3 | \set Score.tempoHideNote = ##t s2 \tempo 4 = 100 s4 \tempo 4 = 88 s | \set Score.tempoHideNote = ##f \tempo "Allegro" 4. = 108 s4.*4 | \barNumberCheck 9 s4.*32 | \barNumberCheck 41 \tempo "" 4 = 112 s1*3 | \set Score.tempoHideNote = ##t s2 \tempo 4 = 100 s4 \tempo 4 = 88 s | \set Score.tempoHideNote = ##f \tempo "" 4. = 108 s4.*4 | \barNumberCheck 49 s4.*56 | \barNumberCheck 105 s4.*2 | \tempo "" 4 = 112 s1*3 | \set Score.tempoHideNote = ##t s2 \tempo 4 = 100 s4 \tempo 4 = 88 s | \set Score.tempoHideNote = ##f \tempo "" 4. = 108 s4.*2 | \barNumberCheck 113 s4.*72 | \barNumberCheck 185 \tempo "" 4 = 112 s1*3 | \set Score.tempoHideNote = ##t s2 \tempo 4 = 100 s4 \tempo 4 = 88 s | \set Score.tempoHideNote = ##f \tempo "" 4 = 126 s1*4 | \barNumberCheck 193 s1 | \set Score.tempoHideNote = ##t s4 \tempo 4 = 116 s \tempo 4 = 108 s \tempo 4 = 100 s | s1 | } } forceBreaks = { % page 1 s1*3 \break s1 s4.*5 \break s4.*8 \break s4.*8 \break \grace { s8 } s4.*7 \pageBreak % page 2 s4.*8 \break s1*3 \break s1 s4.*5 \break s4.*8 \break \grace { s8 } s4.*8 \pageBreak % page 3 s4.*8 \break s4.*8 \break s4.*7 \break \grace { s8 } s4.*8 \break s4.*8 \pageBreak % page 4 s4.*2 s1*2 \break s1*2 s4.*2 \break s4.*8 \break s4.*8 \break s4.*8 \pageBreak % page 5 s4.*8 \break \grace { s8 } s4.*8 \break \grace { s8 } s4.*7 \break s4.*7 \break s4.*8 \pageBreak % page 6 s4.*8 \break s4.*2 s1*2 \break s1*3 \break s1*3 \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 {} }