SuperCollider CLASSES (extension)

Bjorklund

Euclidean Algorithm for generating traditional musical rhythms
Source: /home/egor/.local/share/SuperCollider/downloaded-quarks/Bjorklund/Bjorklund.sc
Inherits from: Object

Description

After an algorithm by E. Bjorklund. See paper by Godfried Toussaint.

Class Methods

*new (k, n)

Arguments:

k

The number of 'hits'.

n

The total array size.

*fromArray (arr)

Inherited class methods

Instance Methods

Inherited instance methods

Examples

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])

see Pbjorklund for more examples.