Page 1 of 1
Build a comma text from a sequence of indexes of a listbox
Posted: 27 Aug 2024, 15:26
by creal
Hello,
I have the following listbox : C, C#, D, D#...
I have also a number sequence, let's say : 0, 3, 2
I want to output the following comma text : C, D#, D
How can I achieve this, please?
I guess it's dead simple but I can't find a way.
Thanks,
creal.
Re: Build a comma text from a sequence of indexes of a listbox
Posted: 27 Aug 2024, 19:29
by SylvainT
Hello,
Quite simple. Connect the CommaText output of your Listbox to a CommaText Get String module. The index input should be connected to your number sequence. Here you are.
Sylvain
Re: Build a comma text from a sequence of indexes of a listbox
Posted: 28 Aug 2024, 09:40
by creal
Thank you Sylvain, it works very well. Simple but efficient. I didn't know indexes could be a number sequence.
Re: Build a comma text from a sequence of indexes of a listbox
Posted: 28 Aug 2024, 11:00
by SylvainT
With HH6, most of the modules are capable to deal with arrays. The inlet stays purple, but an array can be connected and the module calculates all the values. Integer or float. And for sure, when an array of values make sense.
Sylvain
Re: Build a comma text from a sequence of indexes of a listbox
Posted: 30 Aug 2024, 12:06
by creal
Thanks for that precision, Sylvain.
For the moment I own HH5, but it's a good info for me to decide to update if I need that ability someday.