In this section, we'll be building on our previous chapter's knowledge by using our Python code to generate music with a new model, the Melody RNN. This section will show how to generate monophony and the next section will show how to handle polyphony.
Monophony is the simplest form of musical texture, where the notes, a melody, are played by a single instrument, one by one. Sometimes, a melody can be played by multiple instruments, or multiple singers, at a different octave (for example, in a choir), but are still considered monophonic because the backing score is.
Polyphony, on the other hand, consists of two or more melody lines played together. For example, a piano score played with two hands is polyphonic since there are two separate melodies to be played together.
An instrument can be monophonic or polyphonic. For example...