Skip to main content

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 chain
  • spatialize_signal(signal, source_pos, listener_pos, velocity): Apply 3D spatialization
  • apply_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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atmosphere-0.1.1.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atmosphere-0.1.1-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

Details for the file atmosphere-0.1.1.tar.gz.

File metadata

  • Download URL: atmosphere-0.1.1.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for atmosphere-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa0e53b55108e2a23081a3b2a8579c435010697b967ad97310ec8878c6460159
MD5 60eb6d9507133e5505a300945249905d
BLAKE2b-256 8d205a81b3635a6006f018014bb67f221330e55f6651efd8d378b734b3a21acc

See more details on using hashes here.

File details

Details for the file atmosphere-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: atmosphere-0.1.1-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

Hashes for atmosphere-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 683ae289473ea3eee6237d4bee395a5dcfd8bfaa39dae6c2bb2baa0a5a3b9350
MD5 bc67f3ca67aeb7908e9e943e1a51eebf
BLAKE2b-256 b8fb06d2aff1e4379885e963faffeb17c7aee2004fb57bca5c3e9e7c39f3d405

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page