Craft a composition that integrates the assigned alphabet-related musical pattern and the provided melodic theme.
X:1
L:1/8
M:4/4
K:C
['g>fg e2 d', 'G>AB (B<d)d (B<A)A']  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:6/8][K:G]SOSOO .!fermata!PMTuCOMd | g>fg e2 d | (B<d)d (B<d)d | g>fg e2 d | (B<A)A A2 d | 
 g>fg e2 d | (B<d)d (B<d)d | g>fg Te2 d | (B<G)G G2 :: B | G>AB (B<d)d | (B<A)A (G<d)d | 
 G>AB (B<d)d | (B<A)A A2 B | G>AB (B<d)d | (B<A)A (G<d)d | g>fg Te2 d | (B<G)G G2 :|  