kslider
Description
Outputs and displays note and velocity information using an on-screen keyboard.
Examples

Arguments
None.
Attributes
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.
Possible values:
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)
Sets the
: (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.
Possible values:
0 = 'Monophonic'
1 = 'Polyphonic'
2 = 'Touchscreen'
offset [int] (default: 36)
Sets an offset value in octaves for the kslider object.
parameter_enable [int]
Enables use of this object with Max for Live Parameters and allows for setting initial parameter values in the Max environment.
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
Sets the style to be applied to the object. Styles can be set using the Format palette.
whitekeycolor [4 floats]
Sets the color for the lower level of keys (otherwise known as the white keys) in RGBA format.
Common Box Attributes
Parameter Attributes
Messages
bang
int
Arguments
(inlet1)
Arguments
float
Arguments
(inlet1)
Arguments
chord
Arguments
clear
flush
(mouse)
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.
set
Arguments
velocity [int]
size
Arguments
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.
Output
int
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.
See Also
Name | Description |
---|---|
MIDI | MIDI |
makenote | |
notein | |
noteout | |
nslider | |
pictslider | |
rslider | |
slider |