6 ms·
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 cancelAnd
by errozero 1y ago
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
- elevaet 1y ago@errorzero - if you have the time would you be able to give more information on the Scales? This section is very interesting.
- errozero 1y agoHey, 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.
- elevaet 1y agoThat does make sense, thanks! Very simple and effective.
- elevaet 1y agoThis 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.
- blackhaz 1y agoThis is amazing. Thanks for making it.
- deleted 1y ago[deleted]
- obiefernandez 1y agoHey if you don't mind updating this, can you please allow the tempo to be as high as 150 bpm?
- errozero 1y agoI'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.
- Computer0 1y agoAre you interested in open sourcing? I'd love to learn about how this was done.
- padenot 1y agoSorry, 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 https://bugzilla.mozilla.org/show_bug.cgi?id=1308431
- chr15m 1y agoThank you!
- SubiculumCode 1y agoThis is the best thread
- strogonoff 1y agoFor a while I have been curious about the intended uses for xAtTime functions (like cancelAndHoldAtTime) in Web Audio. As far as I understand it, calls to them suffer from lag due to main JavaScript thread and audio thread communication, which makes sample precision unachievable—and precision is quite important in music. Is it mostly for emulating slow-moving changes on fixed timelines, a la automation tracks in traditional DAWs like Logic and Ableton? Is design rationale documented somewhere?
- padenot 1y agoThose 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).
- circadian 1y agoThis 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
- djmips 1y agoHow do I export/save a pattern I like?
- errozero 1y agoCurrently, 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.
- _HMCB_ 1y agoYes. Export please!
- errozero 1y agoIt now has a simple wav export feature. Details here: https://news.ycombinator.com/item?id=44824142 https://news.ycombinator.com/item?id=44824142
- stephenhandley 1y agothis 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
- jackdawipper 1y agothis thing is great. you got a version that can run as a vst or plugin?
- ankitg12 1y agoI was randomly going over my past HN activity and bumped over this gem from here https://news.ycombinator.com/item?id=38624968 https://news.ycombinator.com/item?id=38624968 and posted :)
- deleted 1y ago[deleted]
- errozero 1y agoUpdate: wav export now added
- errozero 1y agoUpdate: The wav export feature now renders with all parameter changes, and I've fixed a bug that excluded the drone from the export.