How interactive-sonification/pya works
pya is a Python audio-signal toolkit centered on Asig: users create or load signals, manipulate and analyze them, then queue playback or record audio through a selected backend. The graph preserves synthesis, spectrum/STFT/MFCC analysis, plotting and helper capabilities documented by the README. Edges are limited to README statements and source-index references; unsampled implementation details are not inferred.
Main entry points: asig.py Audio signal · visualization.py Plotting · aserver.py Playback server · backend.py Backend selection
Components 18
Signal workflow
- Audio signal
pya/asig.py - Unit generators
pya/ugen.py - Audio file codec
pya/helper/codec.py
Signal analysis
- Spectrum
pya/aspec.py - STFT
pya/astft.py - MFCC features
pya/amfcc.py
Audio I/O
- Audio recorder
pya/arecorder.py - Playback server
pya/aserver.py
Audio backends
- Backend selection
pya/helper/backend.py - Backend interface
pya/backend/base.py - PyAudio backend
pya/backend/PyAudio.py - Jupyter backend
pya/backend/Jupyter.py - Dummy backend
pya/backend/Dummy.py
Helpers and display
- Plotting
pya/helper/visualization.py - Audio helpers
pya/helper/helpers.py
Other components
- Python user
- Audio device
- Jupyter browser
Connections 25
- Python user → Audio signal: creates or edits
README.md - Python user → Unit generators: generates signals
README.md - Audio signal → Audio file codec: loads audio
pya/asig.py - Audio signal → Playback server: plays through
pya/asig.py - Python user → Audio recorder: records input
README.md - Python user → Spectrum: analyzes spectrum
README.md - Python user → STFT: analyzes STFT
README.md - Python user → MFCC features: extracts features
pya/amfcc.py - Audio signal → Spectrum: converts to
pya/aspec.py - Audio signal → STFT: converts to
pya/astft.py - Audio signal → MFCC features: provides signal
pya/amfcc.py - Python user → Plotting: plots signals
README.md - Audio signal → Plotting: plots via
pya/asig.py - Spectrum → Plotting: plots via
pya/aspec.py - STFT → Plotting: plots via
pya/astft.py - Playback server → Backend selection: selects backend
pya/aserver.py - Backend selection → PyAudio backend: tries local
pya/helper/backend.py - Backend selection → Jupyter backend: tries remote
pya/helper/backend.py - PyAudio backend → Backend interface: implements
pya/backend/PyAudio.py - Jupyter backend → Backend interface: implements
pya/backend/Jupyter.py - Dummy backend → Backend interface: implements
pya/backend/Dummy.py - Playback server → Audio device: plays audio
README.md - Audio recorder → Audio device: captures audio
README.md - Jupyter backend → Jupyter browser: streams audio
pya/backend/Jupyter.py - Audio signal → Audio helpers: uses utilities
pya/asig.py