News for hackers. Stuff that matters.
Re:303Gen – 303 acid loops generator by errozero on Wednesday August 06, 2025 @10:38AM (#44812638)
Hey, I made this a few years ago. I'm suprised to see it posted here today. It was never finished and I was meaning to add a polyfill for the missing cancelAndHoldAtTime function for Firefox. Edit: I've just hacked in a quick polyfill
Re:303Gen – 303 acid loops generator by blackhaz on Wednesday August 06, 2025 @12:48PM (#44814480)
This is amazing. Thanks for making it.
Re:303Gen – 303 acid loops generator by obiefernandez on Wednesday August 06, 2025 @01:53PM (#44815335)
Hey if you don't mind updating this, can you please allow the tempo to be as high as 150 bpm?
Re:303Gen – 303 acid loops generator by errozero on Wednesday August 06, 2025 @03:00PM (#44816173)
Hey, sure! I forgot it was limited to 130, it's been a few years! I've just updated it.
Re:303Gen – 303 acid loops generator by radley on Wednesday August 06, 2025 @02:29PM (#44815781)
That might tickle your tinrib. If you want to stay up forever, maybe go to 160 bpm. Or even some industrial strength 200 bpm.
Re:303Gen – 303 acid loops generator by diggan on Wednesday August 06, 2025 @02:41PM (#44815937)
And also, different tempos per instrument :)
Re:303Gen – 303 acid loops generator by errozero on Wednesday August 06, 2025 @03:03PM (#44816212)
I've just updated this to make it a little bit easier to use on a phone. The knobs are now a bit chunkier and should respond better to touch and the instruments sit vertically instead of horizontally.
Re:303Gen – 303 acid loops generator by Computer0 on Wednesday August 06, 2025 @03:21PM (#44816460)
Are you interested in open sourcing? I'd love to learn about how this was done.
Re:303Gen – 303 acid loops generator by padenot on Wednesday August 06, 2025 @03:50PM (#44816848)
Sorry, I'll implement it, I had forgotten we didn't do it for erm... 9 years.

https://bugzilla.mozilla.org/show_bug.cgi?id=1308431

Re:303Gen – 303 acid loops generator by chr15m on Wednesday August 06, 2025 @07:42PM (#44819132)
Thank you!
Re:303Gen – 303 acid loops generator by SubiculumCode on Wednesday August 06, 2025 @09:22PM (#44819650)
This is the best thread
Re:303Gen – 303 acid loops generator by strogonoff on Thursday August 07, 2025 @07:09AM (#44823013)
What are the intended uses for xAtTime functions (like cancelAndHoldAtTime) in Web Audio? I suspect a call to one would suffer from the lag due to main thread and audio thread communication, so it wouldn’t work best where sample precision is called for.
Re:303Gen – 303 acid loops generator by padenot on Thursday August 07, 2025 @12:25PM (#44826572)
Those methods are sub-sample accurate, granted you call them a bit in advance to account for the cross-thread communication, as you say. But yes, in general this was designed (prior to me becoming an editor) with scheduling in mind, not with low-latency interactivity. That said, it goes quite far.

Other systems go further, such as Web Audio Modules (that builds on top of AudioWorklet) implement sample-accurate parameter change from within the rendering thread, using wait-free ring-buffers. That requires `SharedArrayBuffer` but works great, and is the lowest latency possible (since it uses atomic loads and stores from e.g. the main thread to the rendering thread).

Re:303Gen – 303 acid loops generator by circadian on Wednesday August 06, 2025 @04:17PM (#44817211)
This is really lush. Instantly it brightened up my evening. This kind of experimentation is always amazing to see.

As many seem to have mentioned below, it brings back memories of Rebirth in some ways. What it also reminds me of is the beautiful results you could have by plugging some simple modules together to create soundscapes. The limits are the things that provide some semblance of freedom and this is no different. Greetings from a fellow UK acid (techno) head! :P

Re:303Gen – 303 acid loops generator by djmips on Wednesday August 06, 2025 @05:44PM (#44818223)
How do I export/save a pattern I like?
Re:303Gen – 303 acid loops generator by errozero on Wednesday August 06, 2025 @05:56PM (#44818325)
Currently, all you can do is save the url which contains all of the initial randomisation settings when a pattern generates. It doesn't update when moving sliders or anything, it's just the intial settings.

I'll look into adding a wav export feature.

Re:303Gen – 303 acid loops generator by _HMCB_ on Wednesday August 06, 2025 @11:21PM (#44820247)
Yes. Export please!
Re:303Gen – 303 acid loops generator by errozero on Thursday August 07, 2025 @09:25AM (#44824180)
It now has a simple wav export feature. Details here: https://news.ycombinator.com/item?id=44824142
Re:303Gen – 303 acid loops generator by stephenhandley on Wednesday August 06, 2025 @06:46PM (#44818745)
this is awesome. would suggest not randomizing the tempo on regenerate, and if it was already playing, when hitting regenerate, keep it playing. that would make it easy to quickly audition loops at a given tempo with a single click
Re:303Gen – 303 acid loops generator by jackdawipper on Wednesday August 06, 2025 @07:47PM (#44819173)
this thing is great. you got a version that can run as a vst or plugin?
Re:303Gen – 303 acid loops generator by elevaet on Thursday August 07, 2025 @04:18AM (#44821961)
This is fantastic errozero nicely done! It's very musical, the drone is a nice touch and really glues it all together in a subtle way.
Re:303Gen – 303 acid loops generator by ankitg12 on Thursday August 07, 2025 @06:24AM (#44822733)
I was randomly going over my past HN activity and bumped over this gem from here https://news.ycombinator.com/item?id=38624968 and posted :)
Re:303Gen – 303 acid loops generator by errozero on Thursday August 07, 2025 @06:30AM (#44822783)
Ah, I was wondering how it ended up posted here. Thanks!
Re:303Gen – 303 acid loops generator by zote on Thursday August 07, 2025 @09:33AM (#44824262)
this brought a little more joy to my day, thank you
Re:303Gen – 303 acid loops generator by errozero on Thursday August 07, 2025 @09:27AM (#44824201)
Update: wav export now added
Re:303Gen – 303 acid loops generator by elevaet on Thursday August 07, 2025 @08:27PM (#44832049)
@errorzero - if you have the time would you be able to give more information on the Scales? This section is very interesting.
Re:303Gen – 303 acid loops generator by errozero on Friday August 08, 2025 @04:21PM (#44841288)
Hey, the scales are just an array of numbers like this

    ['Darkness', [0, 1, 3]],
    ['Darkness2', [0, 1]],
    ['Single', [3]],
    ['Locrian', [0, 1, 3, 5, 6, 8, 10]],
    ['Aeolian', [0, 2, 3, 5, 7, 8, 10]],
    ['Mixolydian', [0, 2, 4, 5, 7, 9, 10]],
    ...
A scale is randomly selected at the start and then notes are randomly selected from that scale in the pattern generation, plus the root note number is added to each one.

So if you had the 'Darkness' scale selected and had the root dropdown set to 0, the notes in this scale would be C, C#, D# which is 0, 1, 3 if you count the keys on a keyboard. If you changed the root to 2, then it would become D, D#, F (2, 3, 5).

Hope that makes sense.

Re:303Gen – 303 acid loops generator by elevaet on Sunday August 10, 2025 @01:39AM (#44853003)
That does make sense, thanks! Very simple and effective.
Re:303Gen – 303 acid loops generator by errozero on Friday August 08, 2025 @08:59AM (#44836472)
Update: The wav export feature now renders with all parameter changes, and I've fixed a bug that excluded the drone from the export.