Develop a musical composition based on the outlined framework and thematic material.
X:1
L:1/8
Q:1/2=120
M:4/4
K:D
['d2 d2 edcd', 'g2 faaa a2 a2 bagf ef g2'  
X:1
L:1/8
Q:1/2=120
M:4/4
K:D
 dddd d2 d2 | edcd efge | fddd d2 d2 | edcd ef g2 :: faaa a2 a2 | bagf ef g2 | eggg g2 g2 | 
 agfe fg a2 | dddd cccc | BBBB A2 A2 | gggg f2 b2 | agfe d2 d2 :|  