We can program a computer to play music. Conventionally this is done by hard coding, which is the process of coding all possible expected behaviours. Alternatively, we can train an artificial intelligence (AI) computer about what notes go well with others, so it can play a duet with a human musician. Students can make their ...