Develop a musical piece incorporating the designated alphabet-based pattern and the supplied melodic theme.
X:1
L:1/8
M:4/4
K:D
['d A3', 'e3 d', 'AGFA GE E2 GEBE B3 A BdAG']  
X:1
L:1/8
M:4/4
K:D
|: d2 ce d A3 | BGED CDEC | Ddde d A3 | Bdce d3 A | d2 ce d A3 | BGED CDEG |1 FA A2 G3 B | 
 Aeed cdec :|2 FA A2 BGED | CDEC D2 z2 |: e3 d cded | cAAB cBcd | e3 d cded | cAGE AD D2 | 
 e3 d cded | cAAB cBcd | e3 d e2 de | cAGE AD D2 :: AD D2 ADBD | A2 GB AGFA | GE E2 GEBE | 
 B3 A BdAG | AD D2 dDBD | A2 GB AGFA | G2 EG BGED | CDEC D2 dB :|  