Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/4
K:D
['z/ f/', 'c>e d/c/B/A/ ^G/A/B/c/ d2', 'ABA z/ F/ EFG z/ G/ GAG'  
X:1
L:1/8
M:2/4
K:D
 F>A G>B | A^GA z/ f/ | fee z/ f/ | edd z | F>A G>B | A^GA z/ f/ | fee z/ f/ | edd z :| 
[K:A] c>e d/c/B/A/ | ^G/A/B/c/ d2 | d>f e/d/c/B/ | A/B/c/d/ e2 | c>e d/c/B/A/ | ^G/A/B/c/ d2 | 
 dc/d/ e^G | BAA z :|[K:D] A/ | ABA z/ F/ | EFG z/ G/ | GAG z/ E/ | F/A/f/e/ d/c/B/A/ | ABA z/ F/ | 
 EFG z/ G/ | GAG z/ c/ | edd z :|  