Outputs and displays note and velocity information using an on-screen keyboard.
blackkeycolor [4 floats]
Sets the color for the upper level of keys (otherwise known as the black keys) in RGBA format.
hkeycolor [4 floats]
Sets the selected key color in RGBA format.
inputmode [int] (default: 0)
Set how incoming MIDI is interpreted.
0 = 'Off' ( Input passed unclipped to output )
1 = 'MIDI' ( Input clipped to 0-127 )
2 = 'Visible' ( Input clipped to visible range )
mode [int] (default: 0)
: (the default) Only one key can be selected and displayed at one time.
: The object keeps track of note-ons and note-offs, so it mirrors which notes are currently held down on your MIDI keyboard. A key is “turned off” by sending the kslider object a key on message with a velocity of 0.
: Same as polyphonic, except touch up and mouse up events send out note offs.
0 = 'Monophonic'
1 = 'Polyphonic'
2 = 'Touchscreen'
offset [int] (default: 36)
Sets an offset value in octaves for the kslider object.
parameter_mappable [int] (default: 1)
When parameter_mappable is enabled, the object will be available for mapping to keyboard or MIDI input using the Mappings feature.
range [int] (default: 48)
Sets the number of keys in the keyboard display.
selectioncolor [4 floats]7.0.0
Sets the color for the currently active keys in RGBA format.
style [symbol] (default: )7.0.0
whitekeycolor [4 floats]
Sets the color for the lower level of keys (otherwise known as the white keys) in RGBA format.
Common Box Attributes
If the kslider object is in polyphonic mode, you need to click on a key twice: once to send a note-on, and once again for a note-off.
Clicking on the very rightmost edge of the kslider sends out the note of the key C that would be just to the right of the keys that are visible.
In left inlet: The word , followed by a zero or one, sets the size of the keyboard display. (default) sets the large keyboard, and selects the small keyboard.
kslider sends its current velocity value out its right outlet, followed by the (displayable) pitch value out its left outlet, when a number is received in its inlet or you click or drag on the object.