Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['a>g f>Af>e d2 A2 B<Gd>B A2 d>e', 'B<Gd>B A2 d>e', 'e>d B<Gd>B A2 d>e', 'B<Gd>B A2 d>e f>a^g<a =g>ec<A d4'  
X:1
L:1/8
M:4/4
K:D
 a>g | f>Af>e d2 A2 | B<Gd>B A2 d>e | f>df<a g>fe>d | f2 e2 e2 a>g | f>Af>e d2 A2 | B<Gd>B A2 d>e | 
 f>a^g<a =g>ec<A | d4 d2 :: f>g | a>df<a f2 e>d | B<Gd>B A2 d>e | f>df<a g>fe>d | f2 e2 e2 |1 f>g | 
 a>df<a f2 e>d | B<Gd>B A2 d>e | f>a^g<a =g>ec<A | d4 d2 :|2 a>g | f>Af>e d2 A2 | B<Gd>B A2 d>e | 
 f>a^g<a =g>ec<A | d4 d2 |: A>B | d7/2 e/ f2 e>d | B<Gd>B A2 d>e | f>df<a g>fe>d | f2 e2 e2 A>B | 
 d7/2 e/ f2 e>d | B<Gd>B A2 d>e | f>a^g<a =g>ec<A | d4 d2 :: f>g | a>df<a A>df<a | f>df<a f2 e>d | 
 a>df<a g>fe>d | f2 e2 e2 |1 f>g | a>df<a A>df<a | B<Gd>B A2 d>e | f>a^g<a =g>ec<A | d4 d2 :|2 
 a>g | f>Af>e d2 A2 | B<Gd>B A2 d>e | f>a^g<a =g>ec<A | d4 d2 ||  