G'day Celtaddict, Snuffy, Wolfgang and Bat Goddess,
I believe the old English equivalent term, for both songs and tunes that ran round your head, was a "maggot" - and there are many dance tunes from the Elizabethan period onward named (Someone's) Maggot.
Regards,
Bob Bolton