[PD] polyphonic ? key, keyup setup question

padawan12 padawan12 at obiwannabe.co.uk
Thu Oct 5 13:27:43 CEST 2006


Aha! very good.  xset does the trick,
much better than using kbdrate.

 

On Wed, 4 Oct 2006 21:07:33 +0200
Frank Barknecht <fbar at footils.org> wrote:

> Hallo,
> padawan12 hat gesagt: // padawan12 wrote:
> 
> > You can try setting your key repeat to the lowest rate possible
> > and the longest delay before it starts, on linux/unix
> > 
> > kbdrate -r 2 -d 1000
> 
> Hm, I don't have the kbdrate command on my machine, but alternatively
> you may use "xset" to set keyboard specifics. "xset -r" will switch
> off autorepeat altogether, "xset r" will switch it back on.
> 
> Attached is another way to get at keyboard data in Pd that is suited
> to be used to built a midi-keyboard from a standard PC keyboard. It
> involves an abstraction "keytrans.pd" which should be used with two
> argument as [keytrans <keyname> <midi note>] and will output a list of
> "<frequency> <keypress state as 0 or 1>" if the respective key passed
> as <keyname> is pressed or released. It's a good example for when
> an abstraction can save a lot of typing and connecting work.
> 
> Ciao
> -- 
>  Frank Barknecht                 _ ______footils.org_ __goto10.org__
> 




More information about the Pd-list mailing list