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
['d2 f2']  
X:1
L:1/8
M:2/2
K:D
"D" DAFA DAFA |"G" Bcdc BAFA |"D" DAFA DAFA |"A" A,ECE A,ECE |"D" DAFA DAFA |"G" Bcdc BAFA | 
"D" fgaf"A7" bgec |1"D" d2 f2 d4 :|2"D" d2 f2 d2 |: A2 |"D" defe dcBA |"Bm" Bcdc BAGF | 
"Em" efgf edcB |"A" A^GAB A4 |"A" A^GAB cBcd |"A7" edef gfge |"D" fgaf"A7" bgec |1"D" d2 f2 d2 :|2 
"D" d2 f2 d4 |]  