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:C
['FGA B2 A', '(f/g/) aba', 'dAF dAF', '(f/g/) afd']  
X:1
L:1/8
M:4/4
K:C
 BEA ue2003 |[M:6/8][K:D]SOSOO .!fermata!PMTCO(3(MA/B/d/) | ded FGA | B2 A A2 (B/c/) | d2 d ede | 
 f2 d d2 (e/f/) | gag fed | efd cBA | BAG FGA | B2 A A2 :: (f/g/) | aba def | gab efg | aba fed | 
 e2 A A2 (f/g/) | aba fgf | efe d2 A | BAG FGA | B2 A A2 :: A | dAF dAF | B2 A ABc | dAF dAF | 
 G2 E E2 (3(A/B/d/) | dAF BAF | Adf a2 g | fed FGA | B2 A A2 :: (f/g/) | afd cBA | BGG G2 g | 
 bge efd | cAA A2 (f/g/) | afd gfe | afd cBA | BAG FGA | B2 A A2 :|  