what is the set of notes off of which the melody is based.

To answer your question accurately, I would need more specific information regarding the melody you are referring to. The set of notes the melody is based on is usually called the scale or the key of the piece. Common scales include major, minor, pentatonic, chromatic, among others. Each scale has its own set of notes that form the foundation for melodies within that key.