Skip to content
Projekte

Über uns

Open-source AI music generation, neural transcription, multitrack DAW, stem separation, and music video studio powered by MiniMax Music 3.

Design und Medien

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
Verlauf wird gesammelt
in 7 days
Verlauf wird gesammelt
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original
Milimo Music Logo

🎵 Milimo Music

Next-Generation AI Music Generation, Neural Transcription & Multitrack Production DAW

Created by Mainza Kangombe

License: Apache-2.0 Python: 3.10+ FastAPI React 19 MLX: Apple Silicon Platform

Overview • Video Explainer • Studio Tour • Workflow • Key Features • Architecture • Quickstart • Hotkeys • Resources • License


🌟 Overview

Milimo Music is an open-source AI music generation platform and digital audio workstation (DAW). It bridges the gap between state-of-the-art generative neural models and professional multitrack studio workflows — transforming natural language prompts and structured lyrics into mastered stereo tracks, note-level polyphonic MIDI, dynamic Grand Staff sheet music, isolated neural stems, synchronized acoustic karaoke, and voice conversion tools.

graph LR
    A["💡 Concept & Lyrics"] --> B["🤖 AI Co-Writer & Caption Rewriter"]
    B --> C["🎼 MiniMax Music 3 Engine"]
    C --> D["🎛️ Neural 6-Stem Separation<br/>(BS-Roformer & MuScriptor)"]
    D --> E["🎙️ Offline Voice Conversion<br/>(SVC Studio)"]
    E --> F["🎹 Neural Transcription<br/>(MIDI + MusicXML 3.1)"]
    F --> G["🎤 Neural Acoustic Lyric Sync<br/>(TorchAudio MMS_FA • LRC/SRT)"]
    G --> H["💻 6-Mode Web Audio DAW<br/>(Listen • Arrange • Piano Roll • Notation • Mix • Lyrics)"]
    H --> I["🎬 AI Music Video Studio<br/>(Wan 2.1 14B • LivePortrait • Keyframes • Burned Karaoke)"]

🎬 Video Explainer & Studio Walkthrough

Watch the video breakdown and live workstation walkthrough of Milimo Music v2 showcasing full prompt-to-production multitrack workflows:

Milimo Music v2 - Major Update Video Explainer
▶️ Watch: Milimo Music v2 — Major Update Walkthrough on YouTube


📸 Studio Tour & Workspace Modes

Milimo Music features an Apple-grade, high-fidelity workstation bridging generative AI with tactile multitrack DAW precision:

1. Explore & Create Landing Hub

Natural language prompt composer, AI Co-Writer brainstorm assistant, real-time session feed, and quick action launchpads.

Milimo Music Explore & Create Studio

2. Track Studio Deep-Drill & Dual-Engine Stems Matrix

Deep inspection of generated assets, stem mix preview with solo/mute auditioning, version trees, and one-click downloads for neural stems (BS-Roformer) and MIDI instrument parts (MuScriptor).

Track Studio Deep-Drill and Dual-Engine Stems Matrix

3. Multitrack Stem Arrangement & Song Structure

Dynamic per-instrument stem lanes (Piano, Bass, Drums, Clean Electric Guitar, Voice, Clarinet), real note-density waveforms, measure grids, song structure markers (Verse, Chorus, Bridge, Outro), and tactile Solo (S) / Mute (M) staging.

Multitrack Stem Arrangement and Song Structure

4. Neural Master Stems Arrangement Matrix

Direct toggle between dynamic synthesized parts and 4-stem / 6-stem neural source separation (Drums, Bass, Other, Vocals) with synchronized playhead tracking and bar-level arrangement blocks.

Neural Master Stems Arrangement Matrix

5. Grand Piano Roll & Polyphonic MIDI Editor

144px interactive Studio Grand keyboard, note-by-note duration and velocity editing, live Web Audio polyphonic synth auditioning, quantize grid snapping, and bidirectional score synchronization.

Grand Piano Roll and Interactive MIDI Score

6. MusicXML Score Notation & Engraving

Full W3C MusicXML Grand Staff notation viewer with real diatonic pitch placement, measure-by-measure navigation, high-resolution score rendering, and one-click Sheet Music PDF and MusicXML export.

MusicXML Score Notation and Engraving

7. DAW Console Mixer & Matchering Reference Master

Channel strip gain staging, rotary stereo pan knobs, tactile Solo/Mute toggles, animated LED peak meters, and Matchering reference mastering calibrated to a strict -14.0 LUFS broadcast target.

DAW Console Mixer and Matchering DSP

8. Autonomous AI Artist Profiles & Creative Crew Studio

Virtual artist identities with persistent world lore, style DNA, release catalog management, and assigned AI agent crews (World-Builder, Experiencer, Songwriter, Stylist, Critic).

Autonomous AI Artist Profiles and Creative Squad

9. Multi-Modal Generation Model Hub

Centralized model management hub for Audio (MiniMax Music 3 MLX mxfp4 / bfloat16, PyTorch, HeartMuLa-3B, MuLaCover-3B), FLUX.2 image diffusion checkpoints, and Hailuo/Wan video engines with local download status and hardware requirement indicators.

Multi-Modal Generation Model Hub


🗺️ Studio Workflow & Signal Architecture

Milimo routes raw creative intent through an interconnected neural pipeline, coordinated by an autonomous five-agent creative squad and culminating in the unified 6-mode DAW workspace.

Milimo Music: From Prompt to Production Studio Workflow

📚 Comprehensive Architectural Deck: Download the complete 15-slide technical breakdown:


✨ Key Features

