Artificial Musical Intelligence: A Survey