Hi all,

I'm a little confused by the behaviour of the [key] and [keyup] objects.
What I'd expect is that they 'bang' and output the number only and only when a key is pressed (key) or depressed (keyup), while it looks like while a key is kept pressed they go on banging. Also a [keyup] seems to bang even when a key is 'down'. This also poses somewhat a problem with keyboard 'poliphony' say I keep a key pressed while also pressing other[s].

Is my expectation simply wrong? I noticed that the behaviour is different when pressing keys like SHIFT, CTRL etc. Also I see from the help this is system dependent, I see this on Linux (ubuntu 9,04 - Pd 0.41.4-extended-rc1)

Thanks,
Lorenzo
#N canvas 445 367 475 207 10;
#X obj 35 113 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X floatatom 35 166 5 0 0 0 - - -;
#X msg 56 112 0;
#X obj 68 138 + 1;
#X obj 35 138 f 0;
#X floatatom 77 81 5 0 0 0 - - -;
#X obj 35 55 key;
#X obj 136 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 136 167 5 0 0 0 - - -;
#X msg 157 113 0;
#X obj 169 139 + 1;
#X obj 136 139 f 0;
#X floatatom 178 82 5 0 0 0 - - -;
#X obj 136 56 keyup;
#X obj 243 115 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 243 168 5 0 0 0 - - -;
#X msg 264 114 0;
#X obj 276 140 + 1;
#X obj 243 140 f 0;
#X floatatom 332 87 5 0 0 0 - - -;
#X obj 243 57 keyname;
#X symbolatom 373 87 10 0 0 0 - - -;
#X obj 333 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 333 167 5 0 0 0 - - -;
#X msg 354 113 0;
#X obj 366 139 + 1;
#X obj 333 139 f 0;
#X obj 398 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 398 167 5 0 0 0 - - -;
#X msg 419 113 0;
#X obj 431 139 + 1;
#X obj 398 139 f 0;
#X text 44 22 keep a key pressed... then press other keys;
#X connect 0 0 4 0;
#X connect 2 0 4 1;
#X connect 3 0 4 1;
#X connect 4 0 1 0;
#X connect 4 0 3 0;
#X connect 6 0 0 0;
#X connect 6 0 5 0;
#X connect 7 0 11 0;
#X connect 9 0 11 1;
#X connect 10 0 11 1;
#X connect 11 0 8 0;
#X connect 11 0 10 0;
#X connect 13 0 7 0;
#X connect 13 0 12 0;
#X connect 14 0 18 0;
#X connect 16 0 18 1;
#X connect 17 0 18 1;
#X connect 18 0 15 0;
#X connect 18 0 17 0;
#X connect 19 0 22 0;
#X connect 20 0 14 0;
#X connect 20 0 19 0;
#X connect 20 1 21 0;
#X connect 21 0 27 0;
#X connect 22 0 26 0;
#X connect 24 0 26 1;
#X connect 25 0 26 1;
#X connect 26 0 23 0;
#X connect 26 0 25 0;
#X connect 27 0 31 0;
#X connect 29 0 31 1;
#X connect 30 0 31 1;
#X connect 31 0 28 0;
#X connect 31 0 30 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to