Forums > MaxMSP

Simple Keyboard control of a slider

January 18, 2011 | 11:13 am

Hey Guys

This is a really dumb question. I’m trying to create a slider that is control via the arrow keys on a keyboard. I’ve managed to to increment the slider using the right arrow key, its subtracting from the slider using the left arrow key that is proving somewhat challenging for my (extremely) limited max skills.

Basically i’m trying to create a slider (say that goes between 0 and 10) that when the left arrow key is pressed 0.1 is subtracted from the slider value and when the right hand key is pressed 0.1 is added to the value. I would also like the slider to keep having its value changed with multiple presses of the same arrow key.

Many Thanks

January 18, 2011 | 11:41 am

[110.keybutton] and [110.indec] will do this.

there is an 110 for everything.


January 18, 2011 | 1:33 pm

Many Thanks for those… at the risk of sounding incompetent, how would these be implemented for my needs.

January 18, 2011 | 1:53 pm

hi stevie

or using basic max objects:

— Pasted Max Patch, click to expand. —


January 18, 2011 | 1:59 pm

Excellent! That was exactly what i was looking for, knew it would be simple. Many Thanks Ergaster!

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP