Compose musical pieces based on the predetermined pattern and incorporating the given motif.
X:1
L:1/8
M:2/2
K:D
['', 'd2 ef g2', 'fdec BEEF'  
X:1
L:1/8
M:2/2
K:D
"^A" |: | d>D (3.D.D.D (FD)FA |1 d2 (ef) gfge :|2 BEEF GABc :|3 d2 ef g2 fg | afge fdec | 
 BEEF GABc ||"^B" |: | d2 (fd) adfd |1 d2 ef g2 fe :|2 BEEF GABc :|3 d2 ef g2 fg | afge fdec | 
 BEEF GABc |]  