🎧 Generative Audio Engine & Pluggable Providers

  • MiniMax Music 3 Default Engine: Conditioned on structured multi-section captions ([Intro], [Verse], [Chorus], [Solo], [Outro]) and acoustic style descriptors. Runs native Apple Silicon MLX weight inference (mlx-community/MiniMax-Music3-bf16). Serves as the primary production engine, with HeartMuLa maintained as an isolated legacy fallback.
  • Strict Production Inference: Opt-in MILIMO_STRICT_INFERENCE=1 to guarantee authentic neural generation on local hardware, failing loudly instead of silently falling back to procedural synthesis.

    Platform note: Real neural generation runs natively on Apple Silicon (MLX). On Windows/Linux the studio (DAW, transcription, mastering, agents) operates fully — with generation utilizing clearly-labeled placeholder synthesis when MLX is absent.

🎚️ MuLaCover AI Cover & Remix Studio

  • Controllable Cover & Remix Engine: Synthesizes professional remixes and covers conditioned on reference audio or direct symbolic MIDI lead sheets (Melody, Chords, Drums) via HeartMuLa/MuLaCover (3B autoregressive cross-attention LM + HeartCodec-oss).
  • Dual-Engine Symbolic Transcription Hub:
    • Milimo Neural (SOTA): BS-Roformer stem separation + MuScriptor note-tracking + neural pitch & chord estimation.
    • Upstream Classic: Direct YourMT3 multi-instrument transcription + 5-fold ChordNet ensemble inference.
  • Unified Composite Bundle Downloader: Built-in sequential downloader acquiring all 4 upstream model components (MuLaCover 3B safetensors, Qwen3-Embedding-0.6B, YourMT3 Space + ChordNet checkpoints, and HeartCodec-oss) with resumption, integrity checks, and real-time UI progress bars.
  • Interactive First-Run Onboarding & Export: Contextual dependency check in CoverStudioModal, real-time progress HUD, and multi-track MIDI downloads (Melody, Chords, Drums, and Full Lead Sheet) with one-click Edit in PianoRoll navigation.
  • Deep DAW & Library Integration: Direct "MuLaCover Remix" action buttons on every track in Track Studio, Songs View (Table & Grid), and Composer Sidebar.

🤖 AI Co-Writer, Prompt Enhancer & Creative Squad

  • Autonomous AI Artist Crew: Complete virtual artist lifecycle managed by specialized agents:
    • World-Builder: Establishes immutable canon lore, narrative themes, and aesthetic guards.
    • Experiencer: Conceives album visions and track seeds derived from the artist's imagined journey.
    • Songwriter: Crafts structured, rhymed, and metered lyrics adhering to section tags.
    • Stylist: Translates concept moods into 3-heading structured captions ([Global Metadata], [Vocal Details], [Arrangement]).
    • Critic: Evaluates lyrical drafts and musical cohesion with gated revision thresholds.
  • Multi-Provider LLM Integration: Native support for OpenCode Zen (DeepSeek v4 Flash) as the default runtime baseline, alongside NVIDIA NIM, OpenAI, Google Gemini, OMLX, and Ollama.

🎛️ BS-Roformer Neural 6-Stem Source Separation

  • SOTA 6-Stem Separation: Neural separation of the master audio into isolated Vocals, Drums, Bass, Guitar, Piano, and Other stems via BS-Roformer / MelBand-Roformer (audio-separator).
  • Hardware Acceleration: Automatic native execution across CUDA, Apple Silicon MPS, and CPU.
  • Dual-Engine DAW Stems: Toggle between Neural Stems (BS-Roformer) and Dynamic Per-Instrument Parts (MuScriptor).

🩹 Track Extend, Repair Segment & Neural Inpainting

  • Downbeat-Synchronized Audio Infill: Non-destructive waveform inpainting and segment regeneration using beat-grid alignment (beat-this / librosa).
  • Equal-Power Crossfading: Glitch-free repair boundaries (is_repair, is_extension) with automatic downbeat snapping to maintain continuous harmonic and rhythmic timing.
  • Cascading Derivative Regeneration: Automatically triggers stem re-separation (BS-Roformer), neural transcription (MuScriptor), and acoustic forced alignment (MMS_FA) for patched sections.

🎤 Neural Acoustic Lyrics & Forced Alignment

  • TorchAudio MMS_FA Forced Alignment: Frame-level CTC acoustic alignment mapping tokenized words directly to isolated vocal stems with sub-100ms precision.
  • Multi-Interval Adaptive VAD: Dynamic 75th-percentile energy thresholding preserving instrumental solos and pauses between stanzas.
  • Deconflicted Section Cues: Section headers ([Verse], [Chorus], [Outro]) are isolated to preceding pauses and never steal active lyric highlights.
  • Live 60fps Playhead & Karaoke Export: Sub-frame accurate interactive word highlighting in the Global Player and Studio Workspace, with one-click export for .lrc and .srt subtitle files.

🎼 MuScriptor Neural Transcription & Engraving

  • Polyphonic Multi-Instrument Transcription: Neural extraction of distinct instrument lines (Piano, Bass, Drums, Vocal melody).
  • Multi-Track MIDI (.mid) Export: Fully compatible with Logic Pro, Ableton Live, FL Studio, and Pro Tools.
  • W3C MusicXML 3.1 Sheet Music (.musicxml): Automatic Grand Staff engraving with Treble (𝄞) and Bass (𝄢) clefs, key signatures, and measure deduplication.
  • Beat & Tempo Tracking: Downbeat grid extraction, measure divisions, and BPM detection via beat-this.

