Design tunes that follow the specified musical pattern while integrating the presented motif
X:1
L:1/8
Q:1/2=60
M:4/4
K:D
['a3 b (a>f)(ed)', 'AG F3 A (B>A)(B>d) e>def B3 b'  
X:1
L:1/8
Q:1/2=60
M:4/4
K:D
 (f>g) | a3 b (a>f)(ed) | (e>d)(ef) B3 d | (A>B)(AF) A2 (dA) | F2 (A>B) A2 (d/e/f/g/) | 
 a3 b (a>f)(ed) | (gf)(ed){c} B2 (f>e) | (d<B)(A<F) A2 (d>e) |{de} f2 (e>d) d2 || AG | 
 F3 A (B>A)(B>d) | e>def B3 b | a>b(af) (gf)(ed) | g>b (b/a/g/f/) e2 (a>g) | (ga)(bc') d'2 (c'>b) | 
 (af)(ed) B2 (f>e) | (d<B)(A<F) A2 (d>e) | (d/e/f) (e>d) d2 |]  