before the sheriff of Edinburgh, as guilty of having committed a riot in the Playhouse;