If it is copyrighted, then you need to contact the publisher with a letter of inquiry informing them of what you want to do. If it is in public domain, you can adapt it for free, no contracts necessary. I'm not sure if the pd laws for music apply to literature or not.