Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:2/4
K:G
['D D']  
X:1
L:1/8
M:2/4
K:G
 D | D B A B | (GF) E D | B, C D D | D3 D | D B A B | (GF) E D | B, C D D | D3 A | B A G B | 
 d d e d | B A G A | B3 D | D B A B | (GF) E D | B, C D D | D3 z ||  