Well, that's LLMs. I'm doing a PhD in computer science and music right now, focused on programming languages for music and algorithmic composition. There are other (IMHO) more interesting techniques that can be used in music and that used to be called AI, with which you do have control over and understanding of exactly what's happening, such as constraint satisfaction programming and dynamic search.
Ge Wang (professor in my field) wrote a great article on why LLMs are so uninteresting from a musical perspective. https://hai.stanford.edu/news/ge-wang-genai-art-is-the-least...