Welcome to %s forums

BrainModular Users Forum

Login Register

Comma delimited texts to separate elements

Discussions about add-ons, announcements
Post Reply
bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 20 Mar 2009, 11:30

As a "spin-off product" of my ongoing project for creating a workspace that integrates and controls my MIDI-controlled guitar rack with Usine, I've created a way to set, store and retrieve varying text for interface elements. I've uploaded an example patch in Add-ons/ Others: http://www.sensomusic.com/download.php? ... edText.pat

It's a patch and a script to separate comma delimited texts from List Boxes etc into separate elements and distribute the text to various interface modules. The selected list elements are stored in an array so different texts for different setups can be saved using either the Preset Manager or the Conductor.

Both the way the texts are selected as well as how the values are stored can be done in other ways. The point is that the numbers are stored outside of the script. With a very structured setup, the values could be hardcoded within the script, but the whole idea behind this is to quickly store and change setups.

I call this an "example patch" as I haven't tried at all to make it generic in any way. In fact, I think I end up with another way of doing things in the mentioned above workspace, but the main ingredients are there for the idea to work. If I think up something I find worth sharing when doing the workspace, I'll post it. The bad thing is that my thrusty (15 years?) old Ground Control a couple of days got more than one footswitch in the grave, and I won't receive the replacement (a Boss FC300) until the beginning of April or so. :(

The script isn't perfect and could have been done a bit more tidy, but I didn't think of problems with embedded double qoutes and commas before I had done most of it, and I haven't bothered restructuring it. There is one thing that is not handled: Double quotes at the end of texts. If you want to use that you must add a space at the end of the line in the List Box or whatever you're using for the separating to function properly.

PS: It seems that the FC300 will arrive earlier than anticipated - I just got an e-mail with a delivery confirmation! :) :) :) DS
Bjørn S

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 20 Mar 2009, 12:22

tkx for the addon.

cannot look at the patch right here and dont understand for which needs this patch can be good?
"varying text": ur midi hardware sends strings?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 20 Mar 2009, 20:23

thank you bsork! that's cool to quicly assign names like often use fx,ect

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 20 Mar 2009, 20:43

Thanks! This looks very useful....

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 20 Mar 2009, 22:57

simply brilliant as usual !

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 21 Mar 2009, 09:18

amiga909 wrote:dont understand for which needs this patch can be good?
Good question. I've made it primarily to set and store the prompts of interface modules like switches and faders. I want the workspace (at least the guitar related stuff) to be controlled from a master patch where each footswitch etc will have different duties for each snapshot or preset., and I want it to be relative simple to create and change setups in a rock band rehearsel setting. The interface will in use be 98% controlled by feet, and I'm interested in seeing what each physical switch or pedal is assigned to rather than the patch it's connected to.

Is this a good answer?
Bjørn S

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 21 Mar 2009, 09:29

yes it's a good one bsork ! ;-)

really usefull !

many thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests