News for hackers. Stuff that matters.
Re:Petri Nets as a Music Sequencer by fwip on Friday August 07, 2026 @12:50PM (#49213180)
What's the value of modeling these as petri nets instead of a regular sequencer? I was expecting some sort of branching, or at least multiple tokens per ring, but I can't figure out how to set that up.

Also - is it just me, or is delivery weirdly off-beat sometimes? Like, isolating to just the kick drums in a standard 4-on-the-floor techno song, it has almost a disorienting amount of delay on some of the beats.

Re:Petri Nets as a Music Sequencer by ericwood on Friday August 07, 2026 @02:38PM (#49214620)
Browsers intentionally add jitter to timing methods like setTimeout and setInterval to avoid fingerprinting and other side channel style attacks. When I've messed with building in-browser sequencers in the past you had to use a webworker with the clock that sends messages back to the main event loop, although I'm sure there's reasons that won't work these days either.
Re:Petri Nets as a Music Sequencer by embedding-shape on Friday August 07, 2026 @01:01PM (#49213327)
> Also - is it just me, or is delivery weirdly off-beat sometimes?

Is just browser jank I think, with JS in browsers it is infamously hard to get the timing right and consistent, sequencing make this painfully obvious.

Re:Petri Nets as a Music Sequencer by ghurtado on Friday August 07, 2026 @01:26PM (#49213621)
The fact that it's the job of the browser to mix the channels in real time is a huge design flaw.

Everyone else does this on the server and then sends you the results.

If my computer is going to do all the work, then I want all the knobs and sliders too.

Re:Petri Nets as a Music Sequencer by fwip on Friday August 07, 2026 @01:26PM (#49213616)
Gotcha, that makes sense. The LLM-written article said something about a "humanize" setting, so I thought it could have been something about that, so I spent a while looking for such a setting to disable.
Re:Petri Nets as a Music Sequencer by m_kos on Friday August 07, 2026 @02:18PM (#49214350)
> is it just me, or is delivery weirdly off-beat sometimes?

I played with it for a while and implementation is perhaps not the strongest aspect of this project.