Behind the Commit · Episode 4 · 3 December 2025 · 32 min

AI-Generated Music: Tech, Copyright & Real-World Applications with Mateusz Modrzejewski

Mia Bajić talks with Mateusz Modrzejewski about AI-generated music.

Mateusz Modrzejewski is a professional musician, AI researcher and assistant professor at the Warsaw University of Technology. They discuss how AI music generation works, what professional musicians think about it, data scraping and data poisoning research, copyright questions, the AI Song Contest, and where AI tools can support the creative process. The episode was recorded live at Venture Café at PyWaw in Warsaw.

Recorded at PyWaw, Venture Café, Warsaw (live).

About the guest

Mateusz Modrzejewski

Professional musician, AI researcher and assistant professor at the Warsaw University of Technology.

Chapters

Links & Resources

Full Transcript
[00:00]

You know, like highly automated musical, generative AI, which kind of defeats the purpose. So there's either the, what we would call auto regressive neural codec models, or there's this idea of diffusion models.

[00:17]

A generative model for lullabies and the guy trained it on, like short melodic lullabies for children, and the guy trained it on his like five or six year old daughter.

[00:33]

Hi, we're in Warsaw at PyWaw at the Venture café, and I just caught Mateusz. Mateusz is a professional musician, software engineer, researcher, and assistant professor at the Warsaw University of Technology.

[00:44]

Hi, everybody. Mateusz, what are your thoughts about AI and music? Yeah, well, that's the big question, right? So I have some conflicting thoughts and views on the topic, so I've been a professional musician

[00:58]

for a lot of years, so I know what's the feeling of being on stage and practicing on your instrument, and putting your heart into music, into performance, et cetera. But then also, again, a part of my heart is at research,

[01:18]

at machine learning, at programming, et cetera. So I think in general, my whole view of this whole hot topic that is music AI is that I really like, and I'm really interested in the parts that really empower new interfaces for musical expression,

[01:42]

and really empower the artists. And I'm not really so much like for the highly automated musical generative AI, which defeats the purpose, it's very hard for me to find space

[02:03]

where that would be really interesting, I think. So you said that AI has some good and bad sides, so what are the good sides of it? Well, in modern music AI, what do you use the most is neural networks.

[02:20]

And neural networks are just these fascinating pieces of maths and programming that are kind of super flexible to learn complex data transformations, like as long as you're able to express what you're trying to learn with code and maths,

[02:41]

and you have the data to support it, you're basically in many cases able to build a tool for that transformation, right? Oftentimes better than a human would do it, right? So if you kind of think about neural networks

[02:59]

as these creative machines that you can use for audio style transfer, or that kind of allow you to explore or modify audio in ways that were previously unavailable, I think that's great.

[03:15]

I think that there are also many applications in learning music, learning to play music, so automated software for vocal analysis or for tracking your piano progress or whatever. So I think the empowering side and the new interfaces side

[03:35]

is really, really compelling. And then on the other side, like obviously there's this case for copyright. So again, as a performing artist and musician, I know how hard it is to make a living as a musician.

[03:54]

So it's getting even harder when streams of revenue, such as royalties from your music getting played, et cetera, when that's being compromised or that model seems not to work the way it works, right, or there are these legal and ethical disputes

[04:19]

that kind of leave you wondering. So I think as long as we think about neural networks as this kind of next step in the evolution of musical instruments, I think we're in for a lot of super interesting inventions and ways of expressions.

[04:41]

And how do musicians feel about it? Do they do you think that they feel threatened or do you think that they also see opportunities? - Yeah, well, well, a big part of musicians, they think that the researchers

[04:58]

are the bad guys, right? Cause the algorithms are here to, to replace blah, blah, blah, blah, it's all that, but musicians are also like super tech savvy people. And there's like so many musicians among programmers

[05:18]

like I'm sure that people who are listening to us right now, like many of them play some sort of instrument, right? And musicians are gear heads, they love gear, they can spend hours talking to you know about guitars and strings and pedals and effects and drum bass

