Show HN: A 64-step drum sequencer I built using React and Redux
Running Firefox on Windows 10 x64, on a somewhat under-specced machine that tends to run low on RAM.<p>I&#x27;m getting <i>highly</i> inconsistent note timings, with intermittent full 1-second pauses with no new notes being triggered. (FWIW, I also saw something similar in <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26870666" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26870666</a> , and am getting choppy audio in Zoom that disappears as soon as I enable profiling...)<p>Is it my browser&#x27;s fault for having the JS event loop stall, or the page&#x27;s fault for driving audio off the page&#x27;s event loop? Or both? (IDK how to fix Firefox, other than increasing the content processes above 3, which will reduce cross-tab lag but possibly increase RAM, or to reduce my extensions or find the one at fault.)<p>On a related note, how critical is it to follow the &quot;audio on a real-time thread&quot; dogma (<a href="http:&#x2F;&#x2F;www.rossbencina.com&#x2F;code&#x2F;real-time-audio-programming-101-time-waits-for-nothing" rel="nofollow">http:&#x2F;&#x2F;www.rossbencina.com&#x2F;code&#x2F;real-time-audio-programming-...</a>)? I&#x27;ve heard that not using Electron, writing real-time code, avoiding mutexes and allocations, mlock to avoid swapping, tuning OSes and picking processors and audio interfaces based on its low-latency properties, etc. is important for live performances, but not necessary for MIDI instrument input for (casual home users? studio work?).