Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:none
K:G
['D DEFGAB G2']  
X:1
L:1/8
M:none
K:G
 D | DEFGAB | G2 z D | DEFGAB | G2 z2 A2 | Bdcd | B2 A2 Bdcc | BBAB | GGFD | E2 D2 |]  