Develop a musical composition based on the outlined framework and thematic material.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['d>d d2', 'e>e f>f g>g e>e'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
 a>a | f2 a>a f2 a>a | (3gfg e>e e2 g>g | e2 g>g e2 g>g | (3fef d>d d2 D>F | A2 F>A d2 A>d | 
 f2 d>d d2 a>d' | a2 f>a g2 e>g | f2 d>d d2 D>F | A2 F>A d2 A>d | f2 d>d d2 a>d' | a2 f>a g2 e>g | 
 f2 d>d d2 :| d>e | f2 f>f f2 g2 | a4 a^g/a/ b/g/f/e/ | e2 e>e e2 f2 | g4 gg/g/ a/g/f/e/ | 
 f2 a>a g2 g>f | b2 d'>d' d'2 c'>b | a2 a>a a2 b/a/g/f/ | e>e f>f g>g e>e | 
"_trumpet" (fdfa d'afd) | e>e f>f g>g e>e |"_trumpet" (fdfa d'c'fd) | e>e f>f g>g e>e | 
 d2 z f edec | d2 z"^f2 in ms" f edec | d2 z/ d2 dd | d4 |]  