Working on a random word generator
Posted: 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.
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.