💻 6-Mode Web Audio DAW Workspace

  • Listen Mode: High-fidelity stereo playback with live waveform visualization and metadata inspection.
  • Arrangement Timeline: Multitrack stem lanes with real note-density overlays, Solo (S) / Mute (M) staging, and zoomable measure grid.
  • Piano Roll MIDI Editor: 144px Apple Studio Grand Piano Keyboard with ivory/ebony keys, vertical measure divisions, live polyphonic Web Audio synth auditioning, interactive note editing, and bidirectional score synchronization.
  • Notation Viewer: Dynamic SVG Grand Staff engraving with real diatonic pitch placement, curved flags, unified chord stems, and sheet music PDF downloads.
  • Multitrack Console Mixer: Channel faders, stereo panning, animated LED peak meters, and Matchering reference mastering (-14.0 LUFS broadcast target).
  • Lyrics & Karaoke Studio: Fullscreen live karaoke teleprompter with interactive line seeking and on-demand acoustic realignment.

🎙️ AI Vocal Studio & Singing Voice Conversion (SVC)

  • Dedicated 3-Zone Vocal Production Workstation: Unified Master Track Bar with isolated vocal stem detection, dual workspace (Voice Library vs. Vocal DSP Rack), and Tri-State A/B Audition Transport.
  • Live In-Browser Vocal Booth: Real-time microphone capture via Web Audio API with an animated 16-band VU peak meter, 3-second countdown timer, take review playback, and direct profile creation export.
  • Vocal DSP Processing Rack: Musical semitone pitch transposition (-12 to +12) with quick presets (+12 Octave Up M→F, -12 Octave Down F→M, +3 Minor 3rd, +7 Perfect 5th), phase-locked formant preservation, 0–100% dry/wet mix slider, and multi-algorithm F0 pitch tracking (rmvpe, crepe, harvest, pm).
  • Tri-State A/B Audition Player & DAW Integration: Instant, seamless switching between Converted Vocal, Original Vocal Stem, and Full Master Remix with waveform scrub bar, volume control, WAV export, and 1-click handoff to DAW Session Workspace.
  • RVC Neural Checkpoint Loader & Acoustic Formant EQ: Supports real .pth model weights and profile-specific acoustic formant/presence equalization chains (Aria ethereal presence, Marcus warm soul resonance).
  • Consent-Enforced Governance: Cryptographic audio consent gating to ensure ethical vocal profile creation.

🎬 Production AI Music Video Studio (Wan 2.1 14B & LivePortrait)

  • Wan 2.1 14B Flagship & LTX-Video Diffusion: True spatio-temporal video diffusion via diffusers (WanPipeline, WanImageToVideoPipeline, LTXPipeline), generating broadcast-quality clips directly from prompt concepts and character keyframes.
  • 14 Curated Visual Aesthetic Palettes: Categorized across 5 cinematic families (Film & Cinema, Animation & Anime, Digital Art & Surreal, Retro & Vintage, Modern & Experimental), including neon-cyberpunk, anime-cinematic, retro-vhs, film-noir-35mm, golden-hour-folk, kpop-holographic, wes-anderson-pastel, and custom directing prompt injection.
  • Collision-Free 2-Tier Master Bar & Playhead Sync: Resilient two-tier header preventing layout collisions even with the Composer Sidebar open, multi-aspect ratio rendering (16:9, 9:16, 1:1, 21:9), and interactive playhead click-to-seek synchronization directly from timeline scene blocks.
  • LivePortrait Neural Singing Avatar: Vocal lip-syncing driven strictly by isolated vocal stems (vocals.wav), animating facial landmark deformation, expressive eye blinks, and pitch-synced micro-motion without audio-bleed distortions.
  • Autonomous Musical Video Director: Tempo estimation (librosa / muscriptor) and bar-aligned scene segmentation snapping cuts to musical bars ((60/BPM) * 4), with automated vocal vs. B-roll classification, cinematic camera dynamics (dolly zoom, orbital steadycam, crane tilt), and volumetric lighting designs.
  • Pre-Rendered Keyframe Stills & Clip Retakes: On-demand scene keyframe pre-rendering (POST /videos/keyframes/{job_id}) with fullscreen lightbox zoom and in-place per-scene retakes (POST /videos/retake-clip/{job_id}/{clip_index}) before launching full video diffusion.
  • Hybrid Local & Cloud GPU Offloading: Native Apple Silicon MPS / unified memory execution, plus turnkey cloud GPU offloading via Fal.ai (FAL_KEY) when local diffusion is too slow. Cloud is fal only by decision — the Replicate tier is reported as unwired rather than pretended.
  • Burned Karaoke Subtitles & Master Remux: Real-time Advanced SubStation Alpha (.ass) karaoke scripts burned directly into the video stream via FFmpeg -filter_complex "[0:v]subtitles=..." with zero A/V drift master remuxing.
  • Character Consistency Across Scenes: Three switchable modes — off, character (one persisted character bible injected into every scene prompt) and chain (bible plus last-frame chaining that carries lighting, grade and framing across a cut), with a section/all scope. A persistent character library stores the reference plate alongside the description, and planning accepts the same character config as the render so the approved storyboard describes the performer that is actually rendered.

