Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:12/8
K:Edor
['B2 A B2', 'd2 B']  
X:1
L:1/8
M:12/8
K:Edor
 E2 B B2 A B2 c d2 A | F2 A ABA D2 E FED | E2 B B2 A B2 c d3 | cdc B2 A B2 E E3 :: 
 e2 f gfe d2 B Bcd | c2 A ABc d2 B B3 | e2 f gfe d2 B Bcd | cdc B2 A B2 E E3 :|  