The precise date and location of composition is disputed: some suggest that it was written in Salzburg, the boy's home town, in 1762 or 1763; others suggest that it was written in Paris in 1763 or 1764, during Mozart's first visit to that city. It was published in Paris in February 1764, along with another violin sonata, K. 7, as Mozart's
Opus 1. K. 6 has 4 movements, the third being a pair of menuets: {{ordered list|list_style_type=upper-roman The keyboard and violin interact in various ways throughout the piece: the violin echoing the tune of the keyboard, the two moving in synchronicity. The violin sometimes doubles the tune while the keyboard provides the bass. It is quite a lively and light-hearted work. Mozart employs
Alberti bass throughout the entire sonata. The
Nannerl Notenbuch contains versions for solo piano of the first three movements of this sonata. It is thought that the first and second of these movements and the Menuet I from the third movement were inscribed in the
Notenbuch by Leopold in Brussels in 1763. A version for solo piano of Menuet II (together with a piano version of the third movement of Leopold's Serenade in D) can also be found in Leopold's hand in the
Notenbuch with the comment, "di Wolfgango Mozart d. 16ten Julÿ 1762" [by Wolfgang Mozart on 16 July 1762]; Mozart was in Salzburg on that date. ==Sonata in D major for Keyboard and Violin, K. 7==