I've had this problem before with [hid], apparently it's a hardware issue called 'debouncing', which is often ignored because it is often irrelevant (pushed is pushed, for game controllers, rather than a button-on/button-off signal used for most music systems).

You can deal with the problem in pure data by using a trigger, float and delay of one millisecond. See the attached patch, click the message boxes and watch your terminal for the result.

I hope this helps.

Andrew


Date: Wed, 18 Apr 2012 16:53:44 +0100
From: james@4thharmonic.com
To: pd-list@iem.kug.ac.at
Subject: [PD] HID double triggers

Hi list,

recently I've been playing around with [hid] again and still have the issue with double triggers on linux (see previous post here).

I've downloaded the latest version of Pd-0.43.1-extended-ubuntu-lucid-i386.deb but I have the same problem with my existing Arch Linux installation on my laptop as well.

It works fine on Mac 10.6. The problem is that I basically get two identical events for each key press and release, ie:

[hid] 0.7, written by Hans-Christoph Steiner <hans@eds.org>
    compiled on Apr 15 2012 at 08:12:47
[hid] opened device 4 (/dev/input/event4): AT Translated Set 2 keyboard
print: key key_u 1
print: key key_u 1
print: key key_u 0
print: key key_u 0

Is anyone else having this problem?

thanks

James

_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list