🎞️ Video Delivery, QC & Take Management

  • Non-Destructive Takes: Every render is kept as its own take with a clip workspace and plan snapshot. Select, compare, delete and re-export without ever overwriting the previous master; boot reconciliation fails renders that died with the process, and a stall sweeper fails any render that outlived a real one.
  • Six Delivery Presets: Standard MP4 (CRF 18, faststart, −14 LUFS), YouTube 1080p (8 Mbps), YouTube 2160p (40 Mbps), Vevo HD (20 Mbps + 320k audio, master loudness untouched), Spotify Canvas (silent 9:16) and Broadcast ProRes 422 HQ (−23 LUFS).
  • Genuinely Cancellable Exports: Transcodes run under Popen with a per-task cancellation event, so cancelling an export terminates FFmpeg and deletes the partial file instead of leaving a half-written take behind.
  • Aspect Variants from One Master: Derive 16:9, 9:16, 1:1 and 21:9 at 720p/1080p (plus 4K for 16:9) from a single master by cropping — no second diffusion pass.
  • Automated QC Gate: Black (≥0.10 s), freeze (≥0.05 s), silence (≥0.10 s at −50 dB), duration (±0.10 s), per-stream A/V drift (≤0.05 s) and delivered loudness (±1.5 LU) are all checked with thresholds deliberately below FFmpeg's 2-second defaults, which miss exactly the faults a stitched render produces. Advisories are reported; only faults that make the file unusable fail the render.
  • Per-Take Report & Portable Manifest: GET /videos/{job}/report returns the cut list (prompt, timing, camera, lighting), delivery config, caption sidecars and QC verdict, and writes <stem>_report.json beside the master. GET /jobs/{job}/manifest.json adds seeds, sampling parameters, verbatim prompts, per-stage provenance and SHA-256 hashes for every artifact — the record a paper or bug report can cite.
  • Lip-Sync Engine Ladder with Real Availability: GET /videos/lipsync-engines reports each tier, why it cannot run, and its licence — procedural jaw-warp (always available), LivePortrait (needs weights + an audio entry point), fal (needs FAL_KEY), and the external CLI tiers EchoMimicV3 Flash (Apache-2.0, ~12 GB), Wan 2.2 S2V-14B (Apache-2.0, ~80 GB, singing-trained) and InfiniteTalk (Apache-2.0, ~24 GB, streaming). External engines run in a child process, so a crash in a research repo cannot take the API down.
  • Capability Matrix & Licence Gate: GET /videos/capability-matrix reports each engine's effective resolution/duration/fps after clamping to the current device (MPS/CUDA/CPU), and scripts/check_licences.py audits both the model catalogue and installed dependencies, failing CI when a non-commercial model is the reachable default.

📦 Multi-Modal Model Hub & Hugging Face Search

  • 23-Model Multi-Modal Catalog: Comprehensive support across Audio (MiniMax Music 3 MLX/CUDA/GGUF as primary, HeartMuLa as legacy fallback), Image (Black Forest Labs FLUX.2 klein/dev, FLUX.1 schnell, SDXL Turbo), and Video (MiniMax Hailuo H3, Wan 2.1, CogVideoX 1.5, HunyuanVideo).
  • Live Hugging Face Hub Search: Integrated search (GET /models/search) with pipeline filter chips (text-to-audio, text-to-image, text-to-video) and direct repository downloader.
  • Custom Model Registry: Stores user-downloaded models in ~/.milimomusic/models/custom_models.json, dynamically registered into ProviderRegistry via HuggingFaceAudioProvider.
  • Strict Download Policy: Auto-downloads only the single smallest audio model on empty systems; all image and video models are strictly on-demand.

🎨 Cover Art Studio (Black Forest Labs FLUX.2 & SDXL Turbo)

  • Neural Image Diffusion: Integrated diffusers.AutoPipelineForText2Image execution on MPS/CUDA with fp16 acceleration.
  • Studio-Grade Raster PNG Synthesis: 1024x1024 cover art generation with multi-stop harmonic color gradients, textured noise, ambient vignettes, and vinyl groove rings.

🚀 Production Single-Process Serving & Multi-Stage Docker

  • Single-Process Web Serving: Production FastAPI server mounts the compiled React 19 SPA from frontend/dist with client-side history API fallback on port 8000.
  • Multi-Stage Docker Packaging: Production Dockerfile and docker-compose.yml with auto NVIDIA GPU / CPU detection and host gateway LLM networking (host.docker.internal).

🏗️ System Architecture

Layer Technologies & Frameworks Description
Frontend React 19, Vite, Tailwind CSS, Web Audio API Apple-inspired interface, 6-mode DAW, floating dock player, interactive notation
Backend FastAPI, SQLModel, SQLite, PyTorch, Librosa REST API, async task execution, SSE progress streaming, audio pipeline
Generative ML MLX (Apple Silicon), PyTorch (CUDA/MPS/CPU), Diffusers MiniMax Music 3 (Apple Silicon MLX default), Stable Audio Open 1.0 (DiT Cross-Platform), Meta MusicGen (Lightweight CPU & Melody), MuLaCover-3B, HeartMuLa-3B
Separation & Transcription BS-Roformer, MelBand-Roformer, MuScriptor, YourMT3, ChordNet, MusicXML 3.1 6-stem neural source separation, dual symbolic transcription, MIDI lead sheets
Audio Infill & Extension Librosa, Beat-This, Equal-Power Crossfade Downbeat-aligned waveform inpainting, segment repair, seamless track extension
Lyric Sync TorchAudio MMS_FA, Adaptive VAD, LRC/SRT Generator Acoustic forced alignment, progressive word timing
LLM & Co-Writer OpenCode Zen (DeepSeek v4 Flash), NVIDIA NIM, Gemini, OpenAI Structured caption rewriter, multi-agent lyricist crew, style tagging

🖥️ System Requirements

Milimo Music is a high-performance neural workstation designed to scale from local developer machines and workstations to enterprise GPU cloud instances. Depending on your operational requirements (real-time neural generation, 6-stem separation, video rendering, or pure DAW editing), review the hardware tiers below:

