The prefab riffs of computer programs like GarageBand aren’t entirely new. As shown by the musicologist Robert Gjerdingen, many 18th- and early 19th-century composers used pedagogical materials as a basis for their compositions, “composing out” passages in creative ways. But this method is not something the ordinary listener is supposed to recognize.