Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/8
Q:1/8=180
M:4/4
K:Amin
['A2 BA', 'bgag ede^f g2 ge dega bgag |1']  
X:1
L:1/8
Q:1/8=180
M:4/4
K:Amin
 A2 BA eABA | G2 (3BAG dGBG | A2 BA EABA | AGE^F GABG |"^5" A2 BA eABA | G2 Bd gdBG | A2 Bd edBA | 
 AGE^F GABG |"^9" A2 BA eABA | G2 Bd gdBG | A2 BA EA A2 | AE E2 GABG |"^13" A2 BA eABA | 
 G2 (3BAG dG (3BAG | ABcd edcA | AGE^F GABd ||"^17" ea a2 eaag | eg g2 eg g2 | ea a2 bgag | 
 ede^f (3gfe d2 |"^21" ea a2 bgag | ede^f g2 ge | dega bgag |1 (3e^fg ga ged/^c/d :|2 egga gedB ||  