Formulate music by adhering to the alphabetic portrayal of the designated musical layout and the motif given.
X:1
L:1/8
M:2/2
K:D
['(f/g/a) AB', 'f2 fd']  
X:1
L:1/8
M:2/2
K:D
 g | (f/g/a) AB (AB)dF | (ED)EF B2 Bg | (f/g/a) AB (AB)de | (fa)ef d2 d :| e | f2 fd g2 ge | 
 f2 fd B2 de | f2 fd g2 ge | (f/g/a) ef d2 de | (fe)fd (gf)ge | (fe)fd (Bc)de | (fa)fd (gb)ge | 
 (fa)ef d2 d ||  