Extensions/ComfyUI-MiniMax-Music-Production-Toolkit
ComfyUI Extension

ComfyUI-MiniMax-Music-Production-Toolkit

Complete Production Environment for professional MiniMax Music 3 audio generation, including Prompt Generation, Metadata generation including Cover Art, Sound Enhancement to improve Minimax weaknesses, mastering, and saving in various file formats

By jplenio·Created about 17 hours ago·Updated about 15 hours ago· 0
jplenio/ComfyUI-MiniMax-Music-Production-Toolkit
Nodes21
On cloudLocal install
CategoryMiniMax Music Production Toolkit/audio restoration, MiniMax Music Production Toolkit/mastering
Stars0
Updatedabout 15 hours ago

Nodes (21)

Audio Declip / Overload Repair

Un-chopping clipped peaks before FlashSR makes them worse

MiniMax Music Production Toolkit/audio restoration
Audio Release Prep – Static LUFS / True Peak / SRC

LUFS loudness without the compressor — the mastering stage that won't pump

MiniMax Music Production Toolkit/mastering
FlashSR Hybrid Crossover – Preserve Original / Blend Air

Keep your original audio, steal only the air from FlashSR

MiniMax Music Production Toolkit/audio restoration
FlashSR Lowpass Lab

The Butterworth low-pass lab that keeps FlashSR honest

MiniMax Music Production Toolkit/audio restoration
FlashSR Processing Settings

One settings node to drive both FlashSR filters (and not fight itself)

MiniMax Music Production Toolkit/config
HF Cymbal / Shimmer Repair

Fixing the watery cymbals FlashSR gives you — without killing the attack

MiniMax Music Production Toolkit/audio restoration
KSampler + Config Output

A boring KSampler clone that exists so your metadata stops lying

MiniMax Music Production Toolkit/utilities
LLM Session ID / Cache Buster

The cache-buster that stops your LLM from giving you the same song twice

MiniMax Music Production Toolkit/utilities
LLM Prompt Library / Template

A file-backed prompt library that doesn't phone home

MiniMax Music Production Toolkit/prompts
MiniMax Metadata Loader

Replaying a saved song's exact settings from its JSON sidecar

MiniMax Music Production Toolkit/metadata
MiniMax Music 3 Generation Settings

One seed in, every reproducible MiniMax parameter out

MiniMax Music Production Toolkit/config
MiniMax Output Paths

Path prefixes so your FLAC, MP3, archive and cover all land in the same date folder

MiniMax Music Production Toolkit/batch
Parse Structured Music LLM Output

Turning an LLM's rambling reply into four clean song fields

MiniMax Music Production Toolkit/prompts
MiniMax Prompt Batch Loader

Batch-loading whole folders of song prompts without the LLM

MiniMax Music Production Toolkit/batch
Structured Song Prompt Source (Folder / Manual)

The folder/manual prompt source for when you skip the LLM entirely

MiniMax Music Production Toolkit/batch
MiniMax Song Metadata

The sidecar writer that makes your whole pipeline reproducible

MiniMax Music Production Toolkit/metadata
MiniMax Square Image Size

1

MiniMax Music Production Toolkit/artwork
MiniMax Standard Audio Tags

The boring ID3/FLAC tags your release actually needs

MiniMax Music Production Toolkit/metadata
Save Audio Absolute Path

\Music\Masters without playing filename roulette

MiniMax Music Production Toolkit/save
Save Audio Smart Prefix

The saver that writes [Album] - [Title].flac, embeds cover art, and drops a JSON sidecar

MiniMax Music Production Toolkit/save
Save Image Smart Prefix

Smart Prefix JPEG Saving

MiniMax Music Production Toolkit/artwork
Readme

MiniMax Music Production Toolkit for ComfyUI

Production-focused ComfyUI custom nodes and an example workflow for MiniMax Music 3. The toolkit covers prompt orchestration, reproducible generation settings, audio repair, FlashSR-assisted bandwidth extension, release preparation, cover artwork and metadata.

Author: Johannes Plenio

Independent community project. No third-party model weights are included.

