Skip to main content
Intellect

Student turning computers into composers

Computer Science doctoral student Kristine Monteith pulls out her laptop and asks, “What are we feeling like?” With 30 seconds and a click of the mouse, her ThinkPad becomes a regular Beethoven, composing original songs based on any emotion she chooses.

Monteith is a left and right brain kind of person. She came to BYU with a bachelor’s degree in music therapy, a passion for voice, piano and guitar, and is now preparing to defend her doctoral dissertation on her computer program that can generate original music.

Since the beginning of her graduate work, Monteith has been trying to answer a golden question – can machines be creative like humans?

A classic issue in machine learning is developing ways for computers to act like humans. Can computers be so humanlike as to fool us? For Monteith, her question was “Can a computer act like a human in composing music?“

According to Monteith’s research papers presented and published at the International Conference of Computation and Creativity in 2010 and 2011, she shows that her computer program is able to compose original music like a human.

To test this, students blindly listened to songs written by her computer program and those by a human composer. It turns out that 54 percent of listeners could identify the emotions in computer-generated music, while only 43 percent did the same for human-composed music.  Respondents also gave computer-generated music a score of 7 out of 10 for musicality; the other received an 8 out of 10.

“The fact that a number of the computer-generated songs were rated as more musical than the human-produced songs is somewhat impressive,” Monteith wrote in her research.

To start, her computer, like most human composers, enrolled in a type of Composition 101. Monteith took a selection of popular film soundtracks, including those from Toy Story and Jurassic Park, to build an algorithm that taught what made a song emotional.  Her family and friends labeled the recordings with the following emotions: love, joy, surprise, anger, sadness and fear.

 “Soundtracks are good at expressing emotions because they are put to a scene. Once I have my collection of songs, then I go through and pull out the melodies of each line,” Monteith said. The computer uses these melodies as samples to learn from.

Speaking of soundtracks, when Monteith’s program is paired up with another program that labels emotions tied with words in a story, her program has the potential to create background music in audio books. She tried her hand at this with a couple Aesop’s fables.

“We had a bunch of Aesop’s fables and I used an algorithm to label the text – this sentence is sad, this sentence is happy – and then used my program to generate the music to go along with that text,” Monteith said.

According to their surveys, listeners felt emotionally provoking music makes the stories significantly more enjoyable and easier to connect with.

With hopes to continue her goal of combining music therapy and computer science, Monteith’s next feat is to compose music that can lower or raise heart rates for therapeutic purposes.

“When I was doing music therapy, I had a client who would hyper ventilate a lot,” Monteith said. “This was a pretty serious problem that was going to shorten her life. So, in this instance, my work would help.”

As a Ph.D. candidate, Monteith works in the Neural Network and Machine Learning Laboratory directed by computer science professor Tony Martinez. 

Writer: Staley White

Read More From

Related Articles

data-content-type="article"

Q&A with President Reese on BYU’s undergraduate teaching focus

March 15, 2024
In this Q&A series with President Reese, he shares more about the seven initiatives he shared in his 2023 inaugural response and how they apply to BYU employees.
overrideBackgroundColorOrImage= overrideTextColor= overrideTextAlignment= overrideCardHideSection=false overrideCardHideByline=false overrideCardHideDescription=false overridebuttonBgColor= overrideButtonText= overrideTextAlignment=
data-content-type="article"

BYU math videos aim to transform equations into excitement

March 13, 2024
From calculating the perfect bottle flip to understanding how much force is behind a penny dropped off a skyscraper, Math the World videos creatively answer the age-old math question, “When will I ever use this?”
overrideBackgroundColorOrImage= overrideTextColor= overrideTextAlignment= overrideCardHideSection=false overrideCardHideByline=false overrideCardHideDescription=false overridebuttonBgColor= overrideButtonText= overrideTextAlignment=
data-content-type="article"

BYU professor and alumni shine with Oscar-nominated animated film

March 07, 2024
An animated short film co-produced by BYU animation professor Kelly Loosli was nominated for an Oscar in the Best Animated Short category. The Academy Awards will air live on Sunday, March 10, on ABC.
overrideBackgroundColorOrImage= overrideTextColor= overrideTextAlignment= overrideCardHideSection=false overrideCardHideByline=false overrideCardHideDescription=false overridebuttonBgColor= overrideButtonText= overrideTextAlignment=
overrideBackgroundColorOrImage= overrideTextColor= overrideTextAlignment= overrideCardHideSection=false overrideCardHideByline=false overrideCardHideDescription=false overridebuttonBgColor= overrideButtonText=