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=160
M:6/8
K:D
['FDF AFA', 'afa bag f2 e']  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 E | D2 D FDF | AFA dcB | BdB BAB | def edB |"^5" ADD FDF | AFA dcA | B/c/dB AFA |1 dAF ED :|2 
 dAF EF || A |"^9" dfa afa | bag f2 e | dfa afd | dfd ecA |"^13" dfa afa | bag f2 e | fdA B/c/dB | 
 AFD EFE |"^17" D2 a afa | bag f2 e | dfa adf | dfd ecA |"^21" dfa afa | bag f2 e | fdA B/c/dB | 
 AFD EDC | D8 |]  