MIDI Variable Note Output Building Block

The MIDI Variable Note Output building block is used to generate MIDI Note messages that have a Note number and Velocity value that are determined when the message is generated.

A MIDI Variable Note Output building block has two Number inputs, one ON/OFF input, and one ON/OFF output. When the "PLAY" input turns ON, the building block will generate a MIDI NoteOn message then turn its output ON. If the "NOTE" and "VEL" inputs are connected, MIDI NoteOn message will use the values of those inputs for the Note number and Velocity value respectively. If either or both the "NOTE" and "VEL" inputs are unconnected, the MIDI NoteOn message will use the block's default Note number and default On Velocity respectively. The building block can be configured to send a MIDI NoteOff message, a MIDI NoteOn message with a velocity value of "0", or do nothing when its input turns OFF. If a MIDI NoteOff message is sent, it will use the same note that was used in the MIDI NoteOn message.

The MIDI Variable Note Output building block can optionally be configured with a maximum note duration. If the building block is given a maximum duration and its "PLAY" input remains ON for at least that amount of time, then the building block will act as though its "PLAY" input turns OFF when the maximum duration elapses. When the "PLAY" input subsequently turns OFF, no further action is performed.

To configure a MIDI Variable Note Output building block, select a Note, a Velocity value for the MIDI NoteOn message, and an action to perform when the note finishes. If the MIDI NoteOff action is selected, select a Velocity value to be used in the MIDI NoteOff message. If a MIDI message is to be sent when the note finishes, add a maximum note duration by turning on the Max Duration option and entering the desired note duration.

In the example to the right, the MIDI Variable Note Output building block will generate a MIDI NoteOn message with note C5 (note number "60") if the "NOTE" input is unconnected and a Velocity value of "64" if the "VEL" input is unconnected when its input turns ON. When its output turns OFF, it will generate a MIDI NoteOff message with a Velocity value of "64".