Nodes/ComfyUI_MieNodes/Mie Loop Finalize Audio ๐Ÿ‘
ComfyUI Node

Mie Loop Finalize Audio ๐Ÿ‘

Pull the collected audio out of the loop

By MieMieeeeeยทCreated 2 years agoยทUpdated 28 days agoยท 225
Mie Loop Finalize Audio ๐Ÿ‘
  • loop_ctx
  • audio
โ—„doneโ€”โ–บ

The delivery end of an audio loop. Once MieLoopCollectAudio has gathered a clip on each pass, MieLoopFinalizeAudio reads the accumulated set out of the loop context and emits it as AUDIO - ready to preview or save.

Part of ComfyUI-MieNodes (ComfyUI_MieNodes), MieMieeeee's utility pack, under the ๐Ÿ‘ Loop submenu.

How it works

Finalize is the counterpart to Collect. Audio clips build up inside the loop_ctx as the loop runs; Finalize waits until the loop is genuinely over - signalled by MieLoopEnd's done output - and only then hands over the collected audio. The done gate is what keeps it from firing early with an incomplete set.

The inputs and outputs that matter

  • loop_ctx (MIE_LOOP_CTX) - the loop context carrying the collected clips.
  • done (BOOLEAN) - the completion signal from MieLoopEnd. This is the trigger; without it, nothing tells Finalize the loop has ended.
  • Output audio (AUDIO) - the collected audio, ready to send to a preview or save node.

It's deliberately lean - one meaningful input to wire (done), one output. The work is all in the collect step; this just releases the result.

Installing it

ComfyUI Manager โ†’ search ComfyUI-MieNodes โ†’ install โ†’ restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/MieMieeeee/ComfyUI-MieNodes

then restart. No model downloads or heavy dependencies. Under ๐Ÿ‘ MieNodes โ†’ ๐Ÿ‘ Loop.

Common issues

No output. Almost always the done input isn't connected. Finalize fires when MieLoopEnd's done reaches it and not before. Also check the loop_ctx chain actually runs from MieLoopCollectAudio through to here - a broken thread means an empty accumulator.

The clips don't line up how I expected. Finalize hands over what was collected, in collection order. If passes produced clips at different sample rates or channel layouts, sort that out at collection time; this node doesn't re-encode or normalize.

I want them as separate files, not one output. Finalize emits the collected AUDIO; if you need individual files on disk, save inside the loop each pass (or use the collect step's offload option) rather than expecting this node to split them out.

Category๐Ÿ‘ MieNodes/๐Ÿ‘ Loop

Inputs (2)

NameTypeDefaultDescription
loop_ctxMIE_LOOP_CTXโ€”
doneBOOLEANโ€”

Outputs (1)

NameTypeDescription
audioAUDIOโ€”