[05:35]

and drum sticks and symbols and whatever. And you can argue you know for hours about that. So a part of this new technology is just basically like new cool gear that you can create like cool new sounds with and it just you know, it opens up this kind of new

[05:57]

dimension of tinkering and kind of tweaking algorithm. Sometimes it also, it kind of requires you to have a new skill set. For instance like running Python scripts or perhaps you know, like running the training of some model or whatever,

[06:19]

like it's hard to expect, you know, someone to like learn Python and full just to just to explore some creative possibilities, but many of these solutions, you just need to run some sort of script, right? And a couple of years ago,

[06:34]

it wasn't super common for musicians like to do home recording or to be you know, like very knowledgeable about mixing technique. And nowadays almost everybody knows you know, like at least a little bit, right? So so that part became really like democratized and became really

[06:54]

accessible. And I think that the cool musical technology that's that some of the neural networks offer, that's going to become like democratized and accessible as well. And do you think it's because of LLM's?

[07:08]

Because nowadays lots of people learn programming and program thanks to LLM's. So do you think that musicians like do it just because they feel like they have to just to catch up, you know, like, try new things?

[07:20]

Yeah, yeah, yeah, yeah. And I think also it's like easier than ever to start programming, right? So so if you're using like an LLM assistant, you can just, you know, take the the link to the repo or or or whatever, what you, you know,

[07:36]

don't know how to do just ask an LLM like, Hey, how do I run this script? And if you get like a trace back and like a value error or you can ask like, Hey, what's this thing and how do I fix it? So I think, you know, like getting into programming has gotten

[07:51]

like more accessible than ever. And it's a really good time to use that knowledge and that skill, you know, for, you know, maybe something creative, right? So musicians create music and AI models often are trained on this music,

[08:11]

to publish the YouTube and Spotify, etc. Is that a problem? Yeah, that's a big problem. That's a big problem. Because, you know, there's like this huge legal gap right now that's

[08:24]

being, it's like a melting pot right now. So there's, you know, how does it work? If I were a musician and I recorded a song and I published a YouTube and everywhere, right?

[08:37]

How can I prevent those companies to train their models on my data? Well, there are initiatives like in the European Union, like the like the opt out mechanism, etc. But in practice, it's not working very well. So we see that if an aggressive start up wants to just

[08:58]

scrape your stuff from whatever you wherever you put it, they just do it, right? And so there is this interesting research area that's called the data poisoning actually. So you can kind of inject like it's [...] steganography.

[09:23]

That's how I should say, it's steganography. But in like a more kind of, you know, like deep learning modern approach, right? So you kind of inject some like poison pill that makes the data either uninformative for the model.

[09:43]

So the model doesn't to learn anything from it. Or even you can make the model kind of learn, you know, something opposite to what you planned, but that technology is not well researched for audio. Sometimes it introduces artifacts, sometimes and it has to be notable, right?

[10:01]

You don't want to break your music for it. Is it done by artists or is it done by those providers? For example, YouTube Spotify, et cetera. Yeah, I don't think there's there's any like data poisoning that has been, you know, put into production at scale.

[10:15]

There's there's a lot of interest. So it's like a research area. It's more like a proof of concept or like a conference paper, a type of, you know, level of advancement, but there's no good way of defense right now, right?

[10:34]

So there's there's a bunch of legal lawsuits going going on right now in a bunch of courts here and there. There's also no good way of reverse engineering and neural network. But this is also a research area. There are the research areas of explainability and interpretability.

[10:56]

This is also what we do here at Warsaw University of Technology and those are super interesting topics, not only because of the effects, because you really kind of get to, you know, kind of demystify this black box and look into its internals and find, you know, like the circuits that correspond to like human interpretable concepts.

[11:20]

But yeah, but those are still those are still like research topics and not something that someone has already put into production at scale. So you mentioned that AI music is a black box. Yeah. So can you explain how does it work?

[11:35]

So if I have, if I type in a prompt, if I type in anything, so like what happens in the background, right? Right. So what you use nowadays is, it's like almost exclusively neural networks.

