Hacker News new | ask | show | jobs
by eajakobsen 1223 days ago
Looks great and works great! A reset button would be nice to undo the horrible mess I made.

A minor note, when I load the page I get console warnings about an Audio Context being prevented from starting automatically, but once I click play everything works perfectly fine.

3 comments

> A reset button would be nice to undo the horrible mess I made.

The (...) button next to "Your jam" -> Clear does the job for me

Ah, I missed that :)
The audio context thing where it won’t start without user interaction is by webaudio API design. OP would need to prevent the errors from coming up though.
> A reset button

And 'random' button too.

Oh yeah, adding to my to-do list!
If you're willing to go a bit further, i recommend adding a "groove" cursor, that slightly shift each box within the beat, at random (then you can have more complex algorithm to make the randomisation move the beat toward a ternary rythm instead of completely at random). It's called "humanize" in some audio software and can be fun (if you feel like putting one cursor per track, that's even better).
Or follow the swing recipe from "Roger Linn on Swing, Groove and the Magic of the MPC's Timing (2013)":

https://www.attackmagazine.com/features/interview/roger-linn...

as previously discussed on HN (https://news.ycombinator.com/item?id=34425861).