motif

A short musical idea. A phrase or melody will usually contain several motifs. Most commonly associated with melody but can also be a rhythmic or harmonic idea. Similar to riff.