Hardware Specifications

Component Minimum (DAW & Basic AI) Recommended (Full Neural Production) Cloud / Studio Ultra
Operating System macOS 13.0+ (Ventura/Sonoma/Sequoia)
Ubuntu 22.04+ LTS / Debian 12
Windows 11 (WSL2 / Docker Desktop)
macOS 14.0+ (Sonoma/Sequoia)
Ubuntu 24.04 LTS (NVIDIA Driver 535+)
Linux Enterprise (Ubuntu / Rocky / RHEL)
with NVIDIA Container Toolkit
Processor (CPU) 4 Cores (Apple M1 or x86_64 @ 2.5 GHz+) 8+ Cores (Apple M2/M3/M4 Pro or Ryzen 7 / i7) 16+ Cores (AMD EPYC / Intel Xeon)
System Memory (RAM) 16 GB Unified / RAM (Required for BS-Roformer) 32 GB Unified / RAM (MiniMax Music 3 + DAW) 64 GB – 128 GB+ Unified / RAM
Neural Acceleration Apple Silicon: M1/M2/M3 (Unified Memory)
NVIDIA GPU: 8 GB VRAM (RTX 3060/4060, T4)
Apple Silicon: M2/M3/M4 Pro/Max (32GB+ Unified)
NVIDIA GPU: 16 GB+ VRAM (RTX 4080/4090, A4000)
NVIDIA GPU: 24 GB – 80 GB VRAM
(RTX 3090/4090, A5000, A100, H100, L4)
Storage (NVMe SSD) 20 GB free space 60 GB free NVMe SSD (Model weights cache) 200 GB+ NVMe SSD (Full multi-modal library)
System Tooling Docker 24.0+ & Docker Compose v2
(or Python 3.10–3.12, Node.js 18+, FFmpeg 6.0+)
Docker 26.0+, NVIDIA Container Toolkit,
FFmpeg 6.1+ with libsndfile1 & FluidSynth
Docker 26.0+, Kubernetes / Compose v2,
High-speed local NVMe scratch volume

Neural Engine & Feature Acceleration Matrix

Studio Engine / Feature Apple Silicon (MLX / MPS) NVIDIA GPU (CUDA) CPU / Fallback Mode
MiniMax Music 3 (MLX / GGUF / CUDA) ⚡ Native MLX (Fastest) 🔄 Comfy-Org INT8 / PyTorch 🔄 GGUF Q4_K_M (Cross-Platform)
Stable Audio Open 1.0 (DiT 44.1kHz) ⚡ Native MPS Accelerated ⚡ Native CUDA Accelerated ⏱️ PyTorch CPU Execution
Meta MusicGen (Small & Melody) ⚡ Native MPS Accelerated ⚡ Native CUDA Accelerated ⚡ Optimized Fast CPU Execution
BS-Roformer 6-Stem Source Separation ⚡ Native MPS Accelerated ⚡ Native CUDA Accelerated ⏱️ Functional (CPU processing)
MuScriptor Neural MIDI & Sheet Music ⚡ Accelerated ⚡ Accelerated ⚡ Real-time CPU execution
TorchAudio MMS_FA Forced Lyric Sync ⚡ Accelerated ⚡ Accelerated ⚡ Real-time CPU execution
Cover Art Studio (FLUX.2 / SDXL Turbo) ⚡ Native MPS fp16 ⚡ Native CUDA fp16 ⚠️ Procedural Vector / Canvas Art
AI Music Video Studio & Lip-Sync ⚡ Native MPS / Diffusers + LivePortrait ⚡ Native CUDA + NVENC / Diffusers ⏱️ Smooth Viseme Mesh Fallback
6-Mode DAW, Timeline & Matchering DSP ⚡ Real-time (Web Audio) ⚡ Real-time (Web Audio) ⚡ Real-time (Web Audio)

⚠️ Architecture Notice: MiniMax Music 3 Deployment & Cross-Platform Alternatives

  • Apple Silicon Optimization: MiniMax Music 3 was released primarily with native Apple MLX weights (mlx-community/MiniMax-Music3-bf16, 4bit, mxfp4), achieving sub-minute full stereo generation on Mac workstations with 16GB–36GB unified memory without requiring a discrete server GPU.
  • Linux & Windows Execution: Running full MiniMax Music 3 in PyTorch requires substantial VRAM (24GB+ or multi-GPU). On non-Apple hardware, Milimo Music provides official support for quantized INT8 (Comfy-Org/MiniMax-Music-3) and GGUF (molbal/Minimax-Music3-GGUF).
  • Open-Source Foundation Alternatives: To ensure true platform neutrality, users can download and switch between native open-source audio engines via the in-app Model Manager:
    • 🎛️ Stable Audio Open 1.0 (stabilityai/stable-audio-open-1.0): Continuous Latent Diffusion Transformer (DiT) producing native 44.1 kHz stereo audio on CUDA, MPS, and CPU.
    • 🎼 Meta MusicGen (facebook/musicgen-small / melody): Lightweight autoregressive transformer with CPU friendliness and melody-guided conditioning.

🧹 Zero-Leak Cross-Modal Memory Manager (GlobalHardwareCoordinator): Milimo Music actively prevents Out-Of-Memory (OOM) crashes across Audio, Image (FLUX.2), and Video (Wan 2.1) through immediate eager eviction (EAGER_UNLOAD) and configurable TTL warm-caching (WARM_CACHE_WITH_TTL). Physical accelerator caches (mx.metal.clear_cache(), torch.cuda.empty_cache(), malloc_trim) are flushed automatically when switching generative modalities.


🚀 Quickstart

