Create a musical composition based on the alphabetic representation of the predetermined pattern and the given melodic theme.
X:1
L:1/8
M:2/2
K:D
['(Ac) dB (3(BBB) (cB)cA dcdA FDFA (3(ddd)', 'fefg a2 ab agfe', 'defe dcdA BdAF']  
X:1
L:1/8
M:2/2
K:D
 (Ac) | dB (3(BBB) (cB)cA | dcdA FDFA | (3(ddd) (Bd) cBAF | AGFD EFAc | dcBd cBcA | dcdA GFEF | 
 (3(DDD) (FE) DFAF | GABc dcBc |] dcde fefg | a2 ab agfe | dcde fegf | efed cABc | d2 de fefg | 
 a2 ab agfe | dB (3(BBB) (cB)cA | dAFD GABc |] defe dcdA | BdAF GABc | (3(ddd) (fe) defg | 
 agab agfe | defe dcdA | BdAF GFEF | (3(DDD) (FE) DFAF | GABc d2 |]  