The 22-year-old from Dalkeith, who shot to fame when he reached the final of BBC's Any Dream Will Do competition in 2007, was joined by children from his own stage school, Gie it Laldy, during the performance last week.
It was part of a programme of events at Dobbies to support Starlight Children's Foundation, a charity that grants wishes to seriously and terminally ill children.