Hello,
with pd-extended some externals can do this, curiously 255 is FF but gives 102 102, not 70 70 following solution proposed in attached patch.
Colet Patrice
----- Mail original -----
De: "Alexandros Drymonitis" adrcki@gmail.com À: "PD-list" pd-list@iem.at Envoyé: Jeudi 30 Mai 2013 20:44:07 Objet: [PD] Converting a decimal number to hexadecimal and from there to its ASCII numbers
I want to communicate with a LanBox and I have to send values in hexadecimal, but represented by their ASCII values. So, for example 0 is 00 in hexadecimal, and it's sent as 48 48. 255 is FF and is sent as 70 70. The only thing I can think of is [makefilename], but it seems that it's only helpful for converting a decimal number to hexadecimal. How can I go about the rest, splitting the two characters and finding their ASCII values?
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list