Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/16
M:2/4
K:D
['E2^DE F2G2 AGAB c4 edB2'  
X:1
L:1/16
M:2/4
K:D
"D" A2A2{/A} d2d2 |{/d}"A7" c2c2{/c}"G" B2B2 |{/B}"A7" A2A2{/A} E2E2 |"^tr""D" F2D2{/E} DCD2 | 
 A2A2{/A} d2d2 |{/d}"A7" c2c2{/c}"G" B2B2 |{/B}"A7" A2EF AGFE |"D" D2DD D2 z2 :| 
[K:A]"E7" E2^DE F2G2 |"A" AGAB c4 |"E7" edB2 edB2 |"A" cBAG"^tr" F2E2 |"E7" E2^DE F2G2 | 
"A" AGAB c4 |"E7" edB2 edcB |"A" A2A2 A2AA |:[K:D]{/A}"A7" c2c2 cBAG |"D" B2B2 A4 | 
"G" B2B2"A7" BAGE |"D" F2D2{/E} DCD2 |{/A}"A7" c2c2 cBAG |"D" B2B2 A4 |"A7" EA^GA =G2C2 |1 
"D" D2F2 D2AA :|2"D" D2F2 D2D2 ||[K:G]"G" G2GB GDGB | d2dg d2B2 |"C" c2ce Gceg |"G" d6 B2 | 
"C" c2ce"D7" ceAc |"G" B2Bd BdGB |"D7" A2Ad A2Ad |"G" B2BA G2B2 |"C" c2ce"D7" ceAc |"G" B2Bd BdGB | 
"D7" A2Ad A2Ad |"G" G2B2 G2 z2 |]  