[11:52]

So this is like the family of of AI algorithms that get that approximate complex transformations of data and it's trained on data and you use GPU. So this is why NVIDIA is worth so much, right? But what happens actually is, like, audio is a complicated modality. Like for a computer, audio is like this long, one-dimensional sequence of

[12:19]

numbers. It's like a list, right? And it's like a super long list. If you have the, the, if your audio is like sample, that a standard sampling rate of like 44.1 kilohertz, that means each second of audio is like 44,000

[12:36]

numbers. So in order to generate 10 seconds, you need like almost half a million numbers. The human ear is like very, it hears very little artifacts. It's much easier to fool the eye than to fool that ear. So basically when you're generating raw audio, what you're doing is your

[12:59]

modeling, like, very complex relationships between numbers that are sometimes like hundreds of thousands numbers. So in general, it's like a very complex task. So basically, what we've come up with is this idea, and this is probably the most scientific thing I'm going to say today is this idea of the

[13:19]

discrete representation learning. So basically you have a model that kind of compresses all possible sounds into like this alphabet that you can then kind of generate sequences off and then kind of upscale that back to audio. So basically like there's this learned latent alphabet that kind of, you

[13:45]

know, then gets upscale to audio. That's one of the ideas and another idea that you might have heard of is this idea of diffusion. So there's either the, what we would call auto regressive neural codec models, or there's this idea of diffusion models, which in a nutshell,

[14:04]

they take noise and they kind of distill that noise into like the precise audio you want. So these are kind of abstract and really weird ways because many people just think that neural networks just take audio and kind of cut it up like a sampling machine and rearrange the samples and like call it a day, right?

[14:26]

So actually there's, there's a couple of very interesting mechanisms going on. Like, you know, I'm biased in how I think about this, but, but there is some like, you know, like audio understanding going on both in the, like dimension of the content and like, what is there in this music is this low voice or high voice or is this a guitar or a trumpet?

[14:51]

And both in terms of like the signal is the signal good quality. Is it, does it have, you know, like an in noise, like, etc. So, there's a bunch of like signal understanding and content understanding going on. And what are some technologies that you use for this?

[15:08]

So for example, can I train my own model? Yeah, like locally. Yeah, yeah, yeah. So there's if when people ask what's the first model that I could try and play with, there's this awesome model developed at IRCAM.

[15:27]

That's, that's a research facility, like a creative machine learning signal processing type of institution in France. And there's this model called RAVE. It's real-time audio, variational auto encoder. And it's a pretty small and very fast neural network.

[15:45]

You can train it in like a day or two, like using free online resources on like a small set of audio and it's a style transfer neural net. So then you can perhaps like sing into the net. And if you, if you trained it on, for example, like trumpet or drums or something else, it's going to try to change your voice into that

[16:09]

instrument. And the most fun part is when you try to do like a totally out of domain style transfer, that is to kind of use an input signal that, that is as far as possible from what the neural network was trained on. So then you get kind of these weird results.

[16:31]

And you also get this nice feature that rave models are kind of interactive and steerable. So there are ideas to encompass neural network within, a neural networks within like VST plugins, which is a very musician, friendly format. So you get your knobs, you get your keys, you get like your control surfaces

[16:54]

you're used to. So yeah, I'd say RAVE, real-time audio, variational auto encoder. The original author is Antoine Caillot and the GitHub repo is like open, RAVE is pip installable. So, you can just, I would start over there.

[17:14]

And most of those are using Python, right? And absolutely most of those tools are using Python. I mean, there are a couple of interesting Python libraries for audio processing. Like, there's the classical, librosa, there is, there is pedalboard, there is pyo if you need like low-level synthesizer stuff.

[17:33]

If you're more on the scientific or like signal analysis side, you're going to use, you know, like numpy and scipy and those tools. Then, you know, then there's all of these like little weird models developed in some weird communities of people like who are in between like creative computing and programming and music and and and and so sometimes of course you

