TORONTO -- For anyone who鈥檚 ever lost themselves in a Nirvana or Amy Winehouse song and wondered wistfully what music they would have produced if Winehouse and Nirvana frontman Kurt Cobain had lived beyond their 20s, a new project by mental health organization Over the Bridge has provided an AI-generated answer.

鈥 and some human assistance 鈥 to create 鈥榥ew鈥 songs by Winehouse, Nirvana, Jimi Hendrix and the Jim Morrison-led Doors. Winehouse, Cobain, Morrison and Hendrix are all members of the so-called 鈥27 club鈥 鈥 artists, musicians, actors and athletes who all died at the age of 27, many due to substance abuse or other mental health-related issues.

The goal of the project is to draw attention to those in the industry who struggle with mental illness and substance abuse and fight back against its often romanticized place in the music scene, says Sean O鈥機onnor, a board member at Over the Bridge and a creative director at ad agency ReTHINK Canada.

鈥淚 think if this were any other industry we would be up in arms about what an epidemic this is. But in the music industry we always sort of glamorize it and romanticize it and it's always an idea of the struggling artist and the authentic art,鈥 he told CTVnews.ca in an interview.

According to Over the Bridge, more than two-thirds of musicians have experienced instances of depression, and workers in the industry are twice as likely to attempt suicide as in the general population.

鈥淲e just had this idea to sort of imagine the music that these artists could have made had they had the mental health support. That was the seed of the thought that we started with,鈥 said O鈥機onnor.

鈥 includes 鈥淒rowned in the Sun鈥 in the spirit of Nirvana, the Jimi Hendrix-inspired 鈥淵ou鈥檙e Gonna Kill Me鈥, the Amy Winehouse take 鈥淢an, I Know鈥, and Doors-like 鈥淭he Roads Are Alive鈥.

To create the music, AI programs were used to analyze dozens of songs by each artist, including rhythms, melodies, hooks and lyrics. The program then spat out all-new music and lyrics that were assembled into songs.

鈥淲e put in 30 riffs from an artist and it would output 5 minutes of new riff and we鈥檇 be sitting there listening to it with our audio engineer and just pulling out moments,鈥 said O鈥機onnor. Those fragments were then assembled into complete songs.

He said the software had an easier time with some artists than others. For instance, the heavy distortion of Kobain鈥檚 grunge riffs were more difficult to recreate as new music than Hendrix鈥檚 more defined style.

鈥淚f you looked at 鈥楧rowned in the Sun鈥, we're putting stuff through and it was often coming out as just these really indiscernible rhythm patterns and walls of sound and things were getting really muddy, really quickly,鈥 he said.

While the lyrics are computer-generated, the vocals were laid down by tribute artists. O鈥機onnor said there are no plans to create more music based on 鈥27 club鈥 artists.

It may seem like stepping on hallowed ground to have a computer create imitations of music by greats who died too young, but O鈥機onnor said reaction to the project has been overwhelmingly positive, and that spotlighting the irreplaceable nature of these artists is the whole point.

鈥淲e鈥檙e not able to replace these artists and that's not what we're trying to do,鈥 he said. 鈥淲e're just trying to start this conversation around, if we support these people we don't have to be in 50 years trying to make AI music of all these (other) musicians that we lost too soon.鈥