The Tannahill Weavers perform an excelent Captain Ward (gae hame, gae hame, ye tinker, and tell your king from me, he may reign upon his dry land but I'll be king upon sea).
Burl Ives has the ballad in one of his books, which I can't find right now.
Sabatini based a large part of the Sea Hawk on Captain Ward's exploits. Was wondering if the lyrics couldn't be fiddled a bit to make a theme song.
The Barbary Corsairs raided all over Europe for hundreds of years, including the British Isles (some claim Sweden too), until the 18th century, then they were mostly a menace to Italy and Mediterranean shipping.
C. S. Forrester wrote a history on the American wars against them which is a good introduction.