Develop a musical composition by integrating the alphabetically represented musical pattern and the supplied melodic theme.
X:1
L:1/8
M:2/2
K:C
['', 'e2 A2 agfe eA', 'GA BGBd cBAG', 'GFGA B2 G2']  
X:1
L:1/8
M:2/2
K:C
[K:D]"^Lord Huntley's Cave""A" |: de |"D" f2 A2 gfed | f2 A2 d2 cd |1,3"A7" e2 A2 agfe | 
"D" dcdf"A7" eA :|2,4 ea"A7"ca Aaca |"D" d6 :|"B" |: fg |"D" a3 f d2 a2 | fA a2 d2 cd |1 
"A7" e2 A2 agfe |"D" dcdf"A7" eA :|2 ea"A7"ca Aaca |"D" d6 |] 
[M:2/2][K:G]"^The Flowers of Edinburgh""C" | GE |"G" D2 DE G2 GA | BGBd cBAG |"D7" FGFE DEFG | 
 AFdF E2 GE |"G" D2 DE G2 GA |"G" BGBd"C" efge |"G" dcBA"D7" GFGA |"G" B2 G2 G2"D" |] d2 | 
"G" g2 gd gbag |"D7" f2 fd fagf |"Em" e2 ef gfed | B2 e2"^(C)" e2 ge |"G" dBGB d2 d2 | 
"C" edef g2 fe |"G" dcBA"D7" GFGA |"G" B2 G2 G2 |]  