Socket
Book a DemoInstallSign in
Socket

bjorklund-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bjorklund-js

A Javascript Universal Module implementation of the Bjorklund algorithm

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Bjorklund

A Javascript Universal Module implementation of the Bjorklund algorithm.

Installation

npm

$ npm install bjorklund-js

bower

$ bower install bjorklund-js

Usage

var
    steps = 5,
    pulses = 2;

console.log(bjorklund(steps, pulses)); // [ 0, 1, 0, 1, 0 ]

License

This project is licensed under the MIT license.

Resources

  • E. Bjorklund, The Theory of Rep-Rate Pattern Generation in the SNS Timing System
  • G. T. Toussaint, The Euclidean algorithm generates traditional musical rhythms, Proceedings of BRIDGES: Mathematical Connections in Art, Music, and Science, Banff, Alberta, Canada, July 31 to August 3, 2005, pp. 47–56.

Changelog

0.1.0

First release

0.1.1

Add minified version

0.1.2

Fixed algorithm for N==k, n % k == 0, k == 0. Thanks @colinsullivan

Keywords

euclidean

FAQs

Package last updated on 27 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.