[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Mapping values into hexadecimal



Hi,

I think you need to 1) remap the values in the proper range (0-65536), 2) convert to integer 3) then convert to hex. How about

x = 0; //any number 0-100
x.linlin(0, 100, 0, 65535).asInteger.asHexString;

Cheers,
Marcin





On Fri, Dec 26, 2014 at 6:35 AM, Ronni Montoya <ronni.montoya@xxxxxxxxx> wrote:
Hi, is there is an easy way for mapping an array with number values
into hexadecimal values?

For example, my array with data goes from 0 to 100 and I need to map
into 0 to FFFF.

Which is the easiest way of achieving this in sc3?


thanks in advance


R.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/