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:3/4
K:D
['fg a2 fd AF DF Ac d^d', 'a2 b2']  
X:1
L:1/8
M:3/4
K:D
 fg | a2 fd AF | DF Ac d^d | e2 GF GA | B3 d cB | AB cd ef | ge ce Bc |1 d3 e fg | a4 :|2 d3 c de | 
 d4 |: AG | FA de fg | a2 ^g2 a2 | b2 ab af | g4 cB | AB cd ef |1 g2 f2 g2 | a2 b2 a2 | f4 :|2 
 ge ce Bc | d3 c de | d4 |]  