ComfyTV/AudioFXgenerated

Audio Beats & Notes(AudioMIRStage)

Audio Beats & Notes (class AudioMIRStage) is an audio analysis node in the ComfyTV/AudioFX category.

Audio MIR Stage

audio
video
keyframes
labels
ComfyTV

Description

Audio Beats & Notes (class AudioMIRStage) is an audio analysis node in the ComfyTV/AudioFX category. It performs music information retrieval (MIR) on an audio source and returns the results as text rather than as audio or MIDI data. The node is named for the two kinds of musical events it reports: the detected beat grid and the detected note events.

The node accepts either a dedicated audio stream or a video that carries an audio track. This makes it usable in two common situations: analyzing a ready-made COMFYTV_AUDIO stream, or pulling the soundtrack directly from a COMFYTV_VIDEO without demuxing it first. Both inputs are optional, so at least one source should be connected for the analysis to have something to work on.

Two COMFYTV_TEXT outputs are produced, in the order implied by the node name: beat information first, note information second. Because the results are plain text, they can be displayed, logged, or routed into downstream text and prompt nodes, and they can be used to drive timing decisions elsewhere in a workflow.

Inputs

InputTypeRequiredDescription
audioCOMFYTV_AUDIONoA standalone audio stream to analyze. Use this when your source is already audio, for example the output of an audio loader or an audio processing node.
videoCOMFYTV_VIDEONoA video whose audio track is analyzed. Use this when the source material arrives as video and you do not want to extract its audio separately.

Both inputs are marked optional. In practice you should connect at least one of them; connect audio when a clean audio stream is available, or video when the audio only exists as part of a video.

Outputs

OutputTypeDescription
BeatsCOMFYTV_TEXTText representation of the detected beat information.
NotesCOMFYTV_TEXTText representation of the detected note information.

The two outputs share the same COMFYTV_TEXT type, so downstream nodes must be wired to the correct slot: the first output carries beat data and the second carries note data.

Usage Notes

  • The analysis runs on audio. When video is used, the node works from the audio track contained in that video.
  • Since the results are text, they are not directly playable. Route them to nodes that consume COMFYTV_TEXT for display, captioning, prompting, or timing logic.
  • Use the beat output when you need rhythmic structure, and the note output when you need melodic or pitched content. Keeping the two streams separate lets you feed only the relevant information to each downstream branch.
  • The exact text formatting of each output is determined by the node implementation; inspect the emitted text once in a small test workflow before building parsing or templating logic around it.
  • Both inputs being optional means the node will not force you into a particular source type, but it also means an unconnected node has nothing to analyze.

Comments

Sign in with GitHub to join the discussion.

Loading comments…