The term for a musical or artistic piece consisting of motifs or techniques borrowed from other sources is "pastiche."