The answer is music.
The relationship is component-to-composite:
Both rely on emergent properties: the whole transcends the sum of its parts. A puzzle piece has no "picture"; a note has no "song." Only through structured arrangement do they create meaning. This mirrors how language works (words → sentences → stories) and how code functions (statements → programs → applications).
Alternative answers like "song," "melody," or "composition" are valid synonyms, but "music" is the broadest correct category—just as "puzzle" is the category, not "jigsaw" or "image."