jit.str.fromsymbol -> float32

MIB's icon

First of all Happy Holidays and Merry Christmas everyone!

I am having a weird issue that I just can't wrap my brain around...
I have text of unknown length coming into a jit.str.fromsymbol. From there I'd like to normalize it to a float32 matrix. No matter what I do, I always get a char output. I tried [jit.matrix float32] I tried [jit.map @map 0 255 0. 1.]... see the patch below.

What is the correct way of normalizing the char output to a float32?

THANKS!!

Max Patch
Copy patch and select New From Clipboard in Max.

Martin Beck's icon

Does this help ?

Max Patch
Copy patch and select New From Clipboard in Max.

MIB's icon

Just saw your reply. Thanks! yes, I hacked something together with jit.matrixinfo similar to your approach in the end.