HI object-ASCII output

Oct 25, 2006 at 1:08am

HI object-ASCII output

Simple request, not answered from a search of the list archive:

How do I translate the data value output from the hi object to ascii
numbers?

i would like to make use of a second keyboard to send data to the key
object.

thanks,

billd

#28338
Oct 25, 2006 at 2:55am

I think you might need to roll your own lookup table using coll. At least for me (Macbook Pro, OS 10.4.8) hi reports “chords” as well as individual keys, so you’ll have to filter those out.

mzed

Quote: billdnyc wrote on Tue, 24 October 2006 18:08
—————————————————-
> Simple request, not answered from a search of the list archive:
>
> How do I translate the data value output from the hi object to ascii
> numbers?
>
> i would like to make use of a second keyboard to send data to the key
> object.
>
> thanks,
>
> billd
>
>
>
>
—————————————————-

#86886
Oct 25, 2006 at 3:05am

> How do I translate the data value output from the hi object to ascii
> numbers?

Here’s a start on it:

put [route 10] after [hi] and feed into a coll object with this collection:

53, 96;
30, 49;
31, 50;
32, 51;
33, 52;
34, 53;
35, 54;
36, 55;
37, 56;
38, 57;
39, 48;
45, 45;
46, 61;
42, 8;
49, 92;
48, 93;
47, 91;
19, 112;
18, 111;
12, 105;
24, 117;
28, 121;
23, 116;
21, 114;
8, 101;
26, 119;
20, 113;
43, 9;
57, 65;
4, 97;
22, 115;
7, 100;
9, 102;
10, 103;
11, 104;
13, 106;
14, 107;
15, 108;
51, 59;
52, 39;
40, 39;
56, 47;
55, 46;
54, 44;
16, 109;
17, 110;
5, 98;
25, 118;
6, 99;
27, 120;
29, 122;
44, 32;
88, 3;
80, 28;
82, 30;
81, 31;
79, 29;

It doesn’t know about the modifier keys.

mz

#86887
Oct 27, 2006 at 5:39am

bill d wrote:
> Simple request, not answered from a search of the list archive:

there is also a manual to search…

> How do I translate the data value output from the hi object to ascii
> numbers?

itoa
(I know this doesn’t solve your problem, but answers the question ;-)

> i would like to make use of a second keyboard to send data to the key
> object.

Either the keyboard is recognized as such, then your OS will send it
automatically to key, or you just translate them yourself (with a coll).

There is no need (and no possibility) to send anything to the key
object. Instead you can use a receive “allmykeys” instead of the key
object and one send “allmykeys” connected to key, one to your Hi
translator to combine them…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#86888

You must be logged in to reply to this topic.