euclidean

package
v0.0.0-...-fe54388 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2019 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

Euclidean package implements the Euclidean Algorithm to generate traditional musical rhythms. This popular rhythm approach was defined by Godfried Toussaint in 2005 https://en.wikipedia.org/wiki/Euclidean_rhythm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rhythm

func Rhythm(accents, totalSteps int) []bool

Rhythm returns a rhythmical pattern of equally distributed accents throughout the total steps. The Euclidean rhythms are explained in this white paper: http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf The total steps are the steps in a grid (or a circle) and the accents is the number of those steps you want to be triggered. The algorithm will position the accents (aka pulses) equally distributed across the available steps.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL