How to write, according to the woman who wrote some of Pink Floyd’s biggest hits