Example 7. Haydn, Keyboard Sonata in G Major, Hob. XVI: 27, mm. 1–8 (melodic analysis following Schmalfeldt 1991)