The first tune isn't very old, and was written as a song by Ronnie Browne of The Corries. The second probably dates from the 19th century, and is also known as The Badge of Scotland.