Craft a composition that integrates the assigned alphabet-related musical pattern and the provided melodic theme.
X:1
L:1/8
Q:1/8=160
M:2/2
K:G
['A2 BA EAAA Bc/d/ AB G2 AG', 'BA/G/ Bd g2 ga ba/g/']  
X:1
L:1/8
Q:1/8=160
M:2/2
K:G
"^hornpipe" DE/G/ | A2 BA EAAA | Bc/d/ AB G2 AG | GAAA BAGA | (3BAB de gedB | A2 BA EAAA | 
 Bc/d/ AB G2 AG | GAAA BAGA | BA/B/ dB A2 :| dc | BA/G/ Bd g2 ga | ba/g/ ag/f/ gedc | 
 BA/G/ Bd g2 ga | ba/g/ af/g/ gfga | bagb agef | gedB AE ED/E/ | GABd dBeb | dBAB G2 :|  