Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:C
['dega b g3 agbg agef g2 fg', 'G2 BG DGBc', 'efge |1', 'eaag a2 ga bgab gedB d2 Bd']  
X:1
L:1/8
M:4/4
K:C
 dega b g3 | agbg agef | g2 fg efge |1 dBAB GABc :|2 dBAB GEDE || 
[M:2/2][K:G]"^The Duke of Leinster (Ghosts of Erin version)" G2 BG DGBc | d2 eB dBAB | G2 BG DGBc | 
 dBAB GEDE | G2 BG DGBc | d2 eB dBAB |1 G B3 d B3 | dBAB GEDE :|2 GABd edge | dBAB GABc |: 
 dega b g3 | agbg ageg | dega bage | dBAB GE D2 | dega b g3 | agbg agef | g2 fg efge |1 
 dBAB GABc :|2 dBAB GEDE ||[K:Ador]"^The Corner House" EAAG ABcd | egdB cBAG | EGGF G2 AB | 
 (3cBA BG AGED | EAAG A2 (3Bcd | eaag efge | d2 Bd efge |1 dBGB A2 AG :|2 dBGB A2 (3Bcd |: 
 eaag a2 ga | bgab gedB | d2 Bd edBd | (3efg fg edBd | eaag a2 ga | bgab gedB | d2 Bd efge |1 
 dBGB A2 (3Bcd :|2 dBGB ABAG ||  