Automatic music composition and improvisation using evolutionary algorithm and reinforcement learning