2009/4/15 Hans Aberg
<haberg@math.su.se>
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.)
Sounds good!
So can this playing functionality be achieved somehow?
Yes. The general "Hid" 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't affected by keyboard repeat rate as you're just reading the device directly.
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'll be able to edit it for the scale and layout that you want with sounds of your choice.
Hope that helps,
Kas.