James Johnson's 'The Scots Musical Museum' (1785-1803) gives two versions, one noted as "Written for this work by Robert Burns", the other as "Old set".
Both give the line as:
"O my luve's like the melodie that's sweetlie play'd in tune".
Both texts are identical, though the two airs are different.
Jim Carroll