Develop melodic phrases by utilizing the given motif and following the predetermined musical arrangement.
X:1
L:1/8
Q:1/4=100
M:3/4
K:D
['(fa)(fd)(fa) A2', 'd6 (fa)(fd)(fa) A2 (Bc) d2 (dc)(dB)(ed) c2'  
X:1
L:1/8
Q:1/4=100
M:3/4
K:D
 (fa)(fd)(fa) | A2 (Bc) d2 | (fg)(bf)(ba) | g2 (fg) e2 | (gb)(ge)(gb) | (fa)(fd)(fa) | A2 d2 c2 | 
 d6 :: (fa)(fd)(fa) | A2 (Bc) d2 | (dc)(dB)(ed) | c2 (Bc) A2 | e2 (dc)(BA) | ^G2 (EA)(EB) | 
 c2 BA^GB | A6 | (fg)(af)(ba) | g2 fg e2 | (EF)(GE)(AG) | F2 EF D2 | fgaABc | defABc | d2 e2 c2 | 
 d6 :|  