For three weeks in August the Scottish capital will transform into a hub of culture, comedy, tragedy — and everything in between.