An audio synthesis library for sound generation and manipulation
Project description
SonicSynth
SonicSynth is an audio synthesis library that provides a high-level interface for generating and manipulating various types of sounds. It allows users to create custom sound waves, apply digital signal processing (DSP) effects, and export the synthesized audio data to various audio file formats.
Key Features
- Sound Wave Generation: Generate different types of sound waves, such as sine, square, triangle, and sawtooth waves, with control over frequency, amplitude, and phase.
- Envelope Generation: Create amplitude envelopes, including ADSR (Attack, Decay, Sustain, Release), to shape the volume contour of sounds over time.
- Digital Signal Processing (DSP) Effects: Apply filters, delays, reverbs, modulation effects, and more to manipulate the synthesized audio.
- Multi-track Composition: Combine multiple sound waves or synthesized audio segments to create multi-track compositions, with control over volume, panning, and timing.
- Real-time Audio Playback: Listen to the synthesized audio in real-time, facilitating interactive sound design and experimentation.
- Audio Export: Export the synthesized audio data to common audio file formats such as WAV, MP3, and OGG.
- Comprehensive Documentation and Examples: Detailed documentation and examples are provided to help users quickly get started and explore SonicSynth's capabilities.
Installation
You can install SonicSynth using pip
:
pip install sonicsynth
Usage
import sonicsynth
# Generate a sine wave
waveform = sonicsynth.generate_sine_wave(frequency=440, amplitude=0.5, duration=2)
# Apply a low-pass filter
filtered_wave = sonicsynth.apply_low_pass_filter(waveform, cutoff_frequency=1000)
# Create a multi-track composition
track1 = sonicsynth.mix_tracks(waveform, filtered_wave, volume=0.8, panning=0.5)
# Play the synthesized audio
player = sonicsynth.Playback(44100)
player.play(track1)
# Export the audio to a WAV file
sonicsynth.export_audio(track1, filename="output.wav", format="wav")
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 Distribution
sonicsynth-1.0.0.tar.gz
(19.4 kB
view details)
Built Distribution
File details
Details for the file sonicsynth-1.0.0.tar.gz
.
File metadata
- Download URL: sonicsynth-1.0.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09b5b90df5bd584f47e75d949f9aa323d7553167e943433ccee0ac6203ca5373 |
|
MD5 | 0cbf368bcd15b1f91d4f3dcc76f4faf6 |
|
BLAKE2b-256 | e00d107c1902061a8d64c05e63897c312437eea3fbcd4103e449a549fe1ef323 |
File details
Details for the file sonicsynth-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sonicsynth-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f7c11f7fdb0be9f6127abf556811e01aa57ae3878cd35e5046ae914c8400ae7 |
|
MD5 | bc023a490928f5f1195f9b3c723acc45 |
|
BLAKE2b-256 | d67a4dc91a51b57aee88a7e6deae3c7facd0fb095c8a140419a73ee8bd077b53 |