Rules, rhythm and grouping: auditory pattern perception by birds