Generate music with the following musical form represented in alphabets and the given motif.
X:1
L:1/8
M:4/4
K:Bmin
['B3 d', 'b2 B2 B3 d']  
X:1
L:1/8
M:4/4
K:Bmin
 (Bc) | d2 (cB) B3 d | (AF) (EF) A3 c | d3 c B3 d | (AB) (de) f3 f | (gb) (ag){f} f2 (ed) | 
 (ed) (cB) A3 c | (Bc) (de) (f>gf) e | d2 Tc2 B2 |] (f^a) | b2 B2 B3 d | (AF) (EF) A3 ^a | 
 b2 B2 B3 d | (AB) (de) f3 f | (gb) (ag){g} f2 (ed) | (edc) B A3 c | (Bcd) e (f>g) (fe) | 
 d2 Tc2 B2 |]  