Welcome to %s forums

BrainModular Users Forum

Login Register

Build a comma text from a sequence of indexes of a listbox

I need help on a Patch
Post Reply
creal
Member
Posts: 96
Contact:

Build a comma text from a sequence of indexes of a listbox

Unread post by creal » 27 Aug 2024, 15:26

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.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 27 Aug 2024, 19:29

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

creal
Member
Posts: 96
Contact:

Unread post by creal » 28 Aug 2024, 09:40

Thank you Sylvain, it works very well. Simple but efficient. I didn't know indexes could be a number sequence.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 28 Aug 2024, 11:00

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

creal
Member
Posts: 96
Contact:

Unread post by creal » 30 Aug 2024, 12:06

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests