class AudioStage:
"""AudioStage is a wrapper for pyaudio,
implements a context manager in addition to other utility
functions to play nice with primitives provided by TOPH
"""
# TODO: IDK maybe put somewhere
CHUNK_SIZE = 1024
def __init__(
self, frame_rate: int = 44100, sample_width: int = 2, n_channels: int = 2
):
AudioStage is a context manager that makes sure every toph object created within follows the same settings.
I also created some simple generators;
class SineWave(Playable):
"""The simplest sine generator"""
def __init__(self, f: int, secs: float):
Implemented some simple primitives;
AudioStage is a context manager that makes sure every toph object created within follows the same settings.
I also created some simple generators;
and
We are essentially building the
d3.js
for audio (and in python). Using these building blocks we can build sonifications;As of (a8cbe0d).
For 3d Panning