How a Caged Bird Learns to Sing