Construct melodies using the designated musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['(3ddd D>E', 'd2 d>g f<d (3def g2 (3fed c>A', 'd2 f>d (3gge f>d (3efg (3aaa (3ABc'  
X:1
L:1/8
M:4/4
K:D
|: (3ABc | (3ddd D>E F>GA<F | B>E (3EEE G>AB>c | (3ddd D>E F>GA<g | (3fed (3ABc d2 :: d>g | 
 f<d (3def g2 (3fed | c>A (3AAA c>de<g | f>d (3ddd g>fe>d | (3cBA (3ABc d2 :| f>d (3gge f>d (3efg | 
 (3aaa (3ABc d2 ||  