Managed to removed the clicking sound by applying a slight envelope to the start and end of a writeBeat