Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/8
M:4/4
K:D
['Adfd gdfd', 'afbf afde', 'B2 AG BGAG', 'F2 Ad fdAF G2 Bd g3 B', 'gefg a2 fd afda |1 gece defg']  
X:1
L:1/8
M:4/4
K:D
 Adfd gdfd | Adfd ed (3Bcd | Adfd gdfd | efec d2 (3dcB | Adfd gdfd | Adfd ed (3Bcd | Adfd gdfd | 
 efec d2 fg || afbf afde | fded Bcde | afbf afde | fdec d2 fg | afbf afde | fded Bcde | afbf afde | 
 fdec d2 :| A | B2 AG BGAG | BGAG EFGA | B2 AG BGAG | EGFA G3 :: F2 Ad fdAF | G2 Bd g3 B | 
 ABce gece | defg afdA | F2 Ad fdAF | G2 Bd g3 B | ABce gece |1 dfec dBAG :|2 dfec defg |: 
 a2 fd afda | g2 e=c gefg | a2 fd afda |1 gece defg :|2 gece d3 B :|  