Settings

Theme

Bubble Sorted Amen Break

parametricavocado.itch.io

383 points by eieio 24 days ago · 126 comments

Reader

Retr0id 24 days ago

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

eieioOP 24 days ago

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

  • zonkerdonker 24 days 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.

    • legitster 24 days ago

      "Samples" were kind of like musical memes in the 1980s. What made for a good sample had a lot more to do with convenience and luck. The sounds that were picked for drum samples had more to do with how useful they were - the dynamic range, how isolated the drums are, how easy they were to mix.

      The other famous drum sample - the "Funky Drummer" as drummed by Clyde Stubblefield for James Brown, Stubblefield didn't think the particular drum pattern he used was particularly noteworthy. In that case, James Brown's production choices were actually more key - his signature sound revolved around really crisp drums that he insisted needed to be clear on AM Radio and Jukeboxes. Which is what made it so useful for sampling.

      • zimpenfish 24 days ago

        I saw a video about popular/influential/most-used samples the other week[0] and it mentioned James Brown becoming aware of sampling (I guess mid-late 90s?) and specifically making sure that anything he thought might be sample-able was "clean" from that point on.

        [0] GFL finding anything in YouTube history / search these days hence no link. Wasn't from Synthet, I don't think.

        • jammaloo 23 days ago

          You said it wasn't from Synthet, but they did release a video ~2 weeks ago which talked about exactly that. Super interesting, whether it's the correct video or not!

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

          • zimpenfish 23 days ago

            > You said it wasn't from Synthet, but they did release a video ~2 weeks ago which talked about exactly that.

            Good grief, I thought it might be that video but somehow completely blanked on it when I double-checked and decided it wasn't. Thanks for actually checking usefully!

            (Synthet videos are almost always worth a watch even if you can't remember them a couple of weeks later. Old age, innit.)

      • pdntspa 24 days ago

        Maybe, but the amen break has a very specific je ne sais quoi that makes it way more useful and pleasant as a sample than almost any other sample. There's just so many situations in the kind of music I make where the amen is like the only loop that fits. Funky drummer might come in second.

        It could just be its cultural weight has me hypnotized. But maybe its just that good

        • akst 24 days ago

          I’ve produced music through much of 2010-2020, I wasn’t there in the 1980-2010s but it wasn’t uncommon see discussion online about different samples or things like this. Never really seen any mention something like this unquantified “je ne sais quoi” or at least don’t really recall

          My take is, it was the first of its kind to widely circulate exhibiting desirable quantities for sampling, a combination of good enough and path dependency. After a certain level of saturation/entrenchment it carried an aesthetic compared to readily available samples (maybe this is what you meant).

          Whenever I couldn’t find a breakbeat sample (or wanted some starting point at least) I’d default to it. When I did music production it was very easy to get your hands on a loop but obviously that’s much later.

        • jamal-kumar 22 days ago

          amen and funky drummer are fun but I find it funner to chop up the apache break. it's got a little bongo in there

      • WhiteOwlLion 24 days ago

        Samplers became accessible at the time which allowed music production with just loops. Look at snap I got the power. All looped samples

        • input_sh 24 days ago

          I mean, look at any house or hip-hop track, sampling's like the most fundamental part of both genres.

          The track you've mentioned is the prime example of the blend of those two genres. Before the term Eurodance caught on, this track would be referred to as hip-house (as in hip-hop + house). Chicago and the broader NY area did it first, but it was a Belgian track that first topped the US charts (Technotronic's Pump Up The Jam).

          • redwall_hp 24 days ago

            That's why one of the super simple improvements I'd make to music copyright law, if I had to choose one thing rather than a massive overhaul, is for sampling to also be subject to the compulsory mechanical royalty system.

            So any artist could sample something, do some paperwork, and send of a fraction of royalties. Rather than the current system where you need explicit permission from the recording artist and have no recourse if they say no.

            So many music genres exist because of sampling, and the shit legal precedents set in recent decades ruined an amazing thing.

            • Anthony-G 23 days ago

              Your proposal makes complete sense and would allow artists the creative freedom to use samples in unusual and novel ways that the original artist might never have envisioned – or agreed to.

              I’m a big fan of the KLF (Kopyright Liberation Front) and when the artist says “no”, I’m always reminded of this funny, surreal story about the KLF physically destroying their music: http://klf.de/home/the-abba-incident/

            • input_sh 24 days ago

              Completely agree with you, but good music always finds its way around copyright, you just can't find it on streaming services.

              For example, if the sample's small enough to not be recognisable by algorithms, they often end up on Soundcloud with a free download via Hypeddit. Some even get away with charging money for their track with non-cleared samples via Bandcamp. Because those types of bedroom producers are almost always clueless about copyright, they often cite fair use in the description and choose a Creative Commons licence, which is not how anything works. Even some B-list celebrities that damn well know what they're doing still decide to do that when they fail to clear a sample. Soundcloud would be completely irrelevant if they did a good-enough job at enforcing copyright, so they do the bare minimum labels require of them to keep running, but that definitely kills their odds of ever competing with the likes of Spotify.

              Then there's a whole "gray area" of online record pools where the audio preview and download links are hidden behind a $25/month or so paywall, so record labels can't scan it directly to even know about the infringement. Usually just listing the names of available tracks in HTML is enough to get them de-indexed from Google, but they rely on word-of-mouth anyway.

              And, of course, even if all of that were to stop, you can never prevent a bunch of DJs and producers DMing each other tracks, hottest of which always end up getting shared too widely at some point and uploaded to Soulseek or something.

              Meanwhile, streaming services are being flooded by unethically-trained, AI-generated music, which is actually incredibly easy to detect if streaming services actually gave enough of a fuck to do so. There is one that gives a fuck rather publicly (Deezer) and according to them, it's ~34% of everything uploaded as of a few months ago, may have passed 40% as of now.

          • riffraff 24 days ago

            > Belgian track

            What a wasted chance to say "Belgian techno anthem"!

    • ompogUe 24 days ago

      Reminds me of Motown's James Jamerson [1]

      [1] https://en.wikipedia.org/wiki/James_Jamerson

    • hnlmorg 24 days ago

      I’ve heard conflicting accounts about their knowledge and royalties.

      While I’m certain they didn’t receive royalties from all artists, I heard many 80s artists did. And Amen Brothers took others to court. So they would have know about the use of the break.

      I will admit I haven’t done any independent research into this matter personally. Just echoing accounts I’ve read and taking their reports at face value.

      • corndoge 24 days ago

        > And Amen Brothers took others to court.

        Who is "Amen Brothers"?

        • input_sh 24 days ago

          "Amen, Brother" is the name of the track it's from, so the parent is likely referring to the band.

          • corndoge 24 days ago

            Yeah, the band is The Winstons. I'm curious how parent knew that they went to court when they don't know the name of the band.

            • hnlmorg 24 days ago

              > I'm curious how parent knew that they went to court

              I didn’t say I knew they went to court. I just said I thought I read about it.

              Looking into it again now, all I can find is a 10+ year old article about a crowd fund (eg https://www.bbc.com/news/entertainment-arts-34785551). So I’m likely misremembering what I read previously.

              > when they don't know the name of the band.

              I just got the name of the band muddled with the name of the song. I also sometimes get get the names of my friends and loved ones muddled. But that doesn’t mean I don’t know them either. I’m just shit with names.

              I do however remember every useless number I learned as a child. Including phone numbers to kids TV shows. Human memory is weird :-/

        • epcoa 23 days ago

          It’s pronounced “Allman Brothers”

    • araker 24 days ago

      That's true, though there was a community fundraising a while back. Many well known dnb and jungle dj's donated there.

      https://ra.co/news/28370

    • tialaramex 24 days ago

      A reminder that your society will be judged not on how the most fortunate lived but how the least fortunate lived. Context still matters but there's a meaningful difference between "Anne Brontë died of Consumption (Tuberculosis), at that time there was no cure" and "Dave died of TB, he couldn't afford the cure at current market prices".

      • fragmede 24 days ago

        What is a mote in such a society to do though? Dave couldn't afford the cure, but neither can I. What do you suggest I do to make it affordable for both of us?

      • verisimi 24 days ago

        Sure. Which is your society though?

        • tialaramex 24 days ago

          Unless you are one of the rare unintegrated humans†, in which case you wouldn't read HN because you don't have any of the necessary technology, there is only a single human society. Given that, we should be uncomfortable about how we're doing on that "least fortunate" thing...

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

          • verisimi 24 days ago

            So why is it not our society? Are you an unintegrated human, hence why you have the external view on things?

            • wartywhoa23 24 days ago

              No need to nitpick. Being one among many in an X, one can perfectly use "our X", "my X" and "your X" to denote the same X, there is no logical error in that.

              Now, the connotation is different: saying "our X will be judged by.." spreads the responsibility among everyone and makes it too easy to shift the blame onto the next guy, while saying "your X will be judged by.." stresses on your personal contribution to the X, making it not that easy to shy away.

              • verisimi 23 days ago

                I think the personal pronoun you use is very interesting.

                In your case, you seemed to be representing the common idea of a different culture, ie 'my society thought your society was this or that', eg 'Muslims think western societies to be greedy and unkind'.

                Do you really think of yourself as one of many? If so, which type do you identify as? And then, do you think you are personally responsible for the actions of others of your type?

                I personally think the general usage of a general collective pronouns to be inevitably misleading, but has the benefit of allowing one's preferred poor and unsubstantiated beliefs to be stated as indisputable fact.

      • creative-9 24 days ago

        This is our manifesto. We are creative people. Here is our strategy for advancing creative work and supporting the people who do it.

        We upvote comments that completely miss the point of how this algorithm works. We upvote comments that claim the algorithm does nothing at all. We downvote comments about how the creator of the original drum break died destitute.

  • tlynchpin 24 days ago

    https://www.youtube.com/watch?v=5SaFTm2bcac

    great deep dive into the Amen break. this video is from the yt days of yore, nice to see the yt algo still propping it up.

robin_reala 24 days 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 24 days 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 24 days 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.)

    • icambron 24 days ago

      I actually wanted it to play them as it went, so that it would be <unsorted><sorted> each time through, with the former shrinking and the latter growing.

  • pdpi 24 days 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 24 days 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.

    • butlike 24 days ago

      Would have been cool if it played the sorted ones at the end as a final run through victory lap

  • dylan604 24 days 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

    • hnlmorg 24 days ago

      Not the OP but I stopped listening pretty quickly because I was confused about how it was sorted.

      It wasn’t until I read your comment that I realised the sorting happened while you were listening rather than before hand.

    • lxgr 24 days ago

      So it's sorting from earliest to latest, really?

      • dylan604 24 days ago

        The value that is being sorted isn't obvious to me. It's obvious that it is sorting it. I'm guessing maybe some dB level of each of the hits/notes. If that was the case, I'd expect the initial unsorted view to line up with the pattern of the waveforms which is not the case. Maybe it's just an unsorted list of values sorted in sync to the rhythm. It's weird though that the segment corresponds to a segment of the audio. I just don't see how they are linked.

        • scrumper 24 days ago

          It's sorting by index of the slice. Pressing "shuffle" jumbles the slices up. So it puts the slices of the break back in the correct order. You never hear the result.

          Set it to 8 slices and it becomes easy to see what it's doing: look at the waveform and the now-playing highlight jumping around.

  • OrangeMusic 23 days ago

    I was confused at first at what the different "levels" mean. But they're not levels, they're just indices.

    I would suggest the author changes the UI to just show a number instead of a bar, to make this clearer.

  • throwuxiytayq 24 days ago

    Give it a minute or two.

  • cush 23 days ago

    It’s sorting by time

