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
['', 'd2 dc d2', 'd2 dc d2']  
X:1
L:1/8
M:4/4
K:D
 AG |: FAdc dAFA | Ggfe d2 ef | gecA ^GA=GE | DEFB A2 AG | FAdF Ggec | defb a2 ag | fdAF Ggec |1 
 d2 dc d2 AG :|2 d2 dc d2 fg |: a2 a^g a2 ga | b2 a2 abag | fedc defg | a^gab a2 a=g | fdAf ecAF | 
 GA (3Bcd A3 g | fdAF Ggec |1 d2 dc d2 fg :|2 d2 dc d2 AG ||  