Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:D
['BcdB A3 B', 'f3 d'  
X:1
L:1/8
M:2/2
K:D
 A2 AB AFED | B2 BA BcdB | A3 B AFED | gfed BcdB | A3 B AFEF | DBBA BcdB | A3 B AFED | gfed Bcde || 
 f3 d g3 e | f3 d Bcde | f2 df gefg | afed Bcde | f3 d g3 e | f3 d Bc d2 | defg afbf | afed BcdB ||  