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
['dAFA DAFA dAFA D2 (3def ecAc', '=c Bg g2 Af f2 afec dcBA']  
X:1
L:1/8
M:4/4
K:D
 dAFA DAFA | dAFA D2 (3def | ecAc ecAc | acAc A2 (3ABc | dAFA DAFA | dAFA D2 (3def | ecAc acBA |1 
 BABc d2 (3gfe :|2 BABc d3 c || dafd cgec | dafd A3 =c | Bg g2 Af f2 | afec dcBA | dafd cgec | 
 dafd A2 (3Bcd | e2 ce aecA |1 BABc d3 c :|2 BABc d2 (3gfe ||  