Generate music with the following musical form represented in alphabets and the given motif.
X:1
L:1/8
M:2/2
K:D
['EDEF DEFA d2 fd gdfd', 'fd d2']  
X:1
L:1/8
M:2/2
K:D
 EDEF DEFA | d2 fd gdfd | ed(3Bcd AdBA | B2 AF GFED | EDEF DEFA | d2 fd gdfd | ed (3Bcd AdBA | 
 B2 AG FD D2 :| e | fd d2 fdad | fd d2 ecAg | fd d2 fdad | ceag fdde | fgaf gfec | dBAF GFGB | 
 A2 GB ABde | (3fga eg fdd :|  