Live data from Hacker News

Show HN: Randomly generated metal riffs using Web Audio API and React

djen.co

11–20 of 43 posts

Re: Show HN: Randomly generated metal riffs using Web Audio API and React

#11
post #6

Really interesting project. Can you give a brief description of the algorithm? Also, would it be possible to export MIDI, or some other format where you could drop in your own samples?

It seems to be based around the classic Meshuggah formula.

Basically, pick an unusual time signature and play the guitars and kick drum in that time signature. The kick drum should always be played at the same time as the guitar note. Then play hats/cymbals/snare at 4/4 over that. Other than that, I think it just randomly selects one of the samples you checked-off at a randomly chosen duration.

It's astonishing how good this sounds. It's even more impressive considering how simple it appears to be. I've tried writing music generating algorithms before, and they all sounded terrible. I suppose the genre helps, as djent is expected to make rapid and somewhat jarring changes, so it fits right in.

Re: Show HN: Randomly generated metal riffs using Web Audio API and React

#15
I'm impressed. Congrats! I would love to be able to generate a 3 minutes long tune with this

On Android's Chrome the URL shown under "Share this URL:" weirdly glitches the selection sliders.

Love the beginning of http://djen.co/#share/OkR9gw TUMMM TUMDUM

EDIT : You should add a "Download" option because man do I want that as a ringtone

Re: Show HN: Randomly generated metal riffs using Web Audio API and React

#17

Amazing job :) I'd love to see it with deephouse or techno sounds. It's so tempting to fork the repo. Here's my madness: http://djen.co/#share/opYJd9

I would be down to work on deep house and techno fork with you !

I checked the code, it's probably as simple as rewriting the `src\scripts\app\utils\default-instruments.js` file and replace the samples. Presets won't work because they rely on the ID string.

I have like 100GB of samples, it might take a while :)

The key here is to pick chords and pads from the same scale.

I'm bit busy now, but on the weekend I might give it a shot. If I make any progress, you will find it here: https://github.com/tiborsaas/djent

Re: Show HN: Randomly generated metal riffs using Web Audio API and React

#19
Wicked fun and glad to get a chance to test it out. Excellent results with tweaking parameters, at least to my ears. Functional and appealing, well for those into this sort of heavy chug style (djent), which I get a kick out of most of the time. Spiffy!
Post reply on HN