Module pippi.wavetables

Variables

SEGMENT_RE

Functions

adsr

def adsr(
    length,
    attack,
    decay,
    sustain,
    release
)

fromfile

def fromfile(
    filename,
    length
)

polyseg

def polyseg(
    segments,
    length
)

Calculate total output segment length in frames & alloc outbuf

loop thru segments: - generate segment - write segment into outbuf

for each segment: - calc the true length of the individual segment based on segment length - scale the size of the tmp segment to match remainder after start/end filtering - produce a tmp array from the waveform type (using normal wavetable or window generator) - copy into outbuf

segment crossfading?

rebuild_wavetable

def rebuild_wavetable(
    data
)

seesaw

def seesaw(
    win,
    length,
    tip
)

to_stack

def to_stack(
    wavetables,
    wtsize
)

to_wavetable

def to_wavetable(
    w,
    wtsize
)

to_window

def to_window(
    w,
    wtsize
)

wavetable

def wavetable(
    wavetable_type,
    length,
    data
)

Classes

Wavetable

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

Class variables

data
highvalue
length
lowvalue

Methods

clip
def clip(
    self,
    minval,
    maxval
)
convolve
def convolve(
    self,
    impulse,
    norm
)
crush
def crush(
    self,
    steps
)
crushed
def crushed(
    self,
    steps
)
cut
def cut(
    self,
    start,
    length
)
drink
def drink(
    self,
    width,
    minval,
    maxval
)
env
def env(
    self,
    window_type
)
graph
def graph(
    self,
    *args,
    **kwargs
)
harmonics
def harmonics(
    self,
    harmonics,
    weights
)
interp
def interp(
    self,
    pos,
    method
)
leftpad
def leftpad(
    self,
    value,
    length,
    mult
)
leftpadded
def leftpadded(
    self,
    value,
    length,
    mult
)
max
def max(
    self
)
normalize
def normalize(
    self,
    amount
)
pad
def pad(
    self,
    value,
    length,
    mult
)
padded
def padded(
    self,
    value,
    length,
    mult
)
rcut
def rcut(
    self,
    length
)
repeat
def repeat(
    self,
    reps
)
repeated
def repeated(
    self,
    reps
)
reverse
def reverse(
    self
)
reversed
def reversed(
    self
)
rightpad
def rightpad(
    self,
    value,
    length,
    mult
)
rightpadded
def rightpadded(
    self,
    value,
    length,
    mult
)
scale
def scale(
    self,
    fromlow,
    fromhigh,
    tolow,
    tohigh,
    log
)
scaled
def scaled(
    self,
    fromlow,
    fromhigh,
    tolow,
    tohigh,
    log
)
skew
def skew(
    self,
    tip
)
skewed
def skewed(
    self,
    tip
)
snap
def snap(
    self,
    mult,
    pattern
)
snapped
def snapped(
    self,
    mult,
    pattern
)
taper
def taper(
    self,
    length
)
toonsets
def toonsets(
    self,
    length
)
write
def write(
    self,
    path,
    samplerate
)