Create a piece of music utilizing the given motif and adhering to the specified structure.
X:1
L:1/8
Q:1/8=180
M:12/8
K:Emin
['B2 A B2', 'd2 B'  
X:1
L:1/8
Q:1/8=180
M:12/8
K:Emin
 E2 B B2 A B2 ^c d3 | F2 A ABA D2 E FED | E2 B B2 A B2 ^c d3 | ^cdc B2 A B2 E E3 :| 
 e2 f gfe d2 B B^cd | ^c2 A ABc d2 B B3 | e2 f gfe d2 B B^cd | ^cdc B2 A B2 E E3 :|  