Design tunes that follow the specified musical pattern while integrating the presented motif
X:1
L:1/8
M:4/4
K:C
['|[M:2/2][K:D] (3TDEFG ABAF (3GFE cE dEcE DEFG', 'efge (3fga'  
X:1
L:1/8
M:4/4
K:C
 |[M:2/2][K:D] (3TDEFG ABAF | (3GFE cE dEcE | DEFG ABAF | GEcE (TED)D z :| d2 (fd) efge | 
 (3fga (fd) ecAG | FAAB cBcG | EFG(E TFDD)D z | d2 fd efge | (3fga (fd)ecAF | GBGB FAFA | 
 EFG(E TFD)D z |]  