Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:D
['', 'ADDE FEFG', 'fdec Addc AGFG AB=cA G2 :|2 f2'  
X:1
L:1/8
M:2/2
K:D
 (dB) |: ADDE FEFG | A>D (3(DDD) cABG | ADDE FEFG | AdcA |1 GcBc :|2 G2 |]: (FG) | Addc AGFG | 
 Adde |1 fdec | Addc AGFG | AB=cA G2 :|2 f2 (3(efg) | afge fdec | d=cAF G2 ||  