Forum

Need to generate a special spread from string input

Hi there,
i have a little problem which should be not too hard to solve but somehow im stuck with it.

starting with a list of strings (eg. 1 2 3 , 4 5 , 6 7 8, 9 10) i need to get a spread of the type (0 0 0 1 1 2 2 2 3 3). the semicolon indicates where to seperate the values. then they should be replaced by indices.

i allready build a patch to detect the semicolons and replace them with different values… the file is attached.

any ideas?

seperate by semicolon1.v4p (14.3 kB)

Have a look at the patch.

Comma.Vs_.Semicolon.v4p (6.9 kB)

Nice. The former index pin of the seperate node should solve my problem.

Thank you.