Something like this, i would also make sure you have a check that ensures you don't go over the song limit because that might cause an infinite loop.
Code:
foreach e in $effects[Polka of Plenty, Fat Leon's Phat Loot Lyric, Carlweather's Cantata of Confrontation, Empathy]
{
while (have_effect(e) < my_adventures())
{
acquireBuff(e);
}
}