Verified launch path: docs/STARTUP.md is the tested, step-by-step guide (prerequisites, install, interpreter selection, verification, stop, troubleshooting). The short version is below.

🐳 Option 1: Turnkey Docker Deployment (Recommended for Production & Cloud)

Milimo Music includes a production multi-stage Dockerfile and unified docker-compose.yml that packages the Python 3.11 backend, DSP audio binaries (ffmpeg, libsndfile1), and the compiled React 19 SPA into a single unified container running on port 8000.

A. 1-Click Automated Startup (NVIDIA GPU or CPU Auto-Detection)

git clone --recurse-submodules https://github.com/mainza-ai/milimomusic.git
cd milimomusic

chmod +x docker-start.sh
./docker-start.sh

The launcher script automatically detects NVIDIA Container Toolkit support and selects the GPU profile; otherwise, it seamlessly falls back to the CPU profile, launches the container in the background, and waits for the backend health check to pass.

B. Manual Docker Compose

For NVIDIA GPU Acceleration (Linux / WSL2):

docker compose up -d --build

For CPU / Apple Silicon Docker Desktop / Standard Runners:

docker compose -f docker-compose.cpu.yml up -d --build

Access & Container Operations

  • Studio DAW & Web App: Open http://localhost:8000 in your browser (serves the complete DAW UI and REST API).
  • Interactive OpenAPI Docs: http://localhost:8000/docs.
  • Health Check: curl -f http://localhost:8000/health
  • View Live Container Logs: docker compose logs -f (or docker compose -f docker-compose.cpu.yml logs -f)
  • Stop Application: docker compose down

Connecting Host Machine LLMs (Ollama / LM Studio)

The container includes host.docker.internal:host-gateway routing. When configuring LLM providers in the Milimo Music Settings modal:

  • Ollama: Use base URL http://host.docker.internal:11434
  • LM Studio: Use base URL http://host.docker.internal:1234/v1
  • OMLX Server: Use base URL http://host.docker.internal:8787/v1

Persistent Volume Mapping

All generated audio, stems, database records, and downloaded model weights are preserved across container restarts:

  • milimo-data: SQLite database (database.db), voice profiles, and custom models registry.
  • milimo-audio: Rendered master audio, separated stems, converted vocals, and cover images.
  • milimo-hf-cache: Hugging Face model weight cache (~/.cache/huggingface).

💻 Option 2: Local Native Setup (Recommended for Apple Silicon M1–M4 Native MLX)

Prerequisites

  • Python 3.10–3.12 (3.12 verified); any interpreter you control works — Conda optional
  • Node.js ≥ 20.19 & npm (Vite 7 requirement)
  • FFmpeg 6.0+ with libsndfile and fluidsynth
  • Hardware: macOS with Apple Silicon (M1/M2/M3/M4) or Linux/Windows with CUDA GPU

1. Clone Repository & Setup Environment

git clone --recurse-submodules https://github.com/mainza-ai/milimomusic.git
cd milimomusic

# Only if you cloned without --recurse-submodules:
git submodule update --init --recursive

# Optional but recommended on macOS:
conda create -n milimomusic python=3.12 -y
conda activate milimomusic

The muscriptor submodule is required — the backend imports it at startup. An empty submodule fails with ModuleNotFoundError: No module named 'muscriptor'.

2. One-Command Installation (Backend, Neural Modules & Frontend)

chmod +x milimo
./milimo install

Installs backend/requirements.txt, the editable mulacover package, frontend npm dependencies, and builds frontend/dist (the SPA the backend serves).

(Manual Step-by-Step Alternative):

python -m pip install --upgrade pip
python -m pip install -r backend/requirements.txt
python -m pip install -e mulacover

cd frontend && npm ci && npm run build && cd ..

3. Launch

Production Unified Single-Process Mode (Port 8000):

./milimo start

The launcher picks an interpreter that can actually import the app (skipping stale environments with a warning), starts uvicorn detached, and waits for /health before reporting success. It fails loudly with the log tail if the backend dies.

For Apple Silicon native MLX generation, install the MLX stack first:

python -m pip install mlx "mlx-audio @ git+https://github.com/Blaizzy/mlx-audio.git@784b29e2691a93ca7483147d86f61859dfaa6296"

Developer Mode (with Vite HMR on Port 5173):

./milimo start --dev

Choosing an interpreter explicitly (validated, never silently replaced):

MILIMO_PYTHON=/path/to/python ./milimo start

4. Verify It Is Actually Up

curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1:8000/health   # 200
curl -s http://127.0.0.1:8000/health | python -m json.tool | head -5    # "status": "ok"
curl -s -o /dev/null -w "%{http_code} %{content_type}\n" http://127.0.0.1:8000/  # 200 text/html

Then open http://localhost:8000 for the studio and http://localhost:8000/docs for the API. ./milimo status reports the PID, health and active engine; ./milimo stop shuts down cleanly.

If startup or generation misbehaves, run the doctor before guessing:

./milimo doctor

and prove the whole pipeline with a real track (no mocks):

python scripts/verify_pipeline.py --duration-ms 8000

Troubleshooting (stale sqlmodel, empty submodules, busy port, blank SPA, Metal/MPS): docs/STARTUP.md.

🔧 Operations

docs/OPERATIONS.md is the full operator guide — measured performance knobs, accelerator memory caps, telemetry endpoints (/health, /system/memory, /system/memory/history), benchmark harnesses and the licence gate. Video delivery has its own guide: docs/VIDEO_DELIVERY.md.

