Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:4/4
K:D
['(3efg a2 a>f g>ba>g f>df>a g>fe>f d2', 'a2 a>f'  
X:1
L:1/8
M:4/4
K:D
|: (3efg | a2 a>f g>ba>g | f>df>a g>fe>f | d2 d>e (3fed d>c | d>ed>c A>G (3EFG | A>B=c>A d>^cA>G | 
 F2 F>G A>Bc>A | d>cd>f e>dc>e | d2 d2 d2 :: A>d | d>cd>e f>d (3efg | a2 a>f d>ef>g | 
 a2 a>f g>ba>g | f2 e>c d>ef>g | a2 a>f g>ba>g | f>df>a g>fe>f | d2 d>e (3fed d>c | 
 d>ed>c A2 (3efg | a2 a>f g>ba>g | f>df>a g>fe>f | d2 d>e (3fed d>c | d>ed>c A>G (3EFG | 
 A>B=c>A d>^cA>G | (3FED (3EFG A>B=c>A | d2 d>f e>dc>e | d2 d2 d2 :|  