Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:6/8
K:Amin
['ABA a3 age g3', 'c2 c'  
X:1
L:1/8
M:6/8
K:Amin
 E | ABA a3 | age g3 | cdc edc | dBg dBG | ABA a3 | age g3 | ege deg | edB A2 :: B | c2 c cec | 
 d2 d ded | c2 c edc | dBg dBG | c2 c cec | deg a2 g | ege deg | edB A2 :|  