Craft a musical piece that integrates the provided melodic theme and the corresponding alphabetical pattern.
X:1
L:1/8
M:4/4
K:Amix
['ed cAAB cded', 'A Bdef gfed cdef e2 cA (3Bcd']  
X:1
L:1/8
M:4/4
K:Amix
 ed | cAAB cded | cAAG E2 ed | cAAB cded | BAGB d2 ed | cAAB cded | cAAG E2 ed | cAAB cded | 
 BAGB d3 A || Bdef gfed | cdef e2 cA | (3Bcd ef gfed | BAGB d3 A | cded cded | cdef g2 ge | 
 cA A2 ecef | gfge dged ||  