[18:04]

spend like an hour or two or or more like trying to get like an obscure repo to work, but there are many like small models that that work out of the box. And most cases they do much more interesting things than just, you know, like consuming a prompt and spitting out some some slop, right? And what is the impact of AI on the music industry?

[18:27]

Because I've read that the concerts are getting bigger. Yeah. On the other hand, music since done like AI and many people are afraid of it because they are threatened by it. What do you think will happen in five or ten years?

[18:39]

Do you think that AI music will become more popular or do you think on the other hand that concerts and music produced by humans will be more popular because people just don't want AI? Yeah, well, I think that like live music is, it's going to be fine. I mean, people just like to see other people doing difficult things, right?

[19:02]

So, so like if you go to a concert and you see like an amazing, you know, like piano player or or amazing band or whatever, like like that's that's just awesome, right? I mean, there's just some kind of inner mechanism that makes us, you know, find doing difficult stuff, especially in public, like super compelling, right?

[19:24]

And I think that's not going away. I think there are some business applications where the threat is, is like really big. That's like, you know, like like all sorts of background music or like music for content that you don't like elevator music or like L.

[19:44]

Yeah, and you know, and and it's all fun and good, but like there's a significant amount of people who's day job it is, you know, to to to write music like that and create music like that and there's nothing wrong with that, right? So, there are like professional groups that that feel threatened.

[20:06]

There are people who feel, you know, injustice in terms of the royalties, right? Because because you, I mean, you know, like it might be a weird thing, but like artists like getting paid for their work, which is not obvious to everybody. It seems. So yeah, so so there is a significant amount of pushback.

[20:38]

However, that's mostly for you know, like the most, you know, like the most superficial kind of prompt goes in, slop goes out family of solutions, right? Whenever you start presenting these topics as, you know, like a viable extension of your like creative arsenal and like of your ways of expression, you kind of start doing like the

[21:08]

quirky, interesting stuff like like the environments for like evolutionary composition, like for instance, there's this awesome lab in in Iceland, the intelligent instruments lab and they do like a lot of these programming environments where you process media in in in different ways. or there's this Polish collective named Panganerator, which... Mr. Generator? Yeah,

[21:36]

precisely where they build their own weird instruments that have you know, like touch sensitive surfaces or or like lasers or scientists love lasers, right? So or like you play with light or other mechanisms and there's always like a tiny bit of like machine learning or like algorithmic composition going on there and and that I think is like super important.

[22:02]

This may not be music that you know gets played on on the radio, it's more like music you would you would hear on an you know like an experimental festival or or in venues, you know, that that kind of accept like more experimental stuff, but that community of artists I feel is like very curious, welcoming and is very fast to absorb all of the technical nuances. To me it sounds like the barrier to participate and get paid got a bit higher because if you need

[22:36]

any kind of music like you are shopping mall for example you don't even artist anymore, right? So if you're a top artist of course you will always get paid. The question is if it's enough like when we compare it to other industries but you will always have a job right but then like if you're just

[22:54]

an average one or below average one businesses would probably prefer just to generate some AI music then to pay artists. Yeah I know right? Yeah absolutely. And you know and apart from that like we still don't really know or understand like what are the you know like what's the legal approach is it even legally like to to you know like stream an endless stream of slop in your shop or whatever I mean if you're doing that I mean that's your problem I guess but it doesn't really

[23:35]

sound like you know like an interesting sustainable and most of all like a fair model for the artists right? So it's always going to be no easier for the ones that are already big and we've already seen this with recommender systems right? So as people are kind of getting more and more annoyed by you know like AI slop and like the sloppification of the internet and like bots that kind of make many you know portals the

[24:11]

glass and less usable right? It's kind there also has been like a bit of pushback for recommender systems because they are very you know kind of artificial and maybe not always you want to be served something by an algorithm maybe like this you know kind of more traditional way of like talking about music with people who sometimes are more knowledgeable about some genre and then you're more knowledgeable maybe like that's going to make a comeback in

[24:46]

