[chuck-users] Using typing keyboard for playing

Hans Aberg haberg at math.su.se
Wed Apr 15 07:02:13 EDT 2009


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?

   Hans Aberg




More information about the chuck-users mailing list