{"id":16282842,"url":"https://github.com/zya/bjorklund","last_synced_at":"2025-09-08T05:32:51.786Z","repository":{"id":31193234,"uuid":"34753942","full_name":"zya/bjorklund","owner":"zya","description":"generates binary sequences based on Bjorklund algorithm","archived":false,"fork":false,"pushed_at":"2023-01-11T06:50:26.000Z","size":388,"stargazers_count":12,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T02:33:57.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zya.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-28T20:24:26.000Z","updated_at":"2025-03-25T10:16:38.000Z","dependencies_parsed_at":"2023-01-14T18:31:46.530Z","dependency_job_id":null,"html_url":"https://github.com/zya/bjorklund","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zya/bjorklund","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fbjorklund","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fbjorklund/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fbjorklund/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fbjorklund/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zya","download_url":"https://codeload.github.com/zya/bjorklund/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fbjorklund/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136502,"owners_count":25228390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T19:11:47.919Z","updated_at":"2025-09-08T05:32:51.411Z","avatar_url":"https://github.com/zya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bjorklund.js\nGenerates binary sequence patterns based on [Bjorklund](https://ics-web.sns.ornl.gov/timing/Rep-Rate%20Tech%20Note.pdf) algorithm.\n\n\u003e The algorithm solves the general problem of distributing `n`pulses over `m` “timing slots” in the most even way possible, even though `n`\nmay not necessarily be an even divisor of `m`.\n\nThese patterns can be used to achieve complex musical rhythms known as [Euclidean](http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf) Rhythms.\n## Example Usage\n`````\nnpm install bjorklund\n`````\n\n`````js\nvar bjork = require('bjorklund');\n\nbjork(2,5); // returns '10100'\nbjork(3,7); // returns '1010100'\nbjork(5,16); // returns '1001001001001000'\nbjork(4,16); // returns '1000100010001000'\n\n`````\nThe method outputs the pattern as a string where `1`s represent pulses and `0`s represent empty slots.\n\n### Dependencies\n * Lodash","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzya%2Fbjorklund","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzya%2Fbjorklund","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzya%2Fbjorklund/lists"}