Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:9/8
K:D
['f2 a f2', 'd3 B2 A2']  
X:1
L:1/8
M:9/8
K:D
|:"D" F2 A ABA ABA | F2 A"A7" ABc def |"D" F2 A ABA ABA |"G" Bcd"E7" efd"A7" cBA :: 
"D" f2 a f2 a"A7" gfe |"D" f2 a f2 a"A7" g2 e |"D" f2 a f2 a"A7" gfe |"G" Bcd"E7" efd"A7" cBA :: 
"D" f z2"A7" a z2"D" d3 |"Em" g2 f e2 d"A7" cBA |"D" f z2"A7" e z2"D" d3 | 
"G" B2 B"A7" A2 G"D" FED :|  