Streaming and social trends are rewriting how songs are written—and who gets heard ...