I too have written some books - minor ESL stuff. The royalties have been pathetically low and the publishers have turned down subsequent offers of material on the grounds that the bottom has fallen out of the ESL publishing market, especially for supplementary materials.
Now, I don't think my books themselves are much pirated - they're not at all well known. But the general principal these days is that teachers expect to get stuff for free (pirated or otherwise) off the internet. So as an author, my livelihood has been damaged.
And yet, I download pirated music, computer programs and books from the internet all the time, so I really can't complain when I lose out myself.
P.S. The vast majority of bands have such rotten recording contracts that even before widespread downloading, they made little or nothing from CD sales, yet prices of CDs were very high, especially in Europe.