Module pippi.rhythm

Some helpers for building and transforming onset lists

Variables

BELL
CLAVE
MIN_BEAT
REST_SYMBOLS
RUMBA
SON
TRESILLO

Functions

eu

def eu(
    ...
)

A euclidian pattern generator

Length 6, numbeats 3

rhythm.eu(6, 3) [1, 0, 1, 0, 1, 0]

Length 6, numbeats 3, offset 1

rhythm.eu(6, 3, 1) [0, 1, 0, 1, 0, 1]

onsets

def onsets(
    ...
)

Patterns to onset lists

pgen

def pgen(
    ...
)

Pattern creation helper

repeat

def repeat(
    ...
)

Repeat a sequence of onsets a given number of times

rotate

def rotate(
    ...
)

Rotate a pattern list by a given offset

Classes

Seq

class Seq(
    /,
    *args,
    **kwargs
)

Class variables

drums

Methods

add
def add(
    ...
)
play
def play(
    ...
)
update
def update(
    ...
)