Hey, Hans!<br><br><div class="gmail_quote">2009/4/15 Hans Aberg <span dir="ltr">&lt;<a href="mailto:haberg@math.su.se">haberg@math.su.se</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I want to be able to play from the typing keyboard - the idea is that a note of specific frequency should be sounded as long as the key is held down. (Typically in an generalized diatonic key layout.)<br>
</blockquote><div><br>Sounds good!<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
So can this playing functionality be achieved somehow?<br>
</blockquote><div><br>Yes.  The general &quot;Hid&quot; object can also open a keyboard device (which is just another hid device). that interface is a lot more versatile, supports signals for releasing the keys and isn&#39;t affected by keyboard repeat rate as you&#39;re just reading the device directly.<br>
<br>The directory of Hid examples in the examples dir that came with your download will have a example or two doing more or less what you want, you&#39;ll be able to edit it for the scale and layout that you want with sounds of your choice.<br>
<br>Hope that helps,<br>Kas.<br></div></div><br>