8000 GitHub - Zirafkend/Bjorklund: Euclidean Generator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Zirafkend/Bjorklund

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Bjorklund Algorithm

I'm Greatfull to Sergio Castro for his code

https://bitbucket.org/sjcastroe/bjorklunds-algorithm

I reimplement it to fit in a simple std::vector

there is also a shift method

and a print vector

et voilà

int main() {

    auto kick = bjorklund(16, 4);      // the basic 4/4
    cout << kick << endl;     //1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0

    auto hh = shift(kick, 2);
    cout << hh << endl;     //0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0

    cout<< pressets["afro"] << endl;
    //1 0 1

    return 0;
}

Here is the genesis of this code

https://stimresp.wordpress.com/2014/10/18/bjorklund-the-algorithm-in-c/

And the research paper of course by Toussaint

http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf

About

Euclidean Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0