<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I understand it's called a debounce. Not sure precisely what's going on. But if you want to make sure only one gets through I always use a [sel 1] or [sel 0]. or of course [sel 0 1] followed by [del 10] which only accepts bangs, and delays the output by 10 milliseconds, which you won't notice. But when it recieves a bang before the previous one has outputted it restarts the sequence, result, only one message on each key on or key off. <br><br>Hope this helps.&nbsp; <br><br><hr id="stopSpelling">Date: Tue, 15 Jun 2010 12:16:42 +0100<br>From: james@4thharmonic.com<br>To: pd-list@iem.at<br>Subject: [PD] HID double event bug<br><br>








<font size="-1">I filed a bug report some time ago here:
<a class="ecxmoz-txt-link-freetext" href="https://sourceforge.net/tracker/?func=detail&amp;aid=3002665&amp;group_id=55736&amp;atid=478070">https://sourceforge.net/tracker/?func=detail&amp;aid=3002665&amp;group_id=55736&amp;atid=478070</a><br>
Just tested this with Pd version 0.42.5-extended-rc2 on Ubuntu 10.04
and it's the same. Basically I get two events for each key press like
this:<br>
<br>
[hid] opened device 4 (/dev/input/event4): AT Translated Set 2 keyboard<br>
print: key key_space 1<br>
print: key key_space 1<br>
print: key key_space 0<br>
print: key key_space 0<br>
<br>
Thought I'd mention here too as surely this is a bug? Not a major
problem, but it means I always need an [alternate] object or similar.
This then became a problem when working on a patch for two note chords
when the key commands do not always arrive in the same order and some
notes would stay on.<br>
<br>
James<br>
</font>                                               <br /><hr />Get a new e-mail account with Hotmail - Free. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>