Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:4/4
K:G
['dBAB d z d2', 'AG AB', 'E2 e/f/g dB de ga |1 ge', 'E2 GA BG A2']  
X:1
L:1/8
M:4/4
K:G
 D3 B AGED |{D} G2 BG dGBG | D3 B AGAB |1 dBAB d z d2 :|2 dBAB d3 e |: dBgB AG E2 | A A2 G AB g2 | 
 edgd edBe |1 dBAB d3 e :|2 dBAB d z d2 ||[K:G] E |: DE GB AG AB | AG AB AG EG | DE GB AG AB | 
 dB GB A2 G2 :: e/f/g dB AG E2 | e/f/g dB de ga |1 ge dB AG E2 | GA BG A2 G2 :|2 bf gB AG E2 | 
 GA BG A2 G2 |]  