Scientists studying 3,160 songbird species found that birdsong is built from eight basic acoustic motifs, shaped by habitat, biology and mating behaviour.