<div class="gE ib gt" style="display: none;"><table class="cf gJ" cellpadding="0"><tbody><tr><td class="gF gK"><table class="cf gJ" cellpadding="0"><tbody><tr class="UszGxc"><td class="g7"><span class="lHQn1d"><img class="f g8" src="images/cleardot.gif" alt=""></span></td>
<td class="gG"><span class="gI">from</span></td><td colspan="2" class="gL"><span class="gI"><span class="ik"><img class="de QrVm3d" id="upi" name="upi" src="images/cleardot.gif" alt="" height="16" width="16"></span><span class="gD" style="color: rgb(0, 104, 28);">James Dunn</span> <span class="go"><<a href="mailto:james@4thharmonic.com">james@4thharmonic.com</a>></span></span></td>
</tr><tr><td colspan="2" class="gG"><span class="gI">to</span></td><td colspan="2" class="gL"><span class="gI"><span class="ik"><img class="de QrVm3d" id="upi" name="upi" src="images/cleardot.gif" alt="" height="16" width="16"></span>Andrew Faraday <<a href="mailto:jbturgid@hotmail.com">jbturgid@hotmail.com</a>><br>
</span></td></tr><tr><td colspan="2" class="gG"><span class="gI">date</span></td><td colspan="2" class="gL"><span class="gI"><span class="ik"><img src="images/cleardot.gif" height="16" width="16"></span>15 June 2010 13:52</span></td>
</tr><tr><td colspan="2" class="gG"><span class="gI">subject</span></td><td colspan="2" class="gL"><span class="gI"><span class="ik"><img src="images/cleardot.gif" height="16" width="16"></span>Re: [PD] HID double event bug</span></td>
</tr><tr><td colspan="2" class="gG"><span class="gI">mailed-by</span></td><td colspan="2" class="gL"><span class="gI"><span class="ik"><img src="images/cleardot.gif" height="16" width="16"></span><a href="http://googlemail.com">googlemail.com</a></span></td>
</tr><tr><td colspan="4"><span class="gI"></span></td></tr></tbody></table></td><td class="gH"><div class="gK UszGxc"><span class="iD">hide details</span> <span id=":vy" class="g3" title="15 June 2010 13:52" alt="15 June 2010 13:52">13:52 (3 minutes ago)</span> <span></span></div>
</td><td class="gH cY8xve"></td></tr></tbody></table></div>Thanks
for the reply. This isn't switch contact bounce as every key
consistently generates two events for each key pressed down and for
each key released. There are certainly ways around it in a patch but I
was wondering if this was a bug that could be fixed?<br><br>James<br><br><div class="gmail_quote">On 15 June 2010 12:48, Andrew Faraday <span dir="ltr"><<a href="mailto:jbturgid@hotmail.com">jbturgid@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
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. <br><br><hr>Date: Tue, 15 Jun 2010 12:16:42 +0100<br>From: <a href="mailto:james@4thharmonic.com" target="_blank">james@4thharmonic.com</a><br>To: <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br>
Subject: [PD] HID double event bug<div><div></div><div class="h5"><br><br>
<font size="-1">I filed a bug report some time ago here:
<a href="https://sourceforge.net/tracker/?func=detail&aid=3002665&group_id=55736&atid=478070" target="_blank">https://sourceforge.net/tracker/?func=detail&aid=3002665&group_id=55736&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</font><br></div></div></div></blockquote></div><br>