Macleay riders earn NSW titles at Gunnedah