in some time but yeah but the bias is there not only in the applications of of you know like like the the most scaled up business applications of of neural networks but also you know about the way we we consume music and the bias in recommender systems so so yeah it is difficult for for the for the small artists and like every big artist was a small artist at some point right? So I think

[25:15]

we should be definitely thinking about that more and more and more and others some fun AI projects. So I heard that there is an AI song contest, so something like Eurovision for AI. Yeah. Tell us a bit more about it. So since since a couple of years, I don't remember what was the first year actually, but since a couple of years,

[25:39]

there's this very nice and fun AI song contest which is called the AI song contest and basically what you do there is you submit your song co-created with AI and you have to use the AI in creative ways so apart from the music itself you also you also describe how you use the AI so obviously if a prompt goes in,

[26:12]

slop goes out, that's not a very good submission for this one. What is a good submission?One that I remember really well was called Ada's LullaBye. So it was a generative model for lullabies and the guy trained it on like short melodic lullabies for children. And the guy trained it on his like five or six year old

[26:37]

daughter. So the melodies that were putting her to sleep the fastest those were being used in the next iteration of training and after like a couple of hundred iterations he came up with this like personalized lullaby and that's just awesome. I mean like how cool is that, right? There are also some some other ideas, like one of the winning submissions actually I think in 2022 was this submission that kind of used a differentiable digital signal processing model to

[27:14]

kind of get the tuning system from a tie ethnic instrument into into like Western instruments. And to kind of, you know, recreate the characteristics of the kind of the trills and the articulation. So like stuff that is like extremely cool and and so yeah the AI song contest is like one of those venues. And it's and it got pretty big actually.

[27:46]

I think this year in the jury there's Jordan Rudus from Dream Theater, there's people from MIT, from Berkeley College of Music, and like a couple of other respectable institutions. So how many songs were there? Oh, I think, it's definitely in the tens or even in the hundreds but about in the final it's like about like 10 or 20 submissions. I think the community voting for this year's edition

[28:17]

might still be going on so yeah be sure to check that out. Planning to submit a song yourself? You're a musician and an AI person, so? Yeah, it's too late this year, but next year. Who knows, who knows, maybe, maybe me, or maybe me with some colleagues, or maybe well reactivate some of our older projects, or maybe with some students. We're also kind of starting to work with the musical university here in Warsaw, the Frédéric Chopin Musical University.

[28:55]

We're working with the Society of Author ZAIKS, we're working with with some other institutions as well. So, it may just happen, it may happen in the foreseeable future. And if someone would like to learn more about AI music, what are some interesting resources? Yeah, that's a really good question. So I think

[29:20]

that a great place to start is the tutorials from ISMIR. So ISMIR is the International Society for Music Information Retrieval Conference. That's like the primary kind of music informatics conference and each year there's like a set of tutorials and those are always extremely high quality. So there's this one

[29:48]

from a couple of years ago called music classification beyond supervised learning. I think that's an excellent introduction to music processing and music machine learning, in general, if you know a bit of Python and you even don't know anything about machine that's a great resource. There's a very classical book

[30:16]

called Fundamentals of Music Processing. I know that all books that start with the word fundamentals or introduction those are very like university books but introduction to fundamentals of music processing by Meinard Müller, that's one of the like golden resources. And in general I think the tutorials and the stuff that gets published at ISMIR and equally from the more kind of

[30:47]

artsy site. There's also this interesting conference called NIME and it stands for new interfaces for musical expression and those are more on the art site. So that's the main focus. So they are sometimes like a bit less focused on the programming, which makes the programming part more accessible.It's a bit easier sometimes, so perhaps you know like diving into some of those you know ideas that have been already turned into like you know interfaces for musical expression

[31:26]

some of those I think that are a good place to start. And even you know like see what's possible right? So, ISMIR, NINE, book and communities of AI musicians. Absolutely, yeah. Thank you for coming. Thank you for having me. Awesome.

Behind the Commit is a podcast hosted by Mia Bajić. All episodes.