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
['A,B, CD FE DB, DA, DF Ad']  
X:1
L:1/8
M:4/4
K:D
 A,B, CD FE DB, | DA, DF Ad B^B | BA =GA Bd gf | ed cBAGBAF | EC D2 FEDB, | DA,DFAdB^B | 
 BA=GdBGFd | AFEDCED3/2 | ef =ga ec Ae | cA Ec AE CA, | B,C A,B, DF Bd | cB AG AB cd | 
 ef ga ec eA | ce cd AF AD | FA FG EG Bg | fe dc [eA] [eA]2 [Ae]4 |]  