Construct a melody adhering to the specified linguistic musical pattern.
'Sectional: Through Composed'  
X:1
L:1/8
M:9/8
K:D
|: DED DdB AFD | EFE EFA B2 d | DED DdB AFD | EDE FDC B,2 A, :: ded ded cBA | BcB Bcd e2 f | 
 ded ded cBA | Bcd AGF FED ::[M:6/8][K:G] g3 d3 | B3 G2 D | E2 E F2 F | GBc def | g3 d3 | B3 G2 D | 
 EGE FAF | G3 G,3 :: d3 bgd | c3 afc | B3 gdB | AFD AFD | d3 bgd | c3 afc | BdB cAF | G3 G,3 :|  