Visit ComfyUI Online for ready-to-use ComfyUI environment
Filter MIDI messages by mode, channel, control, note, value, and normalize, simplifying data handling for selective event processing.
The MIDI Filter EZ node allows you to filter MIDI messages based on various criteria, including MIDI mode (such as note on or note off), MIDI channel, control number, note number, value, and normalized value. This node is useful for processing MIDI input and selectively passing through only the desired messages. It helps simplify MIDI data handling by allowing you to focus on specific types of MIDI events.
This parameter accepts a MIDI message (JMIDIMSG
) as input. It is optional and defaults to None
. When provided, the node will process this MIDI message according to the specified filtering criteria.
This parameter specifies the MIDI mode to filter by, such as note on or note off. It accepts values from the MIDINoteOnFilter
enumeration, with the default being IGNORE
. This allows you to focus on specific types of MIDI events.
This parameter filters MIDI messages by channel. It accepts an integer value ranging from -1 to 127, with -1 indicating no filtering by channel. The default value is -1. Setting this parameter helps you isolate messages from a specific MIDI channel.
This parameter filters MIDI messages by control number. It accepts an integer value ranging from -1 to 127, with -1 indicating no filtering by control number. The default value is -1. This is useful for focusing on specific control change messages.
This parameter filters MIDI messages by note number. It accepts an integer value ranging from -1 to 127, with -1 indicating no filtering by note number. The default value is -1. This allows you to target specific note events.
This parameter filters MIDI messages by value. It accepts an integer value ranging from -1 to 127, with -1 indicating no filtering by value. The default value is -1. This is useful for filtering messages based on their value, such as velocity or control value.
This parameter filters MIDI messages by normalized value. It accepts a float value ranging from -1 to 1, with -1 indicating no filtering by normalized value. The default value is -1. This allows you to filter messages based on a normalized range, which can be useful for certain types of MIDI processing.
This output parameter returns the filtered MIDI message. If the message meets the specified criteria, it is passed through; otherwise, it is filtered out. This allows you to process only the desired MIDI messages further.
This output parameter returns a boolean value indicating whether the MIDI message passed the filter criteria. A value of True
means the message was accepted, while False
means it was filtered out. This can be useful for conditional processing based on the filter results.
CHANNEL
parameter to isolate messages from a specific MIDI channel, which is useful in multi-channel MIDI setups.MODE
parameter to filter by specific MIDI events, such as note on or note off, to focus on the types of messages relevant to your application.CONTROL
and NOTE
parameters to target specific control change or note events, allowing for precise MIDI message handling.MIDI
input parameter.CHANNEL
parameter is set to a value outside the valid range (-1 to 127).CHANNEL
parameter to a value within the valid range.CONTROL
parameter is set to a value outside the valid range (-1 to 127).CONTROL
parameter to a value within the valid range.NOTE
parameter is set to a value outside the valid range (-1 to 127).NOTE
parameter to a value within the valid range.VALUE
parameter is set to a value outside the valid range (-1 to 127).VALUE
parameter to a value within the valid range.NORMALIZE
parameter is set to a value outside the valid range (-1 to 1).NORMALIZE
parameter to a value within the valid range.© Copyright 2024 RunComfy. All Rights Reserved.