If you visited the Google homepage on March 21, 2019, you may have seen a whimsical illustration of J.S. Bach, complete with a puffy wig and a ruffled shirt, seated in front of a harpsichord. This Google Doodle, celebrating Bach’s birthday, invited users to compose a short melody on a digital staff, which would be sent to an Artificial Intelligence (AI) system that would harmonize it in the style of Bach [1]. Although this Google Doodle was created a while back and seems so simple, understanding how AI generates music and the current ethical concerns that go along with AI-generated music is very complex.
How does AI generate music?
With the recent rise of Generative AI and deep learning models, AI can now take in information in musical notation or text and create full melodies and harmonies. Some of the most common machine learning models used to generate music are Long Short-Term Memory (LSTM) networks and Generative Adversarial Networks (GANs).
To begin, let’s look at LSTM networks and how they produce full musical melodies from just a description or a short basic starting phrase. Well, what are LSTMs? They are a type of Recurrent Neural Network (RNN) that is extremely effective at taking in sequential information, such as audio or text, and remembering the inputs over time as it trains [2]. This ability to recount past data is beneficial in the generation of music because the machine can look at past notes and add new ones that fit the particular pattern or style of the piece.
For the most part, LSTM networks that are designed to output music are fed data in the form of MIDI files, which are digital files that contain instructions for how music should be played, instead of actual audio. This is primarily because these models can more easily identify patterns in the musical sequences, rather than having to determine patterns from audio [3]. The MIDI files given to the model are all human-made music so that the model can learn to create human-like music. After the model has been given data, it needs to be trained. During this process, the machine goes through each of the training examples and identifies statistical dependencies and patterns. This allows for the model to later generate music that reflects the intended style [4].
Another kind of powerful machine learning model used to generate music is RNN-GANs, which are a combination of recurrent neural networks and generative adversarial networks. The strengths of RNNs lie in the fact that they can learn from long sequential data and remember the structure and patterns, while GANs are used for generating new products from a training dataset. When combining these two techniques, a model can leverage both architectures to not only be able to generate music that resembles the style or structure of the training data but also produce novel melodies. [5]
Ethical concerns
Can AI music be considered original? Who owns AI-generated music? One of the most debated issues with AI music is around who makes money off a work that is created using AI, especially if the algorithm is trained with copyrighted material. In March 2023, the U.S. Copyright Office launched an initiative to investigate copyright issues connected with artificial intelligence. Legally, AI music is still a gray area. In May 2023, Universal Music Group urged streaming services to block the use of AI-generated music, claiming that it is using their artists’ music to train its algorithm. Spotify responded by taking down 7 percent of AI-generated music on the platform, which approximates to tens to thousands of songs. [6]
Another issue is bias in data set training. A major example is AI rapper FN Meka, who was signed by Capitol Music Group in 2022 and dropped for perpetuating racial stereotypes. If AI is trained with data that is inherently biased and racist, then the output is going to perpetuate those stereotypes. Despite these controversies, AI generated music has continued to grow in popularity, with some AI artists gaining significant recognition in the industry. [6]
Examples of AI generated music
One of the most popular AI artists goes by the name of TWXN. In the past 1-2 years, they have blown up due to their use of AI to replicate the voice of famous rapper Playboi Carti, sparking debate about the authenticity and ownership of AI-generated music. Their most popular song, Telescope, gained over 125 million plays on Spotify. The process behind the artist’s songs involves one person creating a beat, another recording vocals mimicking Carti’s cadence and flow, and then AI modifying the vocals to sound like Carti. Some say that TWXN is better than Carti since he has been inactive while others claim that he is ripping off Carti’s fame and style.
Beyond rap and other popular genres, AI is also being used to recreate the styles of classical composers, raising similar questions about authenticity and artistic expression. People have also started using AI to make classical music, imitating the works of Beethoven and Bach. While some listeners embrace AI-generated classical music as it allows them to listen to new classical music in the style of deceased composers like Beethoven and Bach, many people say it lacks human expression of ideas with intention.
As Artificial Intelligence continues to progress, its impact on the music industry will only keep expanding, offering new possibilities for composition, production, and performance. However, it will remain a double-edged sword, as it has gained both admiration and criticism, raising ethical concerns about originality and ownership, whether in popular or classical music. Although this is just another sector that is being impacted by AI, the only way to see its effects in the future is to watch it unfold as advancements in the machine learning world continue.