Skip to main content

AI-powered intelligent music remixer with optional neural transitions

Project description

AI Music Remixer

AI-powered intelligent music remixer with optional neural transitions.

Features

  • Intelligent audio remixing using Spleeter for stem separation
  • Optional PyTorch-based neural transition model for smoother transitions
  • Beat-synchronized remixing with automatic tempo detection
  • Command-line interface for easy usage
  • Safe fallback to deterministic smoothing if neural model is unavailable

Installation

pip install ai_music_remixer

For GPU support (optional):

pip install ai_music_remixer[gpu]

Usage

Command Line

Basic remix:

ai-remix input.mp3 -o output.wav

Beat-synchronized remix:

ai-remix input.mp3 --beats -o output.wav

With custom BPM:

ai-remix input.mp3 --beats --bpm 120 -o output.wav

Python API

from ai_music_remixer import ai_remix, ai_remix_beatsync

# Basic remix
ai_remix("input.mp3", "output.wav")

# Beat-synchronized remix
ai_remix_beatsync("input.mp3", "output.wav", beats_per_minute=120)

Neural Transition Model

The package includes an optional PyTorch-based neural transition model. If you place a trained checkpoint file at models/transition_ckpt.pt, the remixer will automatically use it for smoother transitions. Without a checkpoint, the package falls back to deterministic Gaussian smoothing.

To train a model (requires PyTorch):

python -m ai_music_remixer.neural.train_transition

Requirements

  • Python >= 3.8
  • pydub
  • librosa
  • soundfile
  • spleeter
  • numpy
  • scipy

Optional:

  • torch (for neural transitions)

License

MIT

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

ai_music_remixer-3.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

ai_music_remixer-3.0.0-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ai_music_remixer-3.0.0.tar.gz.

File metadata

  • Download URL: ai_music_remixer-3.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ai_music_remixer-3.0.0.tar.gz
Algorithm Hash digest
SHA256 86816986ee80da432de20f5806adcd5c75e4eda630b09634451b97d956d00c7b
MD5 db13037a7d73f721c2678c46c6e8d030
BLAKE2b-256 e5ad857866951afa2081c65e947a38acb2f0996e3f1a3c8b41dec3d6432dd347

See more details on using hashes here.

File details

Details for the file ai_music_remixer-3.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ai_music_remixer-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 59ba1ca6a0b624f5dc101319d38fa86bffa52c943acedca75b186ea1b82b846d
MD5 b71a14fda5869388bf53814d6827295e
BLAKE2b-256 e3b5c8455c23dd0b91099435fb5ddf76ee8c2451d6fd5b4a9de5e75101a664d8

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