Bad performance of key and keyup objects

chouhy's icon

Hey whats up.
I´m working on a patcher that interacts with my keyboard entries via the "key" and "keyup" objects. The thing is that when I press 2 or more keys at the same time, they get stuck. For example, I press the "Y" and "U" keys toghether and when I release them "Y" is still pressed for MAX.
Is there any solution to get a better performance?

Ben Bracken's icon

Could you send along a simple patch to show us what you mean? Also, always good to have your OS, computer model and version of Max...

-Ben

chouhy's icon

I dont have the file with me right now, but i will be posting it soon.
I´m running MAX 5 (i dont remember wich exact version) on windows XP. My computer is a Dell Studio 1535 Laptop, 3GB RAM (and dont remember the CPU, but will be posting the missing info).

seejayjames's icon

Does it happen with all keys (any combo of 2 or more at once)? I remember having issues with the X and Y keys when Max Toolbox was running, as it uses them for object distribution in your patch. If you have it running, try it with it turned off and see if it makes a difference.

otherwise, the C74 folks will have to take it from there...

Roman Thilenius's icon

are you using one keyup object per key?

chouhy's icon

ok, this is the patcher:

Max Patch
Copy patch and select New From Clipboard in Max.

im gonna look for key and keyup references in max help to see if is there any way to put one object per key as Roman says.

chouhy's icon

i´ve tryed this:

Max Patch
Copy patch and select New From Clipboard in Max.

...and doesnt make any diference.

chouhy's icon

any ideas?
no one with the same issue?

chouhy's icon

could it be a problem on my computer only?
im running max 5.0.7 in windos XP

Ben Bracken's icon

Works fine here too, so definitely update to 5.1.5:

-Ben

chouhy's icon

Ok, i'll be upgrading but i don't think it'll solve anything.

Ben, are you running max in a mac?

Ben Bracken's icon

I run it all. Its like an OS museum over here.

-Ben

Chris Muir's icon

It could be that your keyboard has a crappy n-key rollover algorithm. Is there another USB keyboard you could try to see if the behavior is any different?

Alexandre's icon

> "It could be that your keyboard has a crappy n-key rollover algorithm. "
> "Is there another USB keyboard you could try to see if the behavior is any different?"

I second this possibility. I tried few keyboards when i wanted to make polyphony on piezo-mic augmented computer keyboards, a while ago. Not a good idea, thru it can depend about the keyboard. On some keys/keyboards i had 5 voices of polyphony, on some others, it was weird, two special keys where not working together.

> " Its like an OS museum over here. "

Wow, can we visit it ?