A listed building in Edinburgh that has previously hosted performances from the likes of Stephen Fry and Maggie Smith is to become