Highlights

  • LLM Prompt Library / Template — use an editable prompt directly, bundled prompt files, or your own external prompt directory. User prompts and system prompts are independent libraries with dynamically refreshed file dropdowns.
  • Structured LLM parsing — robustly extracts [Caption], [Lyrics], [Title], [Image_Prompt] from an external LLM response.
  • Bundled production system prompt — designed around MiniMax Music 3 structure, longer instrumental section maps, imaginative lyrics and artifact-resistant sound choices.
  • 38 bundled user prompts — EDM, house, electronic, ambient, jazz, folk, classical, funk, pop and comedy examples.
  • Reproducible generation metadata — prompts, seeds, MiniMax settings, filters, restoration stages and release preparation can be written to JSON sidecars.
  • Audio Declip / Overload Repair — conservative reconstruction of short hard-clipped flat tops before further processing.
  • FlashSR workflow tools — pre/post filtering plus hybrid crossover that can preserve original transients while blending only controlled reconstructed high-frequency content.
  • HF Cymbal / Shimmer Repair — reduces smeared high-frequency sustain while protecting attacks.
  • Static LUFS / True Peak Release Prep — HQ sample-rate conversion and constant full-program gain. No automatic gain riding, compressor or dynamic loudnorm fallback.
  • Release file handling — FLAC/MP3/WAV, standard tags, JSON sidecars, [Album] - [Title] filenames and configurable embedded-cover size.
  • Artwork helpers — square image sizing and smart JPEG saving for a FLUX.2 cover branch.
  • Complete UI help — every toolkit input has a tooltip and every registered node has an embedded Markdown help page.

Example production chain

External LLM
    ↓
Caption / Lyrics / Title / Image Prompt
    ↓
MiniMax Music 3 (source audio)
    ↓
Declip repair
    ├──────────────→ clean-resampled original ─┐
    ↓                                          │
PRE low-pass → FlashSR ────────────────────────┤
                                               ↓
                                  Hybrid crossover
                                               ↓
                                  HF shimmer repair
                                               ↓
                                      POST low-pass
                                               ↓
                              Static LUFS / TP + HQ SRC
                                               ↓
                                 Release FLAC + MP3

The untouched MiniMax source can also be archived separately.

Installation

See INSTALLATION.md. The toolkit itself is one custom-node package, but the included full example workflow additionally uses ComfyUI core MiniMax Music 3 / FLUX.2 nodes plus optional third-party FlashSR and local-LLM nodes.

Quick manual install:

cd ComfyUI/custom_nodes
git clone https://github.com/jplenio/ComfyUI-MiniMax-Music-Production-Toolkit.git
cd ComfyUI-MiniMax-Music-Production-Toolkit
python -m pip install -r requirements.txt

Use the Python interpreter belonging to your ComfyUI installation. Then restart ComfyUI and hard-refresh the browser once.

Prompt library

The repository ships with:

prompts/
├── system/
│   └── minimax-music3-production.txt
└── user/
    ├── ambient/
    ├── classical/
    ├── comedy/
    ├── edm/
    ├── electronic/
    ├── folk/
    ├── funk/
    ├── house/
    ├── jazz/
    └── pop/

In LLM Prompt Library / Template choose independently for user and system prompts:

  • manual
  • bundled_library
  • external_directory

For an external library, enter the directory path on the machine running ComfyUI. The file dropdown is populated from .txt, .md and .prompt files below that directory. Use Refresh prompt lists after adding/removing files. File contents are fingerprinted, so editing a selected file invalidates ComfyUI's cached template output without requiring a rename.

See PROMPT_LIBRARY.md.

Example workflow

example_workflows/MiniMax_Music3_Production_Toolkit.json is sanitized and contains generic release metadata. ComfyUI can expose JSON files in example_workflows/ through its Workflow Template browser.

The workflow is an example, not a requirement to use every toolkit node. You can use the prompt, metadata, repair, mastering and saver nodes independently.

Documentation

Logging

The package logs through Python logging under the namespace minimax_music_toolkit. Default level is INFO.

For detailed diagnostics:

MINIMAX_MUSIC_TOOLKIT_LOG_LEVEL=DEBUG

Set the environment variable before starting ComfyUI. Prompt contents are not dumped at normal log levels.

Limitations

  • De-clipping reconstructs plausible curvature; information destroyed by hard clipping cannot be recovered exactly.
  • FlashSR/bandwidth extension can invent high-frequency content. The hybrid and HF-repair nodes are intended to reduce, not eliminate, model artifacts.
  • LUFS normalization does not make a mix professionally mastered by itself. The supplied release-prep stage intentionally preserves dynamics rather than forcing every track to a target through compression.
  • The example LLM stage depends on the quality and instruction-following ability of the GGUF model you choose.

License

MIT. See LICENSE and NOTICE.md.