Bjorklund Euclidean Algorithm for generating traditional musical rhythms
after an algorithm by E. Bjorklund. see paper by Godfried Toussaint
see also: Pbjorklund
*new(k, n)
k is number of 'hits', n is total array size
*fromArray(arr)
//--
Bjorklund(3, 8) //tresillo
Bjorklund(5, 8) //cinquillo
Bjorklund(9, 16) //rumba
//--also works with symbols and other objects
Bjorklund.fromArray([\a, \a, \a, \b, \b, \b, \b, \b])