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:D
['fg afaf', 'Acdf dfdf egec']  
X:1
L:1/8
M:2/2
K:D
 fg | afaf gf g2 | bgbg e2 fg | afaf dfdf | egec d2 :: [fd]2 | Acdf dfdf | egec ec [ec]2 | 
 Acdf dfdf | egec d2 :|  