Learning to clap