Using the provided motif, produce a musical composition that follows the prescribed musical form.
X:1
L:1/8
M:2/4
K:none
['AF/G/ AB Ad f2 Ac', 'ec/d/ ee fd/e/', 'd/d/d GB B/B/B', 'BA GB dg g>f e>d dB BA'  
X:1
L:1/8
M:2/4
K:none
[K:D] AF/G/ AB | Ad f2 | Ac !>!e2 | FA !>!d2 | AF/G/ AB | Ad f2 | Ac e>c | d3 z :: ec/d/ ee | 
 fd/e/ ff | dc c>B | BA F2 | ec/d/ ee | fd/e/ fd | cA f>e | d3 z :|[K:G] Bd d/d/d | !>!e2 !>!d2 | 
 GB B/B/B |"_c" !>!c2 !>!B2 | AA/A/ AA | A"_c"c F>A | GB e>^c | d3 d/"_c"c/ | Bd d/d/d | 
 !>!e2 !>!d2 | GB B/B/B |"_c" !>!c2 !>!B2 | AF/G/ Ad/f/ | gd/e/ fe/d/ | ^cA B^c | d3 g |: 
 g>f f"_c"c | e>d dB | B/"_c"c/c BA | GB dg | g>f f"_c"c | e>d dB | B/"_c"c/c BA |1 G3 g :|2 
 G3 z |]  