[PD] Converting a decimal number to hexadecimal and from there to its ASCII numbers
colet.patrice at free.fr
Fri May 31 02:50:17 CEST 2013
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.
> ----- Mail original -----
> > De: "Alexandros Drymonitis" <adrcki at gmail.com>
> > À: "PD-list" <pd-list at 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 at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> > http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list