Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:D
['AFAB AFAf |{a} g2 fe dBAF', 'afdf{a} geaf |{a} gfec dBAF', 'EDEF D2 Ac defg afdf{a} geaf |{a}', 'FE DFAF DGBG FGAc dcdA Bcde fdgf', 'FABc dcdA', 'fgab agfa', 'fgab agfa']  
X:1
L:1/8
M:4/4
K:D
 AB | AFAB AFAf |{a} g2 fe dBAF | ABde fdgf |{ef} e2 ef A2 AB | AFAB AFAf |{a} g2 fe dBAF | 
 ABAF EDEF | D2 DG FAAB || AFAB AFAf |{a} g2 fe dBAF | ABde fdgf |{ef} e2 ef A2 AB | AFAB AFAf | 
{a} g2 fe dBAF | AdAF EDEF | D2 Ac defg || afdf{a} geaf |{a} gfec dBAF | ABde fdgf | e^def =defg | 
 afdf{a} geaf |{a} gfec dBAF | AdAF EDEF | D2 Ac defg || afdf{a} geaf |{a} gfec dcBA | Bcde fdgf | 
 e=deg fgab | afdf{a} gfeg | fdBc dBAF | AdAF EDCE | DA,B,C D2 FE || DFAF DGBG | FGAc dcdA | 
 Bcde fdgf | ecAF EDFE | DFAF (3GGG BG | FABc dcdA | BGBd AGFE | (3DED CE D2 FE || DFAF DGBG | 
 FABc dcdA | Bcde fdgf | ecAG FAEA | DFAF (3GGG BG | FABc dcdA | BGBd AFEF | D2 ag fgab || 
 agfa gfeg | fdBc dBAF | ABde fagf | e^deg fgab | agfa (3gag (3fgf | edBc dBAF | AdAF EDEF | 
 D2 ag fgab || agfa gfeg | fdBc dBAF | ABde fagf | e^deg fgab | agfa (3gfg ba | gfec dcBA | 
 BcdB AGFE | DA,B,C D2 ||  