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
['d2 dd d2 fe d4 A4 d2', 'a8 e2 ee e2 d/e/f e4 ag']  
X:1
L:1/8
M:4/4
K:D
 d2 dd d2 fe | d4 A4 | d2 F2 G2 B2 | AGFE D4 | f2 ff f2 e/f/g | f4 e4 | fgfg agfg | a8 :| 
 e2 ee e2 d/e/f | e4 ag f2 | d2 d2 fe d2 | A2 F2 D4 | a2 aa a2 g/a/b | a4 g4 | fgab e3 d | d8 :|  