| |
- Array
-
- MMap
- ShortArray
-
- Wavetable
- SubArray
- Buffer
- Pipe
- Tap
- Task
-
- Abs
- Add
- Copy
- Delay
- Env
- File
-
- FileRd
- FileWr
- Fir
- Gain
- GetChar
- GetInt
- Hi
- IIR
- Interleave
- Linear
- Lo
- Lookup
- Loop
- Mean
- MemTask
-
- MemRd
- MemWr
- Mix
- Mix2
- Mix4
- Mix8
- Noise
- None_
- Null
- OSS
-
- Dsp
- OSSRd
-
- DspRd
- OSSRd
-
- DspRd
- OSSRdWr
-
- DspRdWr
- OSSRdWr
-
- DspRdWr
- OSSWr
-
- DspWr
- OSSWr
-
- DspWr
- OSS
-
- Dsp
- OSSRd
-
- DspRd
- OSSRd
-
- DspRd
- OSSRdWr
-
- DspRdWr
- OSSRdWr
-
- DspRdWr
- OSSWr
-
- DspWr
- OSSWr
-
- DspWr
- PA
-
- PARd
- PARdWr
- PAWr
- RLo1
- RLo2
- RMS
- RMod
- Resample
- Sin
- Split
- Squ
- Term
- Trace
- Tri
- Zero
class Pipe |
|
Pipe(x,y): connects a Task to a Buffer (or vice-versa) |
|
Methods defined here:
- __del__(self)
- __init__(self, lhs, rhs)
- __len__(self)
- __repr__(self)
- __str__(self)
- close(self)
- consume(self, i)
- done(self)
- free(self)
- get_i(self)
- get_limit(self)
- get_rlimit(self)
- info(self, depth)
- limit(self, i)
- no_limit(self)
- produce(self, i)
- pull(self)
- pull_free(self)
- pull_reset(self)
- pull_str(self, depth=0)
- pull_visit(self)
- push(self)
- read_short(self)
- read_size(self)
- reader_mem(self)
- reader_request(self, size)
- reset(self)
- rlimit(self, i)
- source(self)
- sources(self)
- target(self)
- targets(self)
- write_short(self, x)
- write_size(self)
- writer_mem(self)
- writer_request(self, size)
Data and non-method functions defined here:
- __doc__ = ' Pipe(x,y): connects a Task to a Buffer (or vice-versa) '
- __module__ = 'Sonic'
|
class Task |
|
Task objects process signals
obtained from Buffer objects (memory)
via Pipe objects (smart pointers). |
|
Methods defined here:
- __call__(self, *args)
- __del__(self)
- __init__(self, name='', *args)
- __repr__(self)
- __ror__(self, x)
- __str__(self)
- _print(self)
- _reader_notify(self, rp)
- _send(self)
- _writer_notify(self, wp)
- close_reader(self, p)
- close_writer(self, p)
- done(self)
- free(self)
- open_reader(self, buffer)
- open_writer(self, buffer)
- pipe(self, buf)
- pull(self)
- pull_free(self)
- pull_reset(self)
- pull_str(self, depth=0)
- pull_visit(self)
- pullpush(self)
- push(self)
- reader(self)
- reset(self)
- rotate_pull(self)
- when the path has loops
- send(self)
- source(self, *place)
- sources(self)
- target(self, *place)
- targets(self)
- writer(self)
Data and non-method functions defined here:
- __doc__ = ' Task objects process signals \n obtained from... (memory) \n via Pipe objects (smart pointers).'
- __module__ = 'Sonic'
|
class None_(Task) |
|
None_: do nothing |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' None_: do nothing '
- __module__ = 'Sonic'
|
class Null(Task) |
|
Null(): trash all input |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' Null(): trash all input '
- __module__ = 'Sonic'
|
class Zero(Task) |
|
write zero |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' write zero '
- __module__ = 'Sonic'
|
class Copy(Task) |
|
copy input to output |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' copy input to output '
- __module__ = 'Sonic'
|
class Add(Task) |
|
Add: output sum of all inputs |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' Add: output sum of all inputs '
- __module__ = 'Sonic'
|
class Abs(Task) |
|
output absolute value of input |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' output absolute value of input '
- __module__ = 'Sonic'
|
class RMod(Task) |
|
output product of inputs |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' output product of inputs '
- __module__ = 'Sonic'
|
class Mean(Task) |
|
output average of inputs |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' output average of inputs '
- __module__ = 'Sonic'
|
class Mix(Task) |
|
Mix(r=1.0): mix with gain=r |
|
Methods defined here:
- __init__(self, r=1.0)
Data and non-method functions defined here:
- __doc__ = ' Mix(r=1.0): mix with gain=r '
- __module__ = 'Sonic'
|
class Mix2(Task) |
|
|
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class Mix4(Task) |
|
|
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class Mix8(Task) |
|
|
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class Fir(Task) |
|
Fir(list_of_rs): generic finite impulse filter |
|
Methods defined here:
- __init__(self, fir)
Data and non-method functions defined here:
- __doc__ = ' Fir(list_of_rs): generic finite impulse filter '
- __module__ = 'Sonic'
|
class Resample(Task) |
|
Resample(r): resample at rate r |
|
Methods defined here:
- __init__(self, r)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' Resample(r): resample at rate r '
- __module__ = 'Sonic'
|
class Split(Task) |
|
output left and right from stereo (interleaved) input |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' output left and right from stereo (interleaved) input '
- __module__ = 'Sonic'
|
class Interleave(Task) |
|
output stereo (interleaved) from left and right inputs |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' output stereo (interleaved) from left and right inputs '
- __module__ = 'Sonic'
|
class Gain(Task) |
|
Gain(r=1.0): ouptput input multiplied by r |
|
Methods defined here:
- __init__(self, r=1.0)
- get_r(self)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' Gain(r=1.0): ouptput input multiplied by r '
- __module__ = 'Sonic'
|
class File(Task) |
|
File(filename,mode): read a file |
|
Methods defined here:
- __init__(self, filename, mode='r')
- seek(self, offset)
- size(self)
Data and non-method functions defined here:
- __doc__ = ' File(filename,mode): read a file '
- __module__ = 'Sonic'
|
class FileRd(File) |
|
FileRd(filename): read a file |
|
- Method resolution order:
- FileRd
- File
- Task
Methods defined here:
- __init__(self, filename)
Data and non-method functions defined here:
- __doc__ = ' FileRd(filename): read a file '
- __module__ = 'Sonic'
|
class FileWr(File) |
|
FileWr(filename): write a file |
|
- Method resolution order:
- FileWr
- File
- Task
Methods defined here:
- __init__(self, filename)
Data and non-method functions defined here:
- __doc__ = ' FileWr(filename): write a file '
- __module__ = 'Sonic'
|
class OSS(Task) |
|
OSS(dev,speed,stereo,mode='w'): read/write OSS soundcard |
|
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0, mode='w')
Data and non-method functions defined here:
- __doc__ = " OSS(dev,speed,stereo,mode='w'): read/write OSS soundcard "
- __module__ = 'Sonic'
|
class OSSRdWr(OSS) |
|
OSSRdWr(dev,speed,stereo): read/write OSS soundcard |
|
- Method resolution order:
- OSSRdWr
- OSS
- Task
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0)
Data and non-method functions defined here:
- __doc__ = ' OSSRdWr(dev,speed,stereo): read/write OSS soundcard '
- __module__ = 'Sonic'
|
class OSSRd(OSS) |
|
OSSRd(dev,speed,stereo): read OSS soundcard |
|
- Method resolution order:
- OSSRd
- OSS
- Task
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0)
Data and non-method functions defined here:
- __doc__ = ' OSSRd(dev,speed,stereo): read OSS soundcard '
- __module__ = 'Sonic'
|
class OSSWr(OSS) |
|
OSSWr(dev,speed,stereo): write OSS soundcard |
|
- Method resolution order:
- OSSWr
- OSS
- Task
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0)
Data and non-method functions defined here:
- __doc__ = ' OSSWr(dev,speed,stereo): write OSS soundcard '
- __module__ = 'Sonic'
|
class PA(Task) |
|
PA(dev,speed,stereo,mode): read/write portaudio soundcard |
|
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0, mode='w')
Data and non-method functions defined here:
- __doc__ = ' PA(dev,speed,stereo,mode): read/write portaudio soundcard '
- __module__ = 'Sonic'
|
class PARdWr(PA) |
|
PARdWr(dev,speed,stereo): read/write portaudio soundcard |
|
- Method resolution order:
- PARdWr
- PA
- Task
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0)
Data and non-method functions defined here:
- __doc__ = ' PARdWr(dev,speed,stereo): read/write portaudio soundcard '
- __module__ = 'Sonic'
|
class PARd(PA) |
|
PARd(dev,speed,stereo): read portaudio soundcard |
|
- Method resolution order:
- PARd
- PA
- Task
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0)
Data and non-method functions defined here:
- __doc__ = ' PARd(dev,speed,stereo): read portaudio soundcard '
- __module__ = 'Sonic'
|
class PAWr(PA) |
|
PAWr(dev,speed,stereo): write portaudio soundcard |
|
- Method resolution order:
- PAWr
- PA
- Task
Methods defined here:
- __init__(self, dev=1, speed=44100, stereo=0)
Data and non-method functions defined here:
- __doc__ = ' PAWr(dev,speed,stereo): write portaudio soundcard '
- __module__ = 'Sonic'
|
class Dsp(OSS) |
|
DspRdWr(dev,speed,stereo): read/write soundcard |
|
- Method resolution order:
- Dsp
- OSS
- Task
Data and non-method functions defined here:
- __doc__ = ' DspRdWr(dev,speed,stereo): read/write soundcard '
- __module__ = 'Sonic'
|
class DspRdWr(OSSRdWr) |
|
DspRdWr(dev,speed,stereo): read/write soundcard |
|
- Method resolution order:
- DspRdWr
- OSSRdWr
- OSS
- Task
Data and non-method functions defined here:
- __doc__ = ' DspRdWr(dev,speed,stereo): read/write soundcard '
- __module__ = 'Sonic'
|
class DspRd(OSSRd) |
|
DspRd(dev,speed,stereo): read soundcard |
|
- Method resolution order:
- DspRd
- OSSRd
- OSS
- Task
Data and non-method functions defined here:
- __doc__ = ' DspRd(dev,speed,stereo): read soundcard '
- __module__ = 'Sonic'
|
class DspWr(OSSWr) |
|
DspWr(dev,speed,stereo): write soundcard |
|
- Method resolution order:
- DspWr
- OSSWr
- OSS
- Task
Data and non-method functions defined here:
- __doc__ = ' DspWr(dev,speed,stereo): write soundcard '
- __module__ = 'Sonic'
|
class Sin(Task) |
|
Sin(f=440,r=1.0): generate a sin wave, freq=f, amplitude=r |
|
Methods defined here:
- __init__(self, f=440.0, r=1.0)
- set_f(self, f)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' Sin(f=440,r=1.0): generate a sin wave, freq=f, amplitude=r '
- __module__ = 'Sonic'
|
class Squ(Task) |
|
Squ(f=440,r=1.0): generate a square wave |
|
Methods defined here:
- __init__(self, f=440.0, r=1.0)
- set_f(self, f)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' Squ(f=440,r=1.0): generate a square wave '
- __module__ = 'Sonic'
|
class Tri(Task) |
|
Tri(f=440,r=1.0): generate a triangle wave |
|
Methods defined here:
- __init__(self, f=440.0, r=1.0)
- set_f(self, f)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' Tri(f=440,r=1.0): generate a triangle wave '
- __module__ = 'Sonic'
|
class Noise(Task) |
|
Noise(): generate noise |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' Noise(): generate noise '
- __module__ = 'Sonic'
|
class Lo(Task) |
|
Lo(r): low pass filter |
|
Methods defined here:
- __init__(self, r)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' Lo(r): low pass filter '
- __module__ = 'Sonic'
|
class RLo1(Task) |
|
RLo1(f,r): resonant low pass filter (1) |
|
Methods defined here:
- __init__(self, f=440, r=0.96999999999999997)
- set_f(self, f)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' RLo1(f,r): resonant low pass filter (1) '
- __module__ = 'Sonic'
|
class RLo2(Task) |
|
RLo2(f,r): resonant low pass filter (2) |
|
Methods defined here:
- __init__(self, f, r)
- set_f(self, f)
- set_r(self, r)
Data and non-method functions defined here:
- __doc__ = ' RLo2(f,r): resonant low pass filter (2) '
- __module__ = 'Sonic'
|
class Hi(Task) |
|
Hi(r): hi pass filter |
|
Methods defined here:
- __init__(self, r)
Data and non-method functions defined here:
- __doc__ = ' Hi(r): hi pass filter '
- __module__ = 'Sonic'
|
class Env(Task) |
|
Env(): max abs of each block read |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' Env(): max abs of each block read '
- __module__ = 'Sonic'
|
class RMS(Task) |
|
RMS(): root mean square over each block read |
|
Methods defined here:
- __init__(self)
Data and non-method functions defined here:
- __doc__ = ' RMS(): root mean square over each block read '
- __module__ = 'Sonic'
|
class Tap |
|
|
|
Methods defined here:
- __init__(self, tp)
- set_i(self, i)
- set_x(self, x)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class IIR(Task) |
|
IIR(line=[]): infinite impulse response filter |
|
Methods defined here:
- __getitem__(self, idx)
- __init__(self, line=[])
- __len__(self)
- add(self, i, x)
Data and non-method functions defined here:
- __doc__ = ' IIR(line=[]): infinite impulse response filter '
- __module__ = 'Sonic'
|
class Delay(Task) |
|
Delay(n): output is n samples behind input |
|
Methods defined here:
- __init__(self, n)
- set_n(self, n)
Data and non-method functions defined here:
- __doc__ = ' Delay(n): output is n samples behind input '
- __module__ = 'Sonic'
|
class Trace(Task) |
|
Trace(x,y,w,h): SDL graphical display of signal |
|
Methods defined here:
- __init__(self, x=0, y=0, w=640, h=480)
Data and non-method functions defined here:
- __doc__ = ' Trace(x,y,w,h): SDL graphical display of signal '
- __module__ = 'Sonic'
|
class Lookup(Task) |
|
Lookup(buf=None): use input as index into values in buf |
|
Methods defined here:
- __init__(self, b=None)
- flush(self)
Data and non-method functions defined here:
- __doc__ = ' Lookup(buf=None): use input as index into values in buf'
- __module__ = 'Sonic'
|
class Linear(Task) |
|
Linear(v,x_init=0): linear spline,
v is a list of (width,level) pairs |
|
Methods defined here:
- __getitem__(self, idx)
- __init__(self, v, x_init=0)
- __len__(self)
- __setitem__(self, idx, val)
- __str__(self)
- append(self, di, x)
- pop(self)
- update(self, l)
Data and non-method functions defined here:
- __doc__ = ' Linear(v,x_init=0): linear spline, \n v is a list of (width,level) pairs '
- __module__ = 'Sonic'
|
class Term(Task) |
|
Term(cb=None): ncurses interface, outputs keypresses, behaves like a dict of lines: term[0]="foo" |
|
Methods defined here:
- __del__(self)
- __init__(self, cb=<function <lambda>>)
- __setitem__(self, key, s)
Data and non-method functions defined here:
- __doc__ = ' Term(cb=None): ncurses interface, outputs keypresses, behaves like a dict of lines: term[0]="foo" '
- __module__ = 'Sonic'
|
class GetChar(Task) |
|
|
|
Methods defined here:
- __init__(self, cb=<function <lambda>>, *data)
- get_char(self, rp)
- send(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class GetInt(Task) |
|
|
|
Methods defined here:
- __init__(self, cb=<function <lambda>>, *data)
- get_int(self, rp)
- send(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class Loop(Task) |
|
Loop(filename)
Loop(array,sz=None)
Loop(mem,sz) |
|
Methods defined here:
- __init__(self, *args)
- clone(self)
- get_offset(self)
- seek(self, offset)
- offset is bytecount
Data and non-method functions defined here:
- __doc__ = ' Loop(filename)\n Loop(array,sz=None)\n Loop(mem,sz) '
- __module__ = 'Sonic'
|
class MemTask(Task) |
|
|
|
Methods defined here:
- __init__(self, name, array, sz)
- clone(self)
- get_offset(self)
- seek(self, offset)
- offset is bytecount
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class MMap(Array) |
|
|
|
Methods defined here:
- __init__(self, filename)
- __str__(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class SubArray(Array) |
|
|
|
Methods defined here:
- __init__(self, array, start, end)
- __str__(self)
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
class ShortArray(Array) |
|
|
|
Methods defined here:
- __init__(self, sz)
- sz is short count
Data and non-method functions defined here:
- __doc__ = None
- __module__ = 'Sonic'
|
|