Generate musical tunes utilizing the specific pattern and the supplied motif.
X:1
L:1/8
M:2/4
K:D
['A |O Ad dd |{c} d2 dd'  
X:1
L:1/8
M:2/4
K:D
 A |O Ad dd |{c} d2 dd | egce |1{d} c2 BA :|2 d3 |: A | GFGA | (3ABA DE |{G} F>EFG | A2 D :|  