[PD] [hid] users poll

Hans-Christoph Steiner hans at eds.org
Thu Jun 23 19:41:27 CEST 2005


On Jun 23, 2005, at 12:06 PM, ix at replic.net wrote:

>>>> abs_z5 abs_z6 abs_z7 abs_z8 abs_z9 abs_z10 abs_z11 abs_z12 abs_z13
>>>> abs_z14 abs_z15 abs_z16 abs_z17 abs_z18 abs_z19 abs_z20 abs_z21
>>>> abs_z22 abs_z23 abs_z24 abs_z25 abs_z26 abs_z27 abs_z28 abs_z29
>>>> abs_z30 abs_z31 abs_z32 abs_z33 abs_z34 abs_z35 abs_z36 abs_z37
>>>> abs_z38 abs_z39 abs_z40 abs_z41 abs_z42 abs_z43 abs_z44 abs_z45
>>>> abs_z46 abs_z47 abs_z48 abs_z49 abs_z50 abs_z51 abs_z52 abs_z53
>>>> abs_z54 abs_z55 abs_z56 abs_z57 abs_z58 abs_z59 abs_z60 abs_z61
>>>> abs_z62 abs_z63]. That's more like a normal human Pd patch.
>
>> There are a fixed, finite set of symbols, they are derived from the  
>> USB
>> HID spec.
>
> sorry didnt read this whole thread, but why are they symbols and not  
> lists? this almost necessitates regex, and we all know how well that  
> works in PD...

event types and event IDs are symbols, the data is a float.  The whole  
event is a set of atoms:

[abs abs_x 114(

[key key_q 1(

A set of atoms that begins with a float is defined as a "list" in Pd.   
A set of atoms that begins with a symbol is undefined.  Try out  
hid-help.pd and it will be clearer, there are numerous examples there.

.hc

>
> c
>> They are, but with types prepended to keep everything as symbol atoms,
>> e.g. key_253, abs_54, btn_1, etc.
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->  
> http://lists.puredata.info/listinfo/pd-list
>

________________________________________________________________________ 
____

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.
Now that he can realize them, he must either change them, or perish.
		                                                -William Carlos  
Williams

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2353 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050623/8fc675b3/attachment.bin>


More information about the Pd-list mailing list