Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:Amix
['Aeaf gefd g2 dB', 'g2 dB'  
X:1
L:1/8
M:4/4
K:Amix
|: e | Aeaf gefd | g2 dB GBdB | Aeaf gefd | g2 dB e2 A :| e | A2 eA fAeA | g2 dB GBdB | 
 A2 eA fAeA | g2 dB e2 Ae | A2 eA fAeA | g2 dB GBdB | Aeaf gefd | g2 dB e2 A ||  