[chuck-users] Using typing keyboard for playing

Kassen signal.automatique at gmail.com
Wed Apr 15 07:24:48 EDT 2009

Hey, Hans!

2009/4/15 Hans Aberg <haberg at 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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20090415/043d8632/attachment-0001.html>

More information about the chuck-users mailing list