ACE Step v1 M2M Editing

The ACE Step v1 M2M Editing workflow in ComfyUI is designed to transform existing songs by altering their style and lyrics. This process is achieved using the ACE-Step model, which excels in audio editing tasks. The workflow incorporates several key nodes, such as TextEncodeAceStepAudio for encoding the desired changes in lyrics and style, and VAEDecodeAudio for decoding the modified audio back into a playable format. By leveraging these nodes, users can seamlessly apply complex edits to audio files, making it a powerful tool for music producers and audio engineers looking to experiment with new sounds or adapt existing tracks to different genres.

Technically, the workflow begins with loading the audio file using the LoadAudio node, followed by encoding the audio with VAEEncodeAudio. The encoded audio is then processed through various nodes, such as LatentApplyOperationCFG and LatentOperationTonemapReinhard, to adjust and refine the audio's characteristics. The ModelSamplingSD3 node is employed to sample the audio, while the KSampler node ensures high-quality output. Finally, the edited audio is saved in MP3 format using the SaveAudioMP3 node. This comprehensive approach allows for precise control over the audio editing process, making it an invaluable tool for creative professionals.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

audio_ace_step_1_m2m_editing.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "ACE Step v1 M2M Editing" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("audio_ace_step_1_m2m_editing_api.json");

const job = await client.run(wf);
await job.getOutputs("59")[0].toFile("output.png"); // SaveAudioMP3

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates