Converts a melody to a control signal, containing pitch information from the melody. This is useful to control effect parameters based on pitch, such as filters, or complex modular synth patches.
Inputs
Melody Input
A melody to convert to a control signal, containing the pitch in MIDI code or frequency Hz. This can be a real-time melody source, such as that from the MIDI Keyboard Node, or a connection from a static source, such as a Piano Roll Node.
Settings
Output Format
Sets the output format:
- Frequency – outputs pitch in Hz (for example, the output will be 440 for an A4 note)
- MIDI Code – outputs pitch in its MIDI code (for example, the output will be 60 for a C4 note)
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 pitch value, in the specified output format, or 0 if no notes are playing at the moment.
Technical details
This Node always outputs a single pitch value. If a polyphonic melody is connected, the output is the pitch from the most recently started note. That is, when a note starts playing, it overrides earlier ones.
Node conversions
Node conversion is available from the node menu.
Convert to: Note To Velocity Node
When converting, Hold Duration value is copied to the new Note To Velocity Node.
Similar Nodes
- The Pitch Detect Node works in a similar fashion, except it takes an audio signal, analyzes it, and outputs its frequency information. However, the Note to Pitch Node is faster and more accurate.