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
Metadata
Release files for atmosphere 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atmosphere-0.1.1.tar.gz | 40.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atmosphere-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 90.7 kB
Release files / atmosphere-0.1.1.tar.gz
| Download URL | atmosphere-0.1.1.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa0e53b55108e2a23081a3b2a8579c435010697b967ad97310ec8878c6460159
|
|
BLAKE2b-256 checksum How to use checksums |
8d205a81b3635a6006f018014bb67f221330e55f6651efd8d378b734b3a21acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / atmosphere-0.1.1-py3-none-any.whl
| Download URL | atmosphere-0.1.1-py3-none-any.whl |
|---|---|
| Size | 49.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
683ae289473ea3eee6237d4bee395a5dcfd8bfaa39dae6c2bb2baa0a5a3b9350
|
|
BLAKE2b-256 checksum How to use checksums |
b8fb06d2aff1e4379885e963faffeb17c7aee2004fb57bca5c3e9e7c39f3d405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|