The playwright contacted his favourite musician through a fan website and the two ended up co-writing a musical