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
['A2 A AFA B2', 'd2 d']  
X:1
L:1/8
M:6/8
K:D
 FG |:"D" A2 A AFA |"G" B2 B BAB |"A7" c2 c ABc |"D" d2 e f3 |"D" A2 A AFA |"G" B2 B BAB | 
"A7" c2 c ABc |"D" d2 d d3 :| e |:"D" f2 f fef |"Em" g2 g g2 f |"A7" e2 e ede |"D" f2 f f2 e | 
"Bm" d2 d dcd |"Em" e2 e e2 d |"A7" c2 c ABc |1"D" d2 e f3 :|2"D" d2 d d3 :|  