Converts a melody to a control signal, containing velocity information from the melody. This is useful to control effect parameters based on note velocity.
Inputs
Melody Input
A melody to convert to a control signal. This can be a real-time melody source, such as that from the MIDI Keyboard Node, or a connection from a non-live source, such as a Piano Roll Node.
Settings
Hold Duration
Keep the value from the last note for this duration, in seconds, or until another note overrides it
For example, if set to 5, the output will continue to output the velocity of the last note for 5 seconds, or until another note overrides it.
This is useful for custom audio synthesis with a long ADSR release duration.
Outputs
Control Output
The current velocity value, from 0 to 1. Outputs 0 if no notes are playing at the moment.
Technical Details
This Node always outputs a single velocity value. If a polyphonic melody is connected, the output is the velocity from the most recently started note (i.e. when a note starts playing, it overrides earlier ones).
Node conversions
Node conversion is available from the node menu.
Convert to: Note To Pitch Node
When converting, Hold Duration value is copied to the new Note To Pitch Node.