Welcome to %s forums

BrainModular Users Forum

Login Register

Working on a random word generator

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

Working on a random word generator

Unread post by creal » 13 Dec 2022, 13:57

Hello,

I am working on a patch that can generate random words based on series of syllables (between 1 and 4). I have several problems with my patch:
1) How can I simply transform a comma text into a string (i.e. just remove commas)? I tried the panel-text module (followed by a fader-text module), but as soon I move the mouse the fader-text displays each string of the comma text inlet to a different lane.
2) Can the "delay method" be optimized? I used a dispatch module to fill a string-to-comma-text module by incrementing the select inlet, but I guess there's another smart way to do it (maybe using a counter?).
3) I don't want duplicate syllables in the generated word, and it seems quite difficult to achieve this.
4) In a near future, I would like to use several syllable lists (one for each letter, or each vowel sound) instead of just one very long list of syllables. This is what I tried to achieve in the bottom part of the patch. But there is a problem on an index size number since all the lists won't have the same number of syllables. Maybe just a long comma text gathering all the lists would be the most efficient way, but I don't find such a module (something like "gather comma texts").
5) Is there a way to sort a comma text in alphabetical order? I can't find a way to do it.

Thanks,

Cyril.
Attachments
random word.pat
(37.52 KiB) Downloaded 441 times

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 13 Dec 2022, 19:25

Hello,

Some ideas !!!!
Plus a script for alphabetic order of commatext.

Sylvain
random word 2.pat
(153.19 KiB) Downloaded 755 times

creal
Member
Posts: 96
Contact:

Unread post by creal » 13 Dec 2022, 20:21

Wow!! It's insane! Thanks again, Sylvain.

Usine => best support ever. I've never seen that before (and I got in touch with a lot of editors!).

Now I have to take the time to understand the patch :)

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 13 Dec 2022, 20:40

Haha
I'm loosing my time in airports, flight delayed, rebooked, delayed again, connexion lost, rebooked again, delayed again and again .... A nightmare since 7.00am to reach Milan from Oslo, and it's not finish yet.
Can't really work so I make simple patches for usiners 🙂
Last edited by SylvainT on 13 Dec 2022, 20:54, edited 2 times in total.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 13 Dec 2022, 20:42

But yes, usually answers are quick with BrainModular and the community.

creal
Member
Posts: 96
Contact:

Unread post by creal » 14 Dec 2022, 17:57

SylvainT wrote:
13 Dec 2022, 20:40
Haha
I'm loosing my time in airports, flight delayed, rebooked, delayed again, connexion lost, rebooked again, delayed again and again .... A nightmare since 7.00am to reach Milan from Oslo, and it's not finish yet.
Can't really work so I make simple patches for usiners 🙂
Wow! Such a mess. I hope everything ended fine and that you don't have to take another flight for Christmas (things are getting complicated in France).

"Usiners" is a very cute word, by the way. It also could be a subtitle for a new Mad Max movie 8)

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests