Lurker News
I worked on a web service that allows you to import a song and define a target length that the song will be shortened or lengthened to. It does this by analyzing the song and finding repeating audio patterns. This is helpful for making any song match a video or performance with a set duration. You can also specify areas of the song to prefer or avoid. An example is available here: https://mofi.loud.red/edit/8bd3fdf780f8c3927e41029f3b957f8a7...

The cool thing is that after the song is analyzed on the server, the client can recompute and preview the results completely client-side through an implementation that uses Web Workers and WebAssembly. The audio previewing uses Tone.js. I am thinking of writing up some more details about the implementation in the future.
I'm still working on a way to explain this easily, but I like the idea of carrying over the concept of content-aware fill from images to audio.
Please let me know if you have any comments or questions!

Comments (161) 65 threads

Earlier comments
peterdigital#
Would love to sort by most cuts just to see what happens
Pr0ject217#
This is pretty cool! Will you consider open-sourcing it?
sundaeofshock7 replies#
I know I’m in the minority here, but I hate it. The artist created created a song of a particular length for a very specific reason. I prefer to listen to a song the way it was meant to be listened too.
jstanley2 replies#
They created it that length for their reasons. You might want it a different length for your reasons. It's not clear that their reasons trump your reasons, given that your modification has no effect on them whatsoever.
wrigby1 reply#
That’s fine, as long as you have obtained permission from the copyright holder to create a derivative work. Otherwise, their reasons very much do trump your reasons.
Blahah#
Sharing a derivative work could breach copyright, but if you are doing it for yourself you don't need permission.
sundaeofshock1 reply#
I choose to listen to songs by an artist because I enjoy the choices that artist made.
Majestic121#
That's fine. Other people make other choices.
ralusek1 reply#
Sometimes they create music at a particular length because that's what worked well on radio, or TikTok, or for a club set. I would go so far as to say that song length is probably chosen for some specific non-artistic constraint more often than it is chosen for some reason intrinsic to the art. So changing the music to accommodate your own constraint, i.e. "this is the part I like when I'm working out and wish it was longer" seems completely reasonable, and isn't even justified in being considered some sacrilegious act.
invokestatic#
Baffling comment. Practically every trailer has music cut to length.
tasty_freeze#
Do you ever decide to stop playing a song before it is over, or do you refuse to because that would be a violation of the artists intent? Likewise do you ever listen to only some songs on an album, or do you always play all the songs on an album from beginning to end?

Where do you draw the line between acceptable "edits" vs unacceptable?

tenebrisalietum#
This is thinking from a bygone passive-media era--the one of television and radio--where you were forced to be the passive consumer and had no choice but to obey your mass media masters with respect to what they delivered.

There are so many tools to customize and make your audio experience your own. Ultimately my ears are my own and I love living in a world where I can precisely control my audio experiences.

digging#
this seems to assume artists are infallible and in total control of the creative process. I would never assume either to be true.
userbinator#
You can still do that.
71a54xd#
Do these get tagged by contentID on Youtube?

Load more comments