Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:Dmix
['(3cBA (3BcB d2 (3cdc (3BAG (3AAG (3BAG', '(3efg a>ba>g f>ga>f'  
X:1
L:1/8
M:4/4
K:Dmix
|: (3cBA | (3BcB d2 (3cdc (3BAG | (3AAG (3BAG A>B (3cBA | d>^cd>e d2 (3=cAF | G2 (3AGF (3DDD D>E | 
 (3FED (3EFG A2 (3gfe | d>^cd>e f>d (3AGF |[M:2/4] G>AG>F |[M:4/4] D2 D2 D2- :: D>g | 
 f>ed>e f>d (3efg | a2 (3bag f>g (3agf | (3ggf g>f g>ba>f | g>ag>f d2- d>g | f2 (3def f2 (3efg | 
 a>ba>g f>ga>f | g>ag>f d2 d2 | d2 (3efg a>ba>g | f>ga>f g>ag>e | f2- f>e d>cA>B | 
 c>B (3c^cd e>f (3gfe | a4 A2 A>G | F>GA>B c>B (3cde | d>cA>F G>AG>F | D2 D2 D2- :|  