Module pippi.dsp
Variables
MS
Functions
buffer
def buffer(
frames=None,
length=-1.0,
channels=2,
samplerate=44100
)
bufferfrom
def bufferfrom(
src
)
choice
def choice(
choices
)
event
def event(
*args,
**kwargs
)
fetch
def fetch(
url
)
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
frombytes
def frombytes(
blob
)
fromrawfile
def fromrawfile(
filename
)
injest
def injest(
snd,
dbname=None,
dbpath=None,
overwrite=False
)
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=False
)
Mix a list of sounds into a new sound
pool
def pool(
callback,
reps=None,
params=None,
processes=None
)
rand
def rand(
low=0.0,
high=1.0
)
randdump
def randdump(
)
randint
def randint(
low=0,
high=1
)
randline
def randline(
numpoints,
lowvalue=0.0,
highvalue=1.0,
wtsize=4096
)
randmethod
def randmethod(
method='normal'
)
randparams
def randparams(
domain=None,
**kwargs
)
read
def read(
filename,
length=-1.0,
offset=0
)
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=-1.0,
offset=0
)
readchoice
def readchoice(
path
)
render
def render(
events,
callback,
channels=2,
samplerate=48000
)
scale
def scale(
source,
fromlow=-1.0,
fromhigh=1.0,
tolow=0.0,
tohigh=1.0,
log=False
)
seed
def seed(
value=None
)
snap
def snap(
source,
mult=0.0,
pattern=None
)
stack
def stack(
sounds
)
tolog
def tolog(
value,
base=10
)
win
def win(
values,
lowvalue=None,
highvalue=None,
wtsize=0
)
ws
def ws(
values=None,
crossings=3,
offset=-1,
limit=-1,
modulo=1,
samplerate=-1,
wavesets=None
)
wt
def wt(
values,
lowvalue=None,
highvalue=None,
wtsize=0
)