The “emotions” or “soul” element in any music, art or even things like eating an apple is what is known as the Hard Problem of Consciousness. Qualia are epiphenomena and hence not decernable by logic (math) or the philosophy of the naturally observable (science) itself.
@Progrez is wrong however in that Ai is nothing bút mathematics and therefore incapable of eliciting emotions, it doesn’t work on “math” in the sense that binary code that follows from that can be used to scan humanity’s (emotional) art and combine/remix and morph those into original pieces which do elicit emotions, in the same way that humans create. The ai (and humans) just dont understand why they do, just that they do. Same with the cycle of fifths that
@Nerio brought up.
it works (mostly) but we don’t know why it does and what exact qualia it generates for (each) human.
Ai or humans for that matter however don’t need to know why. They just need to employ it and there have already been instances of art competitions won by “crowd vote” (e.a. emotion over rule) by ai.
(or more accurately, and artist using ai)
An ai piece of “art” is in essence an unsteered semi random draw of averages. This is why ai cannot do éxactly what you ask of it and/or envision new concepts it has not “seen” before.
and.. most importantly
always needs human input to generate something