Ears of orthopteran insects (e.g., crickets and grasshoppers) and vertebrates are designed such that different frequencies of sound stimulate different sets of sensory cells.
The animal is able to decompose a complex sound into its component frequencies.