Create a composition based on the provided motif, following the specified musical structure.
X:1
L:1/8
Q:3/8=90
M:4/4
K:D
['A>BA d2 d efg f3 gBB c2', 'A2 A dcd', 'ABc BAG FED G2 G G2 c', 'dcB cde efg A2 A A2 B'  
X:1
L:1/8
Q:3/8=90
M:4/4
K:D
|: A>BA d2 d | efg f3 | gBB c2 d | edc d3 :|[M:3/8][Q:3/8=60]"^Largo" d/e/ | f2 d | B2 c/d/ | 
 e2 c | A2 A |[M:6/8]"^NB"[Q:3/8=90]"^Allegro" dcd BcA | BA^G A2 A | dcd Bcd | ede cde | fgf efd | 
 edc d3 ::[M:6/8][K:G][Q:3/8=90] D | EFG GFE | A2 A ABc | BAG FED | G2 G G2 :: c | Bcd efg | 
 d2 d dcB | cde efg | A2 A A2 B | cde dcB | ABG c2 B | ABG FED | G3- G2 :|  