Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/4
K:D
['abag fd d2', 'z2 fdge fddc Beed cA A2 fdge'  
X:1
L:1/8
M:2/4
K:D
 abag | fd d2 | Beed | cA A2 | abag | fd d2 | Bdce | d2 z2 :: fdge | fddc | Beed | cA A2 | fdge | 
 fdge | Bdce | d2 z2 :|  