Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:2/2
K:Dmin
['cAfd ecBG', 'd2 egfa AcBG']  
X:1
L:1/8
M:2/2
K:Dmin
 e | cAfd ecBG | cAfd ec d2 | cAfd ecBG | AGFG Ac d2 :: egfa AcBG | egfa Ad d2 | egfa AcBG | 
 AGFG Ac d2 :|  