Craft a musical piece that integrates the provided melodic theme and the corresponding alphabetical pattern.
X:1
L:1/8
M:2/2
K:D
['DEFA d2 fe dBBA B3 d', 'afdf gfed cdef g2 gf gbag faaf']  
X:1
L:1/8
M:2/2
K:D
 dA A2 DEFA | d2 fe dBBA | B3 d ABde | fede fe e2 |"^var." DF F2 DEFA | d2 fe dBBA | B3 d ABdB | 
 AFEG FD D2 :: faab afdf | gfed cdef | g2 gf gbag | faaf egfe | dB B2 AF F2 | DFBF ABdf | 
 afef dBAF | A2 ag fd d2 :|  