Telemetry & Memory

  • GET /health — liveness plus DB, disk, queue depth, process hygiene (fds, threads, child/zombie count) and footprint.
  • GET /system/memory — full snapshot (process, system, MLX, torch, limits); GET /system/memory/history — sampled trend with a per-minute slope and leak verdict; POST /system/memory/release — drop cached accelerator memory through the single release path.
  • Memory is reported as macOS phys_footprint (via proc_pid_rusage), not RSS — RSS under-reports by two orders of magnitude once MLX holds a large allocation.
  • A download larger than the machine's recommended working set is refused with 507 and the real numbers, because exceeding it swaps rather than raising.

Performance & Memory Benchmarks

python3 scripts/bench_api.py        # request latency / throughput on the running app
python3 scripts/bench_sqlite.py     # SQLite pragma comparison (WAL vs cache_size/mmap_size)

Both are measured, not assumed: compression is off by default (gzip loses on loopback), cache_size/mmap_size are unset (0.93×/0.97× vs WAL+NORMAL), and the video encoder is benchmarked at runtime rather than chosen by name.

Unified CLI (./milimo)

Milimo provides a root control utility for managing the entire production suite:

  • ./milimo start — Launch production services in the background.
  • ./milimo start --dev — Launch with hot-reloading frontend development server.
  • ./milimo stop / ./milimo restart — Gracefully terminate or reboot processes.
  • ./milimo status — Probe service PIDs, health checks, and active AI models.
  • ./milimo build — Compile frontend production bundle (frontend/dist).
  • ./milimo models — Inspect loaded audio, image, and video neural models.
  • ./milimo docker up|down|logs — Manage containerized instances.

Single-instance lock

The backend enforces an instance lock to prevent GPU and database contention:

  • Stale locks (dead PID) are detected and reclaimed after a 30s grace period.
  • Sandbox/CI override: MILIMO_ALLOW_MULTI_INSTANCE=1.
  • Lock file location: MILIMO_LOCK_FILE (default .milimo.lock).

Environment Reference

Variable Default Purpose
MILIMO_AUTH_TOKEN unset (open localhost) Optional bearer-token auth for the API (enforces constant-time hmac.compare_digest)
MILIMO_CORS_ORIGINS localhost allowlist Explicit CORS origin list
MILIMO_AGENT_TIMEOUT 60 Per-attempt ceiling (s) for agent LLM calls
MILIMO_RUN_RETENTION_DAYS 30 Agent-ledger retention sweep at boot (0 disables)
MILIMO_MAX_DURATION_S 240 Hard cap on generated track duration (s)
MILIMO_STRICT_INFERENCE unset (0) Set to 1 to fail loudly instead of degrading to synthesised audio when weights/snapshots are missing
FAL_KEY unset Optional Fal.ai API key for cloud Wan 2.1 video & LivePortrait queue offloading
MILIMO_MEDIA_RETENTION_DAYS 0 (keep forever) Opt-in pruning of generated media older than N days
MILIMO_MIN_FREE_GB 2.0 Free-disk floor below which new generation is refused with a reason
MILIMO_LOCK_FILE .milimo.lock Instance-lock file path
MILIMO_ALLOW_MULTI_INSTANCE unset Set to 1 to bypass the boot lock
MILIMO_DB_NAME jobs.db SQLite database file name (or set MILIMO_DATABASE_URL)

Performance & video encoding

Variable Default Purpose
MILIMO_COMPRESS unset (off) Enables gzip. Measured as a net loss on loopback (break-even ~400–860 Mbit/s); set to 1 only for a LAN or remote client
MILIMO_FFMPEG_THREADS 4 Thread cap for Milimo's own encodes (0 disables); uncapped FFmpeg starves the API
MILIMO_MODEL_TREE_TTL_SECONDS 15 Model-tree memo TTL (uncached scan 131 ms → 4 ms)
MILIMO_NORMALISE_CONCURRENCY 2 Parallel clip normalisation
MILIMO_INTERP_MODE mci Frame interpolation quality: mci (motion-compensated) or blend (fast)
MILIMO_RIFE_CMD unset External RIFE binary for neural frame interpolation
MILIMO_VIDEO_ENCODER unset (measured) Pin x264, videotoolbox or nvenc; unset benchmarks at runtime (x264 measured 0.21 s vs VideoToolbox 0.31 s per 1 s of 1080p)
MILIMO_DEVICE unset (auto) Pin cpu, cuda or mps. Auto probes MPS with a real Metal kernel; macOS uses MPS, never MLX-on-CPU

Memory & telemetry

