Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/4
M:3/4
K:D
['D3- D']  
X:1
L:1/4
M:3/4
K:D
 z2 D | D3- | D D D- | D3/2 D/D/ F/ | E A,2- | A, z D | F D D/E/ | D3- | D z2 | z2 D | D3- | 
 D C D | B, A,3/2 D/ | F D E | D3- | D z D | D3- | D B, B, | B, A,2- | A,2 D | F D E | D3- | D z2 |]  