Online implementation of the bjorklund algorithm for generating rhythms.