Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:6/8
K:D
['F2 A', 'a2 f', 'e f2 g agf ged cde d3', 'bag fed cde d3']  
X:1
L:1/8
M:6/8
K:D
 A, | DED F2 A | d2 f ecA | G2 B F2 A | E2 F GFE | DED F2 A | d2 f ecA | Bgf edc | d3 d2 :| b | 
 a2 f d2 e | f2 g agf | g2 e c2 d | e2 f gfe |1 |] a2 f d2 e | f2 g agf | ged cde | d3 d2 :|2 |] 
 fed gfe | agf bag | fed cde | d3 d2 |]  