In response to Stewart's query about the Lady named in the tune:
The tune was published by Nathaniel Gow (1763-1831), son of Neil Gow. The
tunes he published were contemporary to his time, and may have been composed
by himself, his father, or others alive at the time.
The Ramsay's were an old Scottish family settled in the Lothians (Earls of
Dalhousie) and were one of the gentry of Edinburgh at the time of Gow. I
can't find any specific reference to Lucy, but she may have been a lady of
the family prone to dancing at the time.
You could subscribe to Burke's peerage and perhaps hunt her down.