"The Soldier's Joy", song and music, were reprinted in 'Vocal Music, or The Songster's Companion', c 1778.
Music only is in:
(1) 'A Collection of Newest and Best Reels and Minuets', By Joshua Campbell, Glasgow, 1778.
(2) 'A Collection of Scots Measures Hornpipes Jigs Allemands.' By Alexander McGlashan. Edinbr. c 1778
(3) 'A Selection of Scots, English, Irish and Foreign Airs', Vol. I, James Aird, Glasgow, c 1778.
Robert Burns' song to the tune commences "I am a Son of Mars who have been in many wars.
In ABC notation here is the tune from 'Vocal Music'
X:1 T:The Soldier's Joy Q:60 L:1/4 M:C| K:D (F/2G/2)|(A/2F/2) (D/2F/2) (A/2F/2 D/2E/2)|Ddd(c/2A/2)|(A/2F/2) (D/2F/2) (A/2F/2) (A/2F/2)|GEE(F/2G/2)|A/2F/2 (D/2F/2) (A/2F/2) (D/2F/2)|Ddd(f/2g/2)|(a/2f/2) (d/2f/2) (g/2e/2) (c/2e/2)|ddd||e|(f/2e/2) (f/2g/2) (f/2a/2) (g/2f/2)|(e/2d/2) (c/2d/2) (e/2f/2) (g/2e/2)|(f/2e/2) (f/2g/2) (f/2a/2) (g/2f/2)|(e/2d/2) (c/2B/2) AA|(f/2e/2) (f/2g/2) (f/2a/2) g/2f/2|(e/2d/2) (c/2d/2) (e/2f/2) (g/2e/2)|(a/2f/2) (d/2f/2) (g/2e/2) c/2e/2|ddd|]