Page 1 of 1

Posted: 03 May 2010, 22:48
by 23fx23
just in case it can be easy done,

i figure i wrongly named my busses from start, i got a scrollYneg wich is in fact positive and a scrollY positive.
(totally my fault and not drastic,), as i could go and rename all busses manually I would be afraid to make mistakes,
thought one handy function could be to choose a buss name in a list, and rename all receive buss same named,
a bit like "search and replace" of notepad, (wich also could be handy on script, by the way)... just in case not vital at all..

Posted: 05 May 2010, 01:23
by woodslanding
I am wondering if any of these type of 'search and replace' issues could be managed by editing the .wkp file??

It is in a human readable format, right??

Posted: 05 May 2010, 03:16
by 23fx23
funny i was wondering same, well gonna try!

Posted: 05 May 2010, 16:13
by senso
hard to implement in the general case.
note pad is a good alternative in this case.

Posted: 05 May 2010, 21:42
by 23fx23
so Ive tested the notepad trick on a 834ko complex workspace, worked like a charm, could rename all my busses once, and reopen without pb, good to know, as i guess it will work for other things.:) cool

Posted: 09 May 2010, 06:13
by woodslanding
really??? I've been trying to decypher a simple .pat file, and it is not easy for me.

oh wait--I'm trying to change a bunch of data ins and sends to audio ones (from before there was a difference!) Names are easy to edit, but it seems very hard to figure out and edit the TYPE of object--it looks like it is stored as a 16 digit number, but the same objects have different numbers, so there is obviously other info stored that way.

Any tips?

And to make this into a request ;)

It would be nice to (someday) implement an XML or similar dataformat that would make it possible to build/edit wkps from a text or XML editor.

Thanks!!
-eric

Posted: 09 May 2010, 19:37
by 23fx23
well in my case it was not complex: i had a bus named lv_scroll_Y wich so is very specific, opened the wksp in notepad, search and replaced by lv_scroll_Y_neg, saved and reopened the wksp, maybe more tricky with common name variables...

Posted: 10 May 2010, 06:33
by woodslanding
I figured some stuff out, but it ended up being easier to just rebuild it.... :/

Posted: 10 May 2010, 17:13
by martignasse
Just to mention :
Not all data can be modified with notepad in a workspace or patch.
some are binary or Hexa coded (like presets contents...) and some are just ascii coded (so it's readable and editable).

Just a proposal :
Until the day we can have a format specification of the .wkp and .pat file, it could be good to create a trick and tips page on the wiki for notepad manipulation, with what is working and what is impossible to do.

Posted: 10 May 2010, 18:15
by woodslanding
Well, here's one:

the first 4 digits of the 16 digit code for an object refers to its type.

Maybe somebody has a list?

Good for turning data outs to sends, etc.

Haven't figured out what the other 12 digits are for, but I'm guessing some of them refer to position.

Posted: 10 May 2010, 22:28
by bsork
Hackers paradise? :D

(I have toyed with the idea of a program running through the files to increase/decrease the size of UI objects by X%. Maybe as a way of getting into C++. Haven't done anything concrete with the idea, though...)

Posted: 10 May 2010, 22:47
by nay-seven
a program running through the files to increase/decrease the size of UI objects by X%
whao, that's could be useful ! +1