Live data from Hacker News

Euclidean Drum Machine

groovemechanics.com

1–10 of 24 posts

Re: Euclidean Drum Machine

#4

I don't understand why and how it periodically resets.

its an algorithm that's been popular in music programming the past several years. there are a bunch of implementations of it.

its a method for evenly distributing x pulses along a grid of y steps.

4 / 16 is house kick 5 / 16 is a dancehall beat

start by setting all steps to 16 (the grid size), offset to 0 and vary the pulse setting and you will hear how they are distributed along the steps.

good simple explanation with python implementation:

https://github.com/brianhouse/bjorklund

javascript:

http://blog.fader.co.uk/post/11519018856/bjorklund-algorithm...

I usually call it bjorklund.

I once used it to evenly distribute promoted content across slots on a website.

Re: Euclidean Drum Machine

#5
post #3

I'm fascinated by this concept and I've even had some ideas about making something similar, though I haven't worked them out I'd love to look at the source code for this.

There's a popular paper on the technique by Godfried Toussaint that explores it in depth: http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf

Re: Euclidean Drum Machine

#6

I don't understand why and how it periodically resets.

If the least common multiple of two elements is high, the rhythm would have a very long period, which doesn't sound very well. Three elements of periods 16,9 and 7 would have a period of 1008 steps, which at a tempo of 100 would take 10 seconds to reset. That's not a rhythm, that's a tune.

Re: Euclidean Drum Machine

#8

I don't understand why and how it periodically resets.

Are you referring to the adjustable reset counter in the bottom right (which by default resets every 32 steps)? I wish the option were available to disable it and simply have the rhythm reset at its natural period. Alas...

Re: Euclidean Drum Machine

#9
Warning for all those with headphones on:

If you navigate to a different tab, and then come back to groovemechanics.com, the sound pops in VERY LOUDLY...it was painful and a bit scary to my eardrums.

Other than that, though, this is really cool!

Re: Euclidean Drum Machine

#10
post #3

I'm fascinated by this concept and I've even had some ideas about making something similar, though I haven't worked them out I'd love to look at the source code for this.

There's a popular paper on the technique by Godfried Toussaint that explores it in depth: http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf

The paper "The Distance Geometry of Music" by Demain et al. might also be of interest: http://erikdemaine.org/papers/DeepRhythms_CGTA/paper.pdf
Post reply on HN