Forums > MaxMSP

Velocity Output (SIMPLE)

December 6, 2006 | 12:48 pm

Is there a way to change the velocity from the keyborad when the key is not being pressed to 0?

max v2;
#N vpatcher 10 59 1058 748;
#P window setfont "Sans Serif" 9.;
#P newex 562 347 27 196617 -;
#P number 562 380 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 14.;
#P newex 530 592 64 196622 noteout;
#P window setfont "Sans Serif" 9.;
#P number 548 185 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 460 526 51 196617 makenote;
#P window setfont "Sans Serif" 20.;
#P number 221 177 35 20 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user gain~ 548 214 24 100 158 0 1.071519 7.94321 10.;
#P window setfont "Sans Serif" 14.;
#P newex 460 591 64 196622 noteout;
#P user kslider 221 85 54 0 36 48 31 12 0 255 230 25 255 230 25 255 255 255 0 0 0 0 0 0;
#P connect 0 0 3 0;
#P connect 4 0 1 0;
#P fasten 4 1 1 1 506 550 492 550;
#P fasten 4 0 6 0 465 550 535 550;
#P connect 0 1 5 0;
#P connect 5 0 2 0;
#P fasten 4 1 6 1 506 550 562 550;
#P connect 2 1 8 0;
#P connect 8 0 7 0;
#P fasten 5 0 8 1 584 200;
#P pop;

Thanks in advance


December 6, 2006 | 1:08 pm

max v2;
#N vpatcher 10 59 954 622;
#P origin 0 -16;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 281 134 32 196617 flush;
#P newex 247 103 44 196617 togedge;
#P newex 247 46 48 196617 loadbang;
#P newex 247 76 66 196617 mousestate;
#P newex 622 423 27 196617 -;
#P number 622 456 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 14.;
#P newex 590 668 64 196622 noteout;
#P window setfont "Sans Serif" 9.;
#P number 608 261 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 520 602 51 196617 makenote;
#P window setfont "Sans Serif" 20.;
#P number 281 253 35 20 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user gain~ 608 290 24 100 158 0 1.071519 7.94321 10.;
#P window setfont "Sans Serif" 14.;
#P newex 520 667 64 196622 noteout;
#P user kslider 281 161 54 0 36 48 31 12 1 255 230 25 255 230 25 255 255 255 0 0 0 0 0 0;
#P connect 10 0 9 0;
#P connect 9 0 11 0;
#P connect 11 1 12 0;
#P connect 12 0 0 0;
#P connect 0 0 3 0;
#P connect 4 0 1 0;
#P fasten 4 1 1 1 566 626 552 626;
#P fasten 4 0 6 0 525 626 595 626;
#P connect 0 1 5 0;
#P connect 5 0 2 0;
#P fasten 4 1 6 1 566 626 622 626;
#P connect 2 1 8 0;
#P connect 8 0 7 0;
#P fasten 5 0 8 1 644 276;
#P pop;


December 6, 2006 | 1:14 pm

Thanks, maybe i shud have been a bit more specific, firstly it needs to be monophonic, and secondly is there a way to keep the gain slider live, so when the key is pressed it keeps that number, and when let go it changes to 0, and then used for make note and note out

Thanks,


December 9, 2006 | 11:07 pm

Freddy wrote:
> Thanks, maybe i shud have been a bit more specific, firstly it needs
> to be monophonic,

It is..

> and secondly is there a way to keep the gain slider
> live, so when the key is pressed it keeps that number, and when let
> go it changes to 0, and then used for make note and note out

just don’t send it to the gain slider if its 0.
(its too simple to explain if you do the tutorials you’ll find out… ;-)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


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