Forum

String-theory problems

Hello,

Two (quick) questions about strings. I’ll try to explain as clear as possible (always having trouble at this, even in real-world conversations, so bear with me :)

I have a spread of 2500 integers and i would like to convert those in a spread of binarys resulting in 2500 string of 8 (binary) ints each. The problem in my current setup is i can only convert one integer at a time. Although it works i’m guessing there must be a better solution for this?

Number two: As you may see in the example-patch i would like to collect those (binary) values in a text file for further editing. The problem is that when i output the strings in a new spread to save the textfile it fills the spread with the same values over and over. I guess i need something like a “super-S+H” where it somehow samples and holds/stores more!.

Anybody any ideas to tackle this. Probably really simple but im cracking my brains on this for the past few hours now. Anyway thanks!

FRid

binary-2.v4p (21.9 kB)

OK, fixed number one. That cleans up the patch a bit…
(Solution was already in the patch, shame shame)

OK, fixed number one. That cleans up the patch a bit…
(Solution was already in the patch, shame shame)

binary-3.v4p (13.0 kB)

If you collect one value at a time, but want to save them all, one after another, in a textfile, there is this very cool “Append” pin on the writer (file), this just means, every time you save, your new text will be add to the textfile, so your textfile will grow and grow. Hope that helps, and if it doesn’t try to explain what values you want to save, or how you obtain them.

Lol… ah man. Thanks for that one! . I had my doubts at first because of the 2500 numbers needed for input but it works like a charm and very fast i might add.

Thanks!

FRid

(Love your tutorials by the way)

also look at Radix, could be more efficient:

also look at Radix, could be more efficient:

binary-radix.v4p (6.8 kB)