Compose a piece of music that follows both the given musical theme and the letter-based structure provided.
X:1
L:1/8
M:4/4
K:D
['D2 FD A,DFD E2 GE B,EGE Ddcd', 'BAFG A2 (3cBA eAcA ABce afec B2']  
X:1
L:1/8
M:4/4
K:D
 D2 FD A,DFD | E2 GE B,EGE | Ddcd BAFD | EDEF EDB,C | D2 FD A,DFD | E2 GE B,EGE | Ddcd BAFD |1 
 EDCE DA,B,C :|2 EDCE DEFA || B2 BA B2 Bc | d2 cd BAFG | A2 (3cBA eAcA | ABce afec | B2 BA B2 Bc | 
 d2 cd BAFE | DEFA dfec |1 dBAF EFGA :|2 dBAF E4 ||  