Variable Default Purpose
MILIMO_MLX_CACHE_LIMIT_MB min(12 GiB, 10 % RAM) MLX buffer cache ceiling (MLX's own default is unbounded); 0 disables the cache
MILIMO_MPS_MEMORY_FRACTION 0.6 MPS allocator fraction (PyTorch's high watermark is 1.7× the recommendation, i.e. more than physical RAM)
MILIMO_WAN_PIPELINE_CACHE 1 Resident Wan pipelines; 0 restores the old unlimited behaviour
MILIMO_AGENT_HISTORY_MAX_CHARS 24000 Character budget for agent conversation history
MILIMO_AGENT_HISTORY_MAX_MESSAGES 24 Turn budget for the same history
MILIMO_MEMORY_GC unset (off) Opt-in gc.collect() on unload; measured cost was 8 tests at 16 s, suite at 265 s
MILIMO_MEMORY_LEAK_MB_PER_MIN 25 Slope threshold for GET /system/memory/history to flag a leak
MILIMO_RENDER_STALL_SECONDS 3600 Age at which a rendering take is failed by the sweeper

Video engines, characters & licences

Variable Default Purpose
MILIMO_ECHOMIMIC_DIR unset EchoMimicV3 checkout (Apache-2.0, ~12 GB VRAM) enabling the echomimic_flash lip-sync tier
MILIMO_WAN_S2V_DIR unset Wan 2.2 S2V-14B checkout (Apache-2.0, ~80 GB VRAM, singing-trained)
MILIMO_INFINITETALK_DIR unset InfiniteTalk checkout (Apache-2.0, ~24 GB VRAM, streaming)
MILIMO_INFINITETALK_TEMPLATE unset Request JSON template for InfiniteTalk (upstream ships an example; do not edit its repo)
MILIMO_LIVEPORTRAIT_AUDIO_SCRIPT unset Audio-driven entry point for LivePortrait (upstream is video-driven)
MILIMO_VERIFIER_EMBEDDING auto Candidate/plate similarity: auto, clip or off
MILIMO_NONCOMMERCIAL_OK unset Acknowledge a non-commercial default model so scripts/check_licences.py exits 0

Backing Up the Database

SQLite runs in WAL mode. Never copy active database files directly while the server is live. Take a consistent atomic snapshot with:

sqlite3 jobs.db "VACUUM INTO 'backup.db';"

⌨️ Pro Media Transport Hotkeys

Hotkey Action
Space / K Toggle Play / Pause
Home / 0 Return to Start / Zero (0:00)
J / ArrowLeft Rewind 10 Seconds
L / ArrowRight Advance 10 Seconds
[ / ] Previous Track / Next Track
M Mute / Unmute Audio
ArrowUp / ArrowDown Volume +/- 5%

📚 Documentation & Technical Wiki

Milimo Music maintains a comprehensive, LLM-curated Technical Encyclopedia and Architecture Wiki located in the wiki/ directory, providing detailed specifications across all subsystems:

Document Description
📖 Wiki Catalog (wiki/index.md) Central table of contents and content-oriented navigation index
🌐 Overview & Scope (wiki/overview.md) High-level synthesis, product philosophy, and technical boundaries
🏗️ System Architecture (wiki/architecture.md) Data flow pipelines, provider abstraction layer, and system topology
🎬 AI Music Video Studio (wiki/entities/video-studio.md) Wan 2.1 14B & LTX-Video diffusion, LivePortrait neural singing avatar, autonomous director, pre-rendered keyframes, ASS karaoke
🎚️ MuLaCover 3B Cover & Remix (wiki/entities/mulacover.md) Controllable symbolic cross-attention cover engine, dual transcription, and lead sheet extraction
🎛️ Multitrack Timeline Editor (wiki/entities/multitrack-editor.md) Non-destructive audio/video multi-track timeline, hardware FFmpeg export, and AI round-trip takes
⚡ Global Hardware Coordinator (wiki/entities/hardware-coordinator.md) Unified device lock, empirical memory auto-tuning tiers (1–5), and real-time telemetry
⏱️ Durable Task Queue (wiki/entities/durable-task-queue.md) SQLite-backed persistent queue, input asset vaulting, and crash recovery checkpoints
🎼 MiniMax Music 3 Engine (wiki/entities/minimax-music3.md) Sampling parameters, structured captions, and MLX/DiT hooks
🎸 YuE2 48kHz Stereo Provider (wiki/entities/yue2-music.md) Full 48kHz stereo generation, ABC notation guidance, and personal style adapter fine-tuning
📦 Model Manager (wiki/entities/model-manager.md) Multi-modal tree, Hugging Face Hub search, and download policies
🎙️ Voice Studio & SVC (wiki/entities/voice-service.md) 3-Zone Vocal Studio, live in-browser Vocal Booth, DSP transposition rack, and tri-state A/B audition
🏛️ ADR: Training Studio Decommission (wiki/entities/training-studio.md) Technical investigation and architectural record retiring fine-tuning
🤖 AI Co-Writer Engine (wiki/entities/ai-cowriter.md) Multi-agent lyric coordination graph (Lyricist, StructureGuard)
🐳 Docker Deployment (wiki/entities/docker-deployment.md) Turnkey multi-stage container build, GPU/CPU compose profiles, and volume persistence
📋 Operations & Log (wiki/log.md) Chronological append-only record of every architectural evolution

Operator Guides (docs/)

Document Description
🚀 Start Milimo Music (docs/STARTUP.md) Verified launch path: prerequisites, install, interpreter selection, health/SPA verification, stop, Docker, troubleshooting
⚙️ Operations: Performance, Memory & Telemetry (docs/OPERATIONS.md) Measured tuning knobs, accelerator caps, memory truth (phys_footprint), leak verdict, benchmark harnesses and the licence gate
🎞️ Video Delivery, QC & Consistency (docs/VIDEO_DELIVERY.md) Takes, six delivery presets, aspect variants, QC thresholds, captions, manifest, consistency modes and the lip-sync engine ladder
📚 Heartlib Bible (docs/HEARTLIB_BIBLE.md) Deep reference for the legacy HeartMuLa/HeartCodec stack
🎓 Training Studio Guide (docs/TRAINING_STUDIO.md) Superseded — historical record of the decommissioned fine-tuning studio
🩹 Inpainting Debug Log (docs/INPAINTING_DEBUG.md) Impl-guided repair investigation notes

Additional Media & Specifications


📄 License

The Milimo Music platform source code is released under the Apache License 2.0. Created and maintained by Mainza Kangombe.

Notice on Upstream Model Weights: Pre-trained model weights utilized by the platform operate under their respective upstream licenses:

See LICENSES.md for the complete licensing matrix across all core components, third-party DSP engines, and AI models.

Ähnliche Projekte entdecken

Wird geladen…