Hit songs can seem like magic and those who produce them, wizards. But what’s the key to their sound craft? It may be more mindful than magic.