Question about Keyboard Slider object

Oct 5, 2006 at 4:46am

Question about Keyboard Slider object

I want to make a small keyboard tool in which the key of keyboard slider is “pressed” when mouse is held, and the key is “released” when mouse is released.

With this, I will be able to test soft synthesizer patch more easily.

The Keyboard Slider object in Max/MSP always keeps a key pressed.
I want it to send a note-off message when the mouse leaves the key on the keyboard slider, but I cannot find any info in the help file.

Is there anyway to do it ?

Thanks.

#27982
Oct 5, 2006 at 5:05am

> Is there anyway to do it ?

mousestate, iirc. search the docs for mouse.

#85355
Oct 5, 2006 at 10:12am

On 5 oct. 06, at 06:46, Cheng Chien-Wen wrote:

> I want to make a small keyboard tool in which the key of keyboard
> slider is “pressed” when mouse is held, and the key is “released”
> when mouse is released.
>
> With this, I will be able to test soft synthesizer patch more easily.
>
> The Keyboard Slider object in Max/MSP always keeps a key pressed.
> I want it to send a note-off message when the mouse leaves the key
> on the keyboard slider, but I cannot find any info in the help file.

Hi,

Maybe [mousefilter] can help. It’ll let the pitch path when you
release the note, so you can use this information du stop the note(s).

HTH,
ej

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 123 289 32 196617 flush;
#P newex 123 340 55 196617 noteout;
#P button 51 227 15 0;
#P newex 51 182 62 196617 mousefilter;
#P user kslider 123 60 54 0 36 48 31 12 0 128 128 128 128 128 128 255
255 255 0 0 0 0 0 0;
#P connect 0 0 1 0;
#P connect 0 0 4 0;
#P connect 2 0 4 0;
#P connect 0 1 4 1;
#P connect 4 1 3 1;
#P connect 4 0 3 0;
#P connect 1 0 2 0;
#P window clipboard copycount 5;

#85356
Oct 5, 2006 at 6:58pm

I actually figured it out already with mousestate. Thanks for the help.

max v2;
#N vpatcher 15 55 1167 627;
#P origin 0 -4;
#P window setfont “Sans Serif” 9.;
#P message 672 101 14 9109513 1;
#P newex 672 77 45 9109513 loadbang;
#P toggle 673 129 15 0;
#P newex 673 154 50 9109513 metro 100;
#P number 630 204 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 672 204 40 9109513 sel 1 0;
#P newex 673 179 66 9109513 mousestate;
#P message 687 229 29 9109513 flush;
#P number 1014 329 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user kslider 687 261 54 0 36 48 31 12 1 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P connect 3 0 5 0;
#P connect 8 0 9 0;
#P connect 3 0 4 0;
#P connect 9 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 3 0;
#P connect 4 1 2 0;
#P connect 2 0 0 0;
#P connect 0 1 1 0;
#P pop;

#85357
Oct 5, 2006 at 9:00pm

mousestate rox!

#85358

You must be logged in to reply to this topic.