oybng 24 days 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 24 days ago

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

exDM69 24 days ago

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

marssaxman 24 days 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.

ykl 24 days 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

empath75 24 days ago

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

efortune 24 days ago

This documentary from 2004 (uploaded to YouTube in 2006(!)) is how I learned about the Amen Break and it's immense influence on the music of the 80s and 90s: https://www.youtube.com/watch?v=5SaFTm2bcac

nvader 24 days ago

This deserves the top spot on the front page!

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

sandwell 24 days ago

It sounds like a Ventian Snares track. Love it.

  • danwills 23 days ago

    I just put on a Venetian Snares album (Rossz Csillag Alatt Született) and thought I'd come back here to say the same as you have!

    I'd also add: It's like Aaron's whole career is slightly resting atop Amen Break, at least as far back as (first I heard and still my favorite) The Chocolate Wheelchair Album! Amazing detailed work with Amen and similar samples that's for sure!

dag11 24 days ago

This is one of those things you see and get angry you didn't wake up the idea first. It's so perfect and just as satisfying as you'd hope. Incredible stuff!

ge96 24 days ago

Different bubble sort

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

Or types of sorts

regus 24 days 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.

_nothing 23 days ago

Cool but I'm a bit confused - bubble sorted by what, exactly? Like what is the y-axis?

  • zwarag 23 days ago

    Y is essentially the order. If you take the recording and start slicing. The first slices are the smaller ones and the later slices are the taller ones.

