[PD] Key-repeat makes keyboard-pianokeys impossible?
Frank Barknecht
fbar at footils.org
Tue Jul 18 17:02:01 CEST 2006
Hallo,
Roman Haefeli hat gesagt: // Roman Haefeli wrote:
> does anybody else measure a different value on his system and knows how
> to change it?
>
> "measurement"-patch:
>
> [bng]
> |
> [t b b]
> | |
> [timer]
> |
> [print]
Maybe you cannot click fast enough with the mouse?
Learn how to do it from watching the legendary Takahashi Meijin:
http://www.youtube.com/watch?v=A6MoEj_Hs7Y
Anyway mouse clicks don't autorepeat generally, most keyboard keys do.
I get these results with "auto repeat delay: 250 repeat rate: 25"
using above patch but instead of a [bng] I used the first outlet of
[keyname] so I get to measure keyup and keydown events as read by Pd:
print: 249.615
print: 0
print: 40.6349
print: 0
print: 40.6349
print: 0
print: 40.6349
print: 0
print: 40.6349
print: 0
print: 40.6349
print: 0
print: 40.6349
print: 0
print: 40.6349
print: 0
print: 34.8299
print: 1.45125
print: 39.1837
According to the xset-manual: "rate is the number of repeats per
second", so 25 is a value in Hz. 25 Hz correspond to a period of
40msec, so the values I get are more or less correct taken the
message quantization Pd does into account.
The initial delay of 249.615 also is fine.
Ciao
--
Frank Barknecht _ ______footils.org_ __goto10.org__
More information about the Pd-list
mailing list