A melodic fragment is a short, distinct segment of a melody—typically a few measures—characterized by a unique note pattern or musical idea. It functions as a building block for larger melodic structures.
Fragments allow composers to create unity and variety simultaneously—reusing core material while transforming it across a piece. They are essential in developmental techniques like motivic development, sequence, and fragmentation.