A comprehensive audio processing and routing system
Project description
Dimension & Resonance
A comprehensive audio processing and routing system for creating immersive audio experiences through advanced signal processing, spatial audio, and network routing.
๐ต Features
- Delay Module: Time-based audio processing with echo effects and AI trajectory optimization
- Echo Module: Signal reflection and feedback processing with knowledge graphs
- Reverb Module: Acoustic environment simulation with spatial audio processing
- Routing Module: Network routing and acoustic topology modeling
๐ Installation
Prerequisites
- Python 3.8+
- pip
Install from source
git clone https://github.com/yourusername/dimension-resonance.git
cd dimension-resonance
pip install -e .
Development Installation
pip install -e ".[dev]"
๐ Usage
Basic Usage
# Import modules
from delay import Delay, EchoesPlatform
from reverb import ReverbPlatform
from routing import AcousticRoutingNetwork
# Create instances
delay = Delay(time_ms=500, feedback=0.3)
reverb = ReverbPlatform()
network = AcousticRoutingNetwork()
# Use functionality
delayed_signal = delay.process(audio_signal)
reverberated = reverb.process_signal(audio_signal)
network.add_highway_segment("A", "B", distance_miles=10)
Delay Module
from delay import Delay
# Create delay effect
delay = Delay(
time_ms=300, # Delay time in milliseconds
feedback=0.4, # Feedback amount (0-1)
level=0.6, # Echo volume (0-1)
dry_wet=0.5 # Mix balance (0-1)
)
# Apply to audio signal
processed_audio = delay.process(audio_signal)
Reverb Module
from reverb import ReverbPlatform
# Create reverb processor
reverb = ReverbPlatform()
# Process audio with spatial effects
spatial_audio = reverb.spatialize_signal(
audio_signal,
source_pos=(1, 0, 0), # Source position (x, y, z)
listener_pos=(0, 0, 0), # Listener position
velocity=(0, 0, 0) # Source velocity
)
# Apply reverb preset
hall_reverb = reverb.apply_reverb_preset("hall")
Routing Module
from routing import AcousticRoutingNetwork
# Create acoustic routing network
network = AcousticRoutingNetwork()
# Add network segments with acoustic properties
network.add_highway_segment(
start="CityA",
end="CityB",
distance_miles=50,
speed_limit_mph=70,
interconnectivity=0.3
)
# Find optimal acoustic route
route = network.find_optimal_route("CityA", "CityC")
๐๏ธ Architecture
Module Structure
src/
โโโ delay/ # Time-based audio effects
โ โโโ core/ # Core delay algorithms
โ โโโ api/ # REST API endpoints
โ โโโ models/ # Data models
โโโ echo/ # Echo and feedback processing
โ โโโ core/ # Echo algorithms
โ โโโ api/ # API endpoints
โ โโโ models/ # Data models
โโโ reverb/ # Reverb and spatial audio
โ โโโ core/ # Reverb algorithms
โ โโโ api/ # API endpoints
โ โโโ models/ # Signal models
โ โโโ services/ # Processing services
โโโ routing/ # Network routing
โโโ acoustic_routing/ # Routing algorithms
โโโ api/ # API endpoints
โโโ core/ # Core routing logic
โโโ models/ # Network models
Audio Processing Chain
Input โ Delay โ Echo โ Reverb โ Spatial โ Output
๐งช Testing
Run the test suite:
pytest
Run with coverage:
pytest --cov=src --cov-report=html
๐ API Documentation
Delay Module
Delay Class
Advanced audio delay effect with comprehensive parameters.
Parameters:
time_ms(float): Delay time in milliseconds (default: 250)feedback(float): Feedback amount 0-1 (default: 0.3)level(float): Echo volume 0-1 (default: 0.5)dry_wet(float): Mix balance 0-1 (default: 0.5)
Reverb Module
ReverbPlatform Class
Main platform for processing audio through complete effects chain.
Methods:
process_signal(signal): Process through full effects chainspatialize_signal(signal, source_pos, listener_pos, velocity): Apply 3D spatializationapply_reverb_preset(preset_name): Apply preset ("hall", "room", "plate")
Routing Module
AcousticRoutingNetwork Class
Network modeling with acoustic properties.
Methods:
add_highway_segment(start, end, distance, speed_limit, interconnectivity)find_optimal_route(start, end)visualize_network(save_path=None)
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Original audio processing algorithms
- Network routing implementations
- Spatial audio research community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atmosphere-0.1.0-py3-none-any.whl.
File metadata
- Download URL: atmosphere-0.1.0-py3-none-any.whl
- Upload date:
- Size: 49.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1da588ebfb83e520a8c4cae18ee229efcc7a5e309eb01accc031ca3edb2548fe
|
|
| MD5 |
7f9818e02a9c72a72056275a4db1b7a3
|
|
| BLAKE2b-256 |
9c3f60f72d3f04a620d6ea9bb0b69eb2f75205fa7f42961f22362cea98f526b7
|