Bubble Sorted Amen Break

(parametricavocado.itch.io)

231 points | by eieio 6 hours ago ago

47 comments

  • Retr0id 4 hours ago

    I wish it'd play through the whole thing in order at the end

    • robot_jesus 3 hours ago

      100% this. Because I'm a masochist, I let it run through 128 random slices. Took maybe 15 mins (wasn't timing or anything). Definitely deserved the payoff at the end to hear the whole thing.

    • teach 3 hours ago

      If you never play the original sample, you never have to worry about royalties.

      :rollsafe-think-about-it:

    • xg15 2 hours ago

      The unshuffled song: https://youtu.be/qwQLk7NcpO4 :)

      (Same here - though at least so I learned about the Amen Break.)

    • telesilla 2 hours ago

      You don't know it by heart even yet, after all the time it's been in countless songs?

  • eieio 6 hours ago

    (the amen break is one of the most commonly-sampled drum breaks in popular music: https://en.wikipedia.org/wiki/Amen_break)

    • zonkerdonker 6 hours ago

      And a tragic story at that:

      >Coleman died homeless and destitute in 2006. It was unlikely he was aware of the impact he had made on music. Neither he [band leader Spencer] nor Coleman received royalties for the break.

  • robin_reala 5 hours ago

    My personal prize for the most chopped amen goes to Breakage’s Final mix of Equinox’s Acid Rain VIP. https://www.youtube.com/watch?v=LoKlz6_I4vY

  • staplung 6 hours ago

    Cool, but I don't see how it's sorting anything. It just seems to play a randomized arrangement of the slices. You can re-randomize as much as you like but there's no sort option as far as I can see.

    • joeypickles 6 hours ago

      It randomizes slices of the sample and begins to play the slices in the random order. Meanwhile it begins the bubble sort algorithm at a pace that matches the tempo, sorting the slices into their chronological order. Throughout, it only plays the unsorted slices. (I was kinda hoping it would play the sorted sample at the end.)

    • pdpi 5 hours ago

      The idea is that it slices the Amen Break into however many slices you specify, and the list being sorted is the indices for those slices. At each step, it plays the slice the pivot is being compared to.

      Because it only plays the samples being compared, it never plays the sorted chunks, so it's missing a "punchline" of sorts.

    • hyperhello 5 hours ago

      You're right. It doesn't play the sorted parts, which is strange. I expected to have a series of random-then-controlled slices with the random part getting shorter and the controlled part getting longer, but it really is just a shortening loop of random beats.

    • dylan604 6 hours ago

      Did you play it to the end? It's absolutely sorting from smallest to largest. Unless you have a confused understanding of a bubble sort, it's doing a bubble sort

    • throwuxiytayq 6 hours ago

      Give it a minute or two.

  • exDM69 6 hours ago

    That's a fun two minutes for any computer scientist drum and bass fan.

  • marssaxman 6 hours ago

    I can't help laughing. This is great.

    I don't understand the comparison function, but it's really enjoyable listening to the algorithm work out its logic.

    • cocodill an hour ago

      It's comparing the t value.

  • nvader 4 hours ago

    This deserves the top spot on the front page!

    Might I ask for the implementation of other sorting algorithms here?

  • cocodill an hour ago

    At first I didn't understand, but then I did.

  • oybng 5 hours ago

    Automatic chopping has existed for decades, popularised here: https://web.archive.org/web/20051225061044/http://www.cus.ca... https://github.com/mdsp/Livecut See also, dblue Glitch, chrisGlitch, Renoise

    • bzzzt 5 hours ago

      Yes, and on many samplers too. The linked website looks like a 'lite' version of the slicer on my Elektron Octatrack ;)

  • regus 2 hours ago

    This afternoon I was getting the oil changed for my car, and while I was in the waiting room the Amen Break started playing from a nearby speaker.

  • ykl 4 hours ago

    If you aren’t familiar with the Amen Break, here’s a now classic 18 minute documentary on the Amen Break and its origins and evolution:

    https://youtu.be/5SaFTm2bcac?si=J99_Sh9x3fIBCSms

  • guelo 13 minutes ago

    what is the y axis on that graph? what are we sorting?

  • ge96 3 hours ago

    Different bubble sort

    https://www.youtube.com/watch?v=m4EMG63W388

    Or types of sorts

  • empath75 5 hours ago

    Not playing it all the way through at the end is diabolical.

  • suzdude 2 hours ago

    This is unreasonably fun.

  • sandwell 6 hours ago

    It sounds like a Ventian Snares track. Love it.

  • larodi 2 hours ago

    tbh i expect it to be much more interesting if doing other kind of sorts

  • onionisafruit 5 hours ago

    I would have expected it to be terrible to listen to, but it was pretty nice.

  • evereverever 5 hours ago

    This is bonkers and I love it.

  • ttyyzz 4 hours ago

    429 Too Many Requests

  • braebo 5 hours ago

    No sound on iPhone. Shame Apple is so hostile to the web. Tragic really.

    • quag 5 hours ago

      iOS seems to mute the web audio apis when the phone is in silent mode (the switch on the side of the phone). If you toggle it on, then this site (and many others) play sound.

      I have no idea why it works this way and it’s frequently annoying.

    • fragmede 4 hours ago

      I can hear it. Chrome on iOS 26.

  • jatari 4 hours ago

    -100 points for not having a volume slider.

  • idontwantthis 4 hours ago

    Can someone explain the comparison function?

  • uoaei 5 hours ago

    I need WebGL to play audio on HTML pages now?

    • probabletrain 4 hours ago

      it's an application built with webgl that plays audio, rather than just an audio player

  • Negitivefrags 2 hours ago

    Can we get an Amen quicksort now?