News for hackers. Stuff that matters.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by bheadmaster on Thursday December 15, 2022 @10:02AM (#34000566)
This is a genius idea. Using an already-existing and well-performing image model, and just encoding input/output as a spectrogram... It's elegant, it's obvious in retrospective, it's just pure genius.

I can't wait to hear some serious AI music-making a few years from now.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by josalhor on Thursday December 15, 2022 @10:20AM (#34000844)
Makes me wonder if we will see a generalization of this idea. Just like in a CPU 90%+ of want you want to do can be modeled with very few instructions (mov, add, jmp..) we could see a set of very refined models (Stable difussion, GPT, etc) and all of their abstractions on top (ChatGPT, Rifussion, etc).
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by danuker on Thursday December 15, 2022 @11:43AM (#34002151)
Indeed, I think this would be a cost-effective way to go forward.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by amelius on Thursday December 15, 2022 @12:44PM (#34003027)
Perhaps GPT could run on top of Stable-diffusion, generating output in the form of written text (glyphs).
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by DarmokJalad1701 on Thursday December 15, 2022 @02:00PM (#34004026)
Maybe next up is a model that generates Piet code

https://www.dangermouse.net/esoteric/piet.html

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by chii on Friday December 16, 2022 @09:35AM (#34014905)
and you ask stable diffusion to generate piet code for a slightly better version of stable diffusion (or chatGPT) ...which then you can further use to generate a better version, and so on. Singularity here we come!
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by Tenoke on Thursday December 15, 2022 @10:22AM (#34000873)
For what is worth, people were trying the same thing with GANs (I also played with doing it with stylegan a bit) but the results weren't as good.

The amazing thing is that the current diffusion models are so good that the spectograms are actually reasonable enough despite the small room for error.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by rco8786 on Thursday December 15, 2022 @10:27AM (#34000969)
> I can't wait to hear some serious AI music-making a few years from now.

I think this will be particularly useful for musical compositions in movies and film, where the producer can "instruct" the AI about what to play, when, and how to transition so that the music matches the scene progression.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by adamhp on Thursday December 15, 2022 @10:40AM (#34001205)
Not only that but sampling. I'd say there's at least one sample from something in most modern music. This can essentially create "sounds" that you're looking for as an artist. I need a sort of high pitched drone here... Rather than dig through sample libraries you just generate a few dozen results from a diffusion model with some varying inputs and you'd have a small sample set on the exact thing you're looking for. There's already so much processing of samples after the fact, the actual quality or resolution of the sample is inconsequential. In a lot of music, you're just going after the texture and tonality and timbre of something... This can be seen in some Hans Zimmer videos of how he slows down certain sounds massively to arrive at new sounds... or in granular synthesis... This is going to open up a lot of cool new doors.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by tstrimple on Thursday December 15, 2022 @11:49AM (#34002237)
I was thinking gaming where music can and should dynamically shift based on different environmental and player conditions.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by sebzim4500 on Thursday December 15, 2022 @10:46AM (#34001294)
I suspect that if you had tried this with previous image models the results would have been terrible. This only works since image models are so good now.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by superpope99 on Thursday December 15, 2022 @10:56AM (#34001453)
I'm super excited about the Audio AI space, as it seems permanently a few years behind image stuff - so I think we're going to see a lot more of this.

If you're interested, the idea of applying Image processing techniques to Spectrograms of audio is explored in brief in the first lesson of one of the most recommended AI courses on HN: Practical Deep Learning for Coders https://youtu.be/8SF_h3xF3cE?t=1632

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by hackernewds on Thursday December 15, 2022 @01:16PM (#34003443)
You already hear a ton of them. Lofi music on these massively popular channels are basically auto-generated "music" + auto generated artwork.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by cjtrowbridge on Thursday December 15, 2022 @01:22PM (#34003512)
Do you have any sources for more information about this?
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by heavyarms on Friday December 16, 2022 @10:37AM (#34015746)
I dabble in music production and know some of the people in the "Lofi" world, so I know for a fact that this is not true. It's just a formulaic sub-genre where people are trying to make similar instrumentals with the same vibe. It would be jarring to listen to a playlist while studying and each song had wildly different tempos, instruments, etc.

Also, the music doesn't sound "Lofi" because it's generated by algorithms. A lot of hard work and software goes into taking a clean, pitch-perfect digital signal and making it sound like something playing on a record player from the 70s.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by dangom on Thursday December 15, 2022 @02:20PM (#34004262)
This idea is presented by Jeremy Howard on literally their first Deep Learning for Coders class (most recent edition). A student wanted to classify sounds, but only knew how to do vision, so they converted sounds to spectrograms, fine tuned the model on the labelled spectra, and the classification worked pretty well on test data. That of course does not take the merit away from the Riffusion authors though.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by Analog24 on Thursday December 15, 2022 @04:40PM (#34006165)
Connecting CV to audio via spectrograms pre dates Jeremy Howard's course by quite a bit.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by aix1 on Friday December 16, 2022 @01:32AM (#34011261)
The idea to apply computer vision algorithms to spectrograms is not new. I don't know who first came up with it, but I first came across it about a decade ago.

I just ran a quick Google Scholar search, and the first result is https://ieeexplore.ieee.org/abstract/document/5672395

This is from 2010. I didn't go looking, but it wouldn't surprise me if the idea is older than that.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by hecanjog on Friday December 16, 2022 @01:33PM (#34018254)
There were a number of systems designed for composers in the 90s (also continuing through to today) designed for the workflow of converting a sound to a spectrogram, doing visual processing on the image, and then re-synthesizing the sound from the altered spectrogram. Many were inspired by Xenakis' UPIC system which was designed around the second half of this workflow: you'd draw the spectrogram with a pen and then synthesize it.

https://en.wikipedia.org/wiki/UPIC

Edit: my favorite of all these systems was Chris Penrose's HyperUPIC which provided a lot of freedom in configuring how the analysis and synthesis steps worked.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by munificent on Thursday December 15, 2022 @04:03PM (#34005739)
As someone who loves making music and loves listening to music made by other humans with intention, it just makes me sad.

Sure, AI can do lots of things well. But would you rather live in a world where humans get to do things they love (and are able to afford a comfortable life while doing so) or a world where machines do the things humans love and humans are relegated to the remaining tasks that machines happened to be poorly suited for?

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by bheadmaster on Thursday December 15, 2022 @04:34PM (#34006085)
As someone who loves making music and loves listening to music (regardless of its origins, in my case), it doesn't make me that sad. Sure, at first, I had an uncomfortable feeling that AI could make this sacred magic thing that only I and other fellow humans know how to do... But then I realized same thing is happening with visual art, so I applied the same counterarguments that've been cooking in my head.

I think that kind of attitude is defeatist - it's implying that humans will be stopped from making music if AI learns how to do it too. I don't think that will happen. Humans will continue making music, as they always have. When Kraftwerk started using computers to make music back in the 70s, people were also scared of what that will do to musicians. To be fair, live music has died out a bit (in a sense that there aren't that many god-on-earth-level rockstars), but it's still out there, people are performing, and others who want to listen can go and listen.

Maybe consumers will start consuming more and more AI music, instead of human music [0], but the worst thing that can happen is that music will no longer be a profitable activity. But then again, today's music industry already has some elements of the automation - washed-out rhythms, sexual thematics over and over again, re-hashing same old songs in different packages... So nothing's gonna change in the grand scheme of things.

[0] https://www.youtube.com/watch?v=S1jWdeRKvvk

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by munificent on Thursday December 15, 2022 @07:54PM (#34008049)
> but the worst thing that can happen is that music will no longer be a profitable activity.

For me, the worst that could happen is that people spend so much time listening to AI generated music, that human musicians can no longer find audiences to connect to. It's not just about economics (though that's also huge). It's the psychological cost of all of us spending greater and greater fractions of our lives connected to machines and not other people.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by rjh29 on Thursday December 15, 2022 @09:02PM (#34008652)
The vast majority of music produced is listened to by nobody, or a handful of people, so this is already the case really.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by bheadmaster on Friday December 16, 2022 @04:32AM (#34012609)
Music was always about people. Even today, as most people listen to the mass-produced run-of-the-mill muzak, there is still a significant audience that seeks the "human element" for the sake of itself.

Black metal community, for example, has always rejected all forms of "automation" and considers it not kvlt - rawness is a sought-after quality, defined as having people performing as close to the recording equipment as possible.

There's also a rapper named Bones (Elmo O'Connor) who's never signed a contract with a label, does only music he wants to do, releases a couple albums every year. There's something about his approach that makes his music sound very organic and honest. I listen to him more than I listen to any mass produced rapper.

So in conclusion, music was always about people. Unless AI reaches AGI level, I don't think it will ever impact music enough to kill all audience.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by joshspankit on Friday December 16, 2022 @07:29AM (#34013836)
I agree with this so much that I’d take off the comment about AGI: I think that even if/when AGI lands there will always be audiences that seek raw, organic, and honest artistic expression from other humans.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by int_19h on Thursday December 15, 2022 @05:34PM (#34006772)
I would rather live in a world where humans get to do things they love because they can (and not because they have to earn their bread), and machines get to do basically everything that needs to be done but no human is willing to do it.

Advancing AI capabilities in no way detracts from this. You talk about humans being "relegated to the remaining tasks" - but that's a consequence of our socioeconomic system, not of our technology.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by munificent on Thursday December 15, 2022 @07:50PM (#34008022)
> but that's a consequence of our socioeconomic system, not of our technology.

Those two are profoundly intertwined. Our tech affects our socioeconomic systems and vice versa.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by int_19h on Thursday December 15, 2022 @08:28PM (#34008346)
Sure, so now that we have new tech, let's update the socioeconomic system to accommodate it.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by chrisbaker98 on Friday December 16, 2022 @04:24PM (#34020630)
If only it was that easy.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by int_19h on Friday December 16, 2022 @08:50PM (#34023415)
It's not, but at least it's feasible. Trying to suppress technology instead is futile in the long term.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by bawolff on Thursday December 15, 2022 @05:55PM (#34006971)
I'd rather live in the world where humans do things that are actually unique and interesting, and aren't essentially being artificially propped up by limiting competition.

I don't see this as a threat to human ingenuity in the slightest.

Re:Riffusion – Stable Diffusion fine-tuned to generate Music by marktolson on Thursday December 15, 2022 @07:30PM (#34007838)
I play the piano (badly). There are many other people who can play much better than I. There are simple computer programs which can play better. It doesn't stop me from enjoying it or playing it. Computers have been beating people at Chess for years yet you still see people everywhere enjoying the game. At some point computers will be better than humans at absolutely everything but it shouldn't stop you as a human from enjoying anything.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by munificent on Thursday December 15, 2022 @07:52PM (#34008037)
Sure, but a large part of enjoyment in creativity for many is the joy of sharing it with an audience. To the degree that people are spending their available attention on AI-generated content, they have less time and attention available to spend listening to and watching art created by humans.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by JofArnold on Friday December 16, 2022 @04:58AM (#34012749)
Musicians already make much (most?) of their money via gigs and I don't think going to watch an AI play at a gig will be all too common. I think we'll be fine. Might have to adapt though.
Re:Riffusion – Stable Diffusion fine-tuned to generate Music by tarranoth on Friday December 16, 2022 @05:49AM (#34013045)
There are still chess tournaments for humans, even though our smartphone could play chess better than any grandmaster.