Module pippi.dsp

Variables

MS

Functions

buffer

def buffer(
    frames,
    length,
    channels,
    samplerate
)

choice

def choice(
    choices
)

event

def event(
    *args,
    **kwargs
)

fill

def fill(
    data,
    length
)

find

def find(
    pattern,
    channels=2,
    samplerate=44100
)

Glob for files matching a given pattern and return a generator that will yield each file as a SoundBuffer

injest

def injest(
    snd,
    dbname,
    dbpath,
    overwrite
)

join

def join(
    sounds,
    overlap=None,
    channels=None,
    samplerate=None
)

Concatenate a list of sounds into a new sound

load

def load(
    filename
)

mag

def mag(
    snd
)

mix

def mix(
    sounds,
    align_end
)

Mix a list of sounds into a new sound

pool

def pool(
    callback,
    reps=None,
    params=None,
    processes=None
)

rand

def rand(
    low,
    high
)

randint

def randint(
    low,
    high
)

randline

def randline(
    numpoints,
    lowvalue,
    highvalue,
    wtsize
)

read

def read(
    filename,
    length,
    start
)

Read a soundfile from disk and return a SoundBuffer with its contents. May include a start position and length in seconds to read a segment from a large file.

The filename param is always converted to a string, so it is safe to pass a Path instance from the standard library pathlib module.

readall

def readall(
    path,
    length,
    start
)

render

def render(
    events,
    callback,
    channels,
    samplerate
)

scale

def scale(
    source,
    fromlow,
    fromhigh,
    tolow,
    tohigh,
    log
)

seed

def seed(
    value
)

snap

def snap(
    source,
    mult,
    pattern
)

stack

def stack(
    sounds
)

win

def win(
    values,
    lowvalue,
    highvalue,
    wtsize
)

ws

def ws(
    values,
    crossings,
    offset,
    limit,
    modulo,
    samplerate,
    wavesets
)

wt

def wt(
    values,
    lowvalue,
    highvalue,
    wtsize
)