Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:6/8
K:D
['DDD DEF EDB, DB,A, DED DEF ABA', 'ecA GAB ABc def ecA a2 a'  
X:1
L:1/8
M:6/8
K:D
|: DDD DEF | EDB, DB,A, | DED DEF | ABA F2 A | d2 B AFE | FED B,DA, | DEF AFE |1 DED DFE :|2 
 DED DBA |: dfa gec | fdB ecA | GAB ABc | def ecA | a2 a agf | gag gfe |1 (3fga f edc | dAF DBc :|2 
 fdB ecA | dAF BGE ||  