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
['B A>DA>F d>FA<B A<DA>F E>FG>B A>DA>F d>FA>B', 'fdd g Tf2 d>f g>ef<d edf>d g<e=c>e', 'fdd g f2 d>f g<ef<d e>df<d g=ceg']  
X:1
L:1/8
M:4/4
K:D
 B | A>DA>F d>FA<B | A<DA>F E>FG>B | A>DA>F d>FA>B | d>fe>g fdd :| g | Tf2 d>f g>ef<d | 
 edf>d g<e=c>e | f2 d>f g<ef<d | e/e/e e/e/e fdd || g | f2 d>f g<ef<d | e>df<d g=ceg | 
 f<ae<f d>ef<d | A<F A>g fee |]  