onionisafruit 24 days ago

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

ttyyzz 24 days ago

429 Too Many Requests

cocodill 24 days ago

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

rullelito 24 days ago

Should I understand what this is trying to show?

seu 24 days ago

Would love to hear it unsorting the same array.

uoaei 24 days ago

I need WebGL to play audio on HTML pages now?

idontwantthis 24 days ago

Can someone explain the comparison function?

evereverever 24 days ago

This is bonkers and I love it.

larodi 24 days ago

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

suzdude 24 days ago

This is unreasonably fun.

guelo 24 days ago

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

zachromorp 24 days ago

Is that IDM ?

jatari 24 days ago

-100 points for not having a volume slider.

knodi123 24 days ago

lol, that's the stupidest thing that I've ever watched all the way through with a grin the whole time.

Negitivefrags 24 days ago

Can we get an Amen quicksort now?

braebo 24 days ago

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

  • quag 24 days 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.

    • bigstrat2003 24 days ago

      Why wouldn't it work that way? Whether it's a hardware toggle like on iPhone or a software one like in Android, I want silent to mean silent. Not "silent but if a web page decides to play sound it can".

      • tialaramex 24 days ago

        There is some amount of the "Focus follows brain" problem here. What we want is for things to do what we meant, all the time, and in this case it's very possible that the visitor wanted to hear the music. It is not practical (without yet to invented technology) for that to work so we have a substitute - there's a switch and you should remember to press it.

        "Focus follows brain" is how everybody wants windowed UIs to work. When I type on the keyboard the letters go where my brain thought they should go - duh, but of course that's unimplementable, so the Windows UI provides "Click to focus" - if I click on a Window the typing goes there until I click another window, meanwhile some Unix systems do "Focus follows Mouse" - if I move the mouse over a Window then my typing goes there even without clicking. Neither is what we actually wanted, both are trying to approximate.

        • dylan604 24 days ago

          Many many times I have music playing in the background from another app while browsing. So no, there’s no way to focus follow brain. There’s just no way for this device to know what I want unless I tell it

      • relaxing 24 days ago

        The phone will still make sound if I launch a music app, why is a web page different?

        And I hate web pages making sound! But the UX is confusing, and it’s changed over the years, seemingly without reason.

        Iphones now have a software toggle as well, which may have coincided with the shift from “mute ringer” to “mute (almost) everything” that came with the multifunction button.

        • QuantumNomad_ 24 days ago

          > why is a web page different?

          Web browsers on desktop operating systems initially allowed any website to play audio without any interaction required. Some websites would blast annoying audio ads as soon as you opened a page on their site. So effort was put into making it so that web browsers on desktops would only play sound after user interaction via mouse click. Later, some websites were exempted from that by some desktop web browsers, for example YouTube I think.

          Even without ads, background noise that starts automatically as soon as you visit a page can be distracting and disruptive.

          I’m perfectly happy that Safari on iOS does not play background audio when I have my phone in silent mode. Even when I have tapped on buttons on the page.

          Silent mode is not entirely only for notifications anyway. The built-in keyboard is also silent in silent mode, whereas when silent mode is off it makes an annoying click sound for every button that you press. Likewise the builtin camera app on iOS makes a shutter sound when you take photos with silent mode off. With silent mode the camera app is silent. Same with taking screenshots. I take a lot of screenshots, and prefer that people around me don’t think I’m taking photos when I am taking a screenshot on the phone.

          Meanwhile, if I open a music player app on my phone and hit play, I have made a very deliberate choice about playing sound.

          All of the games on my phone I can think of are also silent in silent mode. Not sure if all games have to be silent in silent mode or not on iOS (i.e. if “can play sound in silent mode” is a special permission in iOS and if Apple disallows apps categorized as games in App Store from having that permission or not). But I like that the games I play on my phone are silent in silent mode.

          There is some inconsistency indeed about what is silent or not, but I am happy with the way that it is as someone who prefers surprising silence over surprising noises from my phone when it’s in silent mode.

      • LordDragonfang 24 days ago

        Because silent mode is for the notifications. App volume has its own dedicated buttons.

      • probabletrain 24 days ago

        media sound is generally unaffected by the silent mode toggle, which apple suggests is only for notifications. but the toggle inconsistently affects media, muting some things but not others. it's incredibly frustrating. android has much better audio controls for notifications, media, alarms, and vibrate.

    • dylan604 24 days ago

      How old of an iPhone does one need to have that switch? My 6S+ has one, but a 15 doesn’t.

      • sertsa 24 days ago

        My 14 has the switch. I believe the 15 is when they switched to a programmable "action" button in place of the switch.

  • fragmede 24 days ago

    I can hear it. Chrome on iOS 26.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection