Formulate music by adhering to the alphabetic portrayal of the designated musical layout and the motif given.
X:1
L:1/8
M:4/4
K:D
['d<df>d e>dBd A<AF>A B2 d2 F<GE>D f<fe>d', 'd2 a<af>d e<ed>B A>AF>A B2 d2 F<FE>D', 'd2 fde>c d2 A2 a<af>A B2 d2', 'd2 [M:2/4][K:G] DGGB AGGg dBBG AE E2', 'G2 gage dBBg dBBG AE E2 gage', 'g2 bgdb afda gdBG AE E2 DGGB', 'dG (e/d/c/B/)', 'dBgB dgBg']  
X:1
L:1/8
M:4/4
K:D
|: d<df>d e>dBd | A<AF>A B2 d2 | F<GE>D f<fe>d | FFAf B2 d2 :: a<af>d e<ed>B | A>AF>A B2 d2 | 
 F<FE>D f<fe>d | F<FA>f B2 d2 :: fde>c d2 A2 | a<af>A B2 d2 | b<ba>f g>ef>d | D<DF>A B2 d2 :: 
[M:2/4][K:G] DGGB | AGGg | dBBG | AE E2 | DGGB | AG g2 | dB d/c/B/A/ | G2 G2 :: gage | dBBg | 
 dBBG | AE E2 | gage | dBgb | agab | g2 g2 :: bgdb | afda | gdBG | AE E2 | DGGB | AG g2 | 
 dB d/c/B/A/ | G2 G2 :|[M:4/4][K:G] e | dG (e/d/c/B/) dGGe | dBgB dAAB | dG (e/d/c/B/) dGBg | 
 fefd g2 g :: e | dBgB dgBg | dBgB dAAB | dBgB dgBg | fefd g2 ge | dG (e/d/c/B/) dGGe | dBgB dAAB | 
 dG (e/d/c/B/) dG (d/b/a/g/) | fefd g2 g |]  