[chuck-users] Using typing keyboard for playing

Tom Lieber lieber at princeton.edu
Wed Apr 15 07:27:00 EDT 2009


On Wed, Apr 15, 2009 at 7:02 AM, Hans Aberg <haberg at math.su.se> wrote:
> 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.)
>
> The function KBHit.getchar() does not seem to be the right thing, because it
> just gives a value when the key is depressed, not when it is released, and
> further, does not disable "key repeat". In addition, it would be better to
> get the key numbers, not the text key map translated values which may change
> (and not work one special key combinations).
>
> So can this playing functionality be achieved somehow?

You want smelt!

  http://smelt.cs.princeton.edu/

  http://smelt.cs.princeton.edu/code/keyboard/kb.ck

-- 
Tom Lieber
http://AllTom.com/


More information about the chuck-users mailing list