ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2013-04-30T15:50:16+02:00 https://brainmodular.com/forums/app.php/feed/topic/3768 2013-04-30T15:50:16+02:00 2013-04-30T15:50:16+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26026#p26026 <![CDATA[preset manager]]> new file uploaded

Statistics: Posted by Fléau — 30 Apr 2013, 15:50


]]>
2013-04-30T11:11:52+02:00 2013-04-30T11:11:52+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26024#p26024 <![CDATA[preset manager]]> http://www.sensomusic.com/forums/upload ... anager.pat

1st step:
open the patch
open a subpatch/vst slot
Image


2nd step:
open a vst and wire it like that:
Image


3rd step:
first time use of a vst
select your vst slot in the first left listbox
click the 'add' button
click the 'show vst' button
edit your vst
click the 'update' button
Image


add preset of different vst and tags,
now you can sort your preset by tag.

Statistics: Posted by Fléau — 30 Apr 2013, 11:11


]]>
2013-04-27T12:24:35+02:00 2013-04-27T12:24:35+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26009#p26009 <![CDATA[preset manager]]> Right now, my idea is to build a Markov chain Midi generator.
I also have to select items out of a ommatext. So I can use it also for myself...

Statistics: Posted by percuson — 27 Apr 2013, 12:24


]]>
2013-04-27T10:14:54+02:00 2013-04-27T10:14:54+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26005#p26005 <![CDATA[preset manager]]> it seems to work perfectly,
thank you!
i have tons of things to do until next week, so i will patch it slowly,
will keep you informed as soon as possible.

edit: the 'no selected items' function is great
i don't have to patch the 'no matches' function in case there is no preset corresponding to tags

Statistics: Posted by Fléau — 27 Apr 2013, 10:14


]]>
2013-04-26T18:32:26+02:00 2013-04-26T18:32:26+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26004#p26004 <![CDATA[preset manager]]>
I skipped some other things to finish it fast...

Skript: Select Commatext by Array

I hope, you'll be lucky with it!
And also that it really works...

Statistics: Posted by percuson — 26 Apr 2013, 18:32


]]>
2013-04-26T17:30:47+02:00 2013-04-26T17:30:47+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26003#p26003 <![CDATA[preset manager]]> take your time,
i'm only at the first stage: planning and thinking about the better solution.

Statistics: Posted by Fléau — 26 Apr 2013, 17:30


]]>
2013-04-26T17:21:42+02:00 2013-04-26T17:21:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26002#p26002 <![CDATA[preset manager]]> I don't have such a script, but I didn't have enaough time to finish it...
S if you could wait for a couple of hours, I'll finish it, when I'm back home tonight!

Statistics: Posted by percuson — 26 Apr 2013, 17:21


]]>
2013-04-26T16:23:53+02:00 2013-04-26T16:23:53+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26001#p26001 <![CDATA[preset manager]]> ideally: a listbox input, an array input and a list box output.
for example:
listbox input is:
a,b,c,d,e,f,g,h,i,j,etc
array input is:
0,1,3,6,8
result is:
a,b,d,g,i

with this it will be very easy to add 'tag' to each preset and filter them.

Statistics: Posted by Fléau — 26 Apr 2013, 16:23


]]>
2013-04-26T15:33:22+02:00 2013-04-26T15:33:22+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26000#p26000 <![CDATA[preset manager]]> But what do you want the script to do exactly? Give me an example of the inputs and outputs, please!

Statistics: Posted by percuson — 26 Apr 2013, 15:33


]]>
2013-04-26T13:10:27+02:00 2013-04-26T13:10:27+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=25999#p25999 <![CDATA[preset manager]]> but i need some quick help from a script guru
this script output x textout
and i'd like to have a concatened commatext of each output.
could someone help me?

CODE:

&#40;**************************************************************************************  Gets a comma separated list and outputs ARR_SIZE text fields.   The selected list items &#40;or rather their numbers&#41; are stored in an array which is   saved by the Preset Manager and the Conductor.  bSork, March 2009***************************************************************************************&#41;CONST ARR_SIZE = 4; // Also update the ARR_SIZE constant module if this is changed.CONST MAX_NUM = 1024; // This is the max number of elements in the list. Increase this                    // when needed, or - with a shorter list - reduce the size to save                     // some CPU cycles.VAR pUpd    &#58; Tparameter;VAR pList   &#58; Tparameter;VAR pNumArr &#58; Tparameter;VAR pNum    &#58; Tparameter;VAR pOut  &#58; ARRAY OF Tparameter;VAR i, j, len, num  &#58; INTEGER;VAR s, c, d, t      &#58; STRING;VAR list            &#58; ARRAY OF STRING;VAR withinQuotes, quote&#58; BOOLEAN;PROCEDURE init;BEGIN    pUpd &#58;= CreateParam&#40;'update', ptButton&#41;; SetIsOutPut&#40;pUpd, FALSE&#41;;  pList &#58;= CreateParam&#40;'sep list in', ptTextField&#41;; SetIsOutput&#40;pList, FALSE&#41;;  pNumArr &#58;= CreateParam&#40;'selected elements', ptArray&#41;; SetIsOutput&#40;pNumArr, FALSE&#41;;  pNum &#58;= CreateParam&#40;'num elements', ptDataField&#41;; SetIsInput&#40;pNum, FALSE&#41;;  SetMin&#40;pNum, 0&#41;; SetMax&#40;pNum, 100&#41;; SetFormat&#40;pNum, '%0.f'&#41;;  SetArrayLength&#40;pOut, ARR_SIZE&#41;;  FOR i &#58;= 0 TO &#40;ARR_SIZE -1&#41; DO BEGIN     pOut&#91;i&#93; &#58;= CreateParam&#40;'text out ' + IntToStr&#40;i + 1&#41;, ptTextField&#41;;     SetIsInput&#40;pOut&#91;i&#93;, FALSE&#41;;  END;  SetArrayLength&#40;list, MAX_NUM&#41;;END;// mainBEGIN   IF &#40;GetValue&#40;pUpd&#41; <> 0&#41; THEN BEGIN      withinQuotes &#58;= FALSE;      quote &#58;= FALSE;      num &#58;= 0;      t &#58;= '';      s &#58;= GetStringValue&#40;pList&#41;;      len &#58;= Length&#40;s&#41;;      //writeln&#40;s&#41;;      FOR i &#58;= 1 TO len DO BEGIN         c &#58;= Copy&#40;s, i, 1&#41;;         IF &#40;i < len&#41; THEN BEGIN            d &#58;= Copy&#40;s, i + 1, 1&#41;;         END         ELSE BEGIN            d &#58;= 'TheEndIsNigh!!!!';         END;         IF &#40;&#40;c = '"'&#41; AND &#40;d = '"'&#41;&#41; THEN BEGIN            quote &#58;= TRUE;            t &#58;= t + c;         END         ELSE IF &#40;&#40;c = '"'&#41; AND quote&#41; THEN BEGIN            quote &#58;= FALSE;         END         ELSE IF &#40;c = '"'&#41; THEN BEGIN            withinQuotes &#58;= NOT &#40;withinQuotes&#41;;         END         ELSE BEGIN            IF &#40;&#40;c = ','&#41; AND NOT withinQuotes&#41; THEN BEGIN               list&#91;num&#93; &#58;= t;               num &#58;= num + 1;               t &#58;= '';            END            ELSE BEGIN               t &#58;= t + c;            END;         END;      END;      IF &#40;Length&#40;t&#41; > 0&#41; THEN BEGIN         list&#91;num&#93; &#58;= t;         num &#58;= num + 1;      END;              FOR i &#58;= num TO &#40;MAX_NUM - 1&#41; DO BEGIN         list&#91;i&#93; &#58;= '';      END;      FOR i &#58;= 0 TO &#40;ARR_SIZE - 1&#41; DO BEGIN         j &#58;= trunc&#40;GetDataArrayValue&#40;pNumArr, i&#41;&#41;;         t &#58;= list&#91;j&#93;;         SetStringValue&#40;pOut&#91;i&#93;, t&#41;;      END;      SetValue&#40;pUpd, 0&#41;;      SetValue&#40;pNum, num&#41;;   END;END.

Statistics: Posted by Fléau — 26 Apr 2013, 13:10


]]>
2013-04-26T10:58:03+02:00 2013-04-26T10:58:03+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=25995#p25995 <![CDATA[preset manager]]> i'm about to patch a preset manager,
i actually use a 1024 matrixcombobox with 10 vst
but it begin to be dirty and muddled.
my idea is to make someting like bigtick zen with more than 128 slot
zen webpage
i want to be able to sort preset by synth/instrument/genre.
for the moment i'm only thinking howto.
any idea are welcome.

i may have found a way to do it,
but the resulting listbox is a list of number (0 to x)
i'd like to sort the 1024 listbox and dynamically make a new one.

edit: if only i had a 'commatext to array' and an 'array to commatext'...

Statistics: Posted by Fléau — 26 Apr 2013, 10:58


]]>
BrainModular BrainModular Users Forum 2013-04-30T15:50:16+02:00 https://brainmodular.com/forums/app.php/feed/topic/3768 2013-04-30T15:50:16+02:00 2013-04-30T15:50:16+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26026#p26026 <![CDATA[preset manager]]> new file uploaded

Statistics: Posted by Fléau — 30 Apr 2013, 15:50


]]>
2013-04-30T11:11:52+02:00 2013-04-30T11:11:52+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26024#p26024 <![CDATA[preset manager]]> http://www.sensomusic.com/forums/upload ... anager.pat

1st step:
open the patch
open a subpatch/vst slot
Image


2nd step:
open a vst and wire it like that:
Image


3rd step:
first time use of a vst
select your vst slot in the first left listbox
click the 'add' button
click the 'show vst' button
edit your vst
click the 'update' button
Image


add preset of different vst and tags,
now you can sort your preset by tag.

Statistics: Posted by Fléau — 30 Apr 2013, 11:11


]]>
2013-04-27T12:24:35+02:00 2013-04-27T12:24:35+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26009#p26009 <![CDATA[preset manager]]> Right now, my idea is to build a Markov chain Midi generator.
I also have to select items out of a ommatext. So I can use it also for myself...

Statistics: Posted by percuson — 27 Apr 2013, 12:24


]]>
2013-04-27T10:14:54+02:00 2013-04-27T10:14:54+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26005#p26005 <![CDATA[preset manager]]> it seems to work perfectly,
thank you!
i have tons of things to do until next week, so i will patch it slowly,
will keep you informed as soon as possible.

edit: the 'no selected items' function is great
i don't have to patch the 'no matches' function in case there is no preset corresponding to tags

Statistics: Posted by Fléau — 27 Apr 2013, 10:14


]]>
2013-04-26T18:32:26+02:00 2013-04-26T18:32:26+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26004#p26004 <![CDATA[preset manager]]>
I skipped some other things to finish it fast...

Skript: Select Commatext by Array

I hope, you'll be lucky with it!
And also that it really works...

Statistics: Posted by percuson — 26 Apr 2013, 18:32


]]>
2013-04-26T17:30:47+02:00 2013-04-26T17:30:47+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26003#p26003 <![CDATA[preset manager]]> take your time,
i'm only at the first stage: planning and thinking about the better solution.

Statistics: Posted by Fléau — 26 Apr 2013, 17:30


]]>
2013-04-26T17:21:42+02:00 2013-04-26T17:21:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26002#p26002 <![CDATA[preset manager]]> I don't have such a script, but I didn't have enaough time to finish it...
S if you could wait for a couple of hours, I'll finish it, when I'm back home tonight!

Statistics: Posted by percuson — 26 Apr 2013, 17:21


]]>
2013-04-26T16:23:53+02:00 2013-04-26T16:23:53+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26001#p26001 <![CDATA[preset manager]]> ideally: a listbox input, an array input and a list box output.
for example:
listbox input is:
a,b,c,d,e,f,g,h,i,j,etc
array input is:
0,1,3,6,8
result is:
a,b,d,g,i

with this it will be very easy to add 'tag' to each preset and filter them.

Statistics: Posted by Fléau — 26 Apr 2013, 16:23


]]>
2013-04-26T15:33:22+02:00 2013-04-26T15:33:22+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=26000#p26000 <![CDATA[preset manager]]> But what do you want the script to do exactly? Give me an example of the inputs and outputs, please!

Statistics: Posted by percuson — 26 Apr 2013, 15:33


]]>
2013-04-26T13:10:27+02:00 2013-04-26T13:10:27+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=25999#p25999 <![CDATA[preset manager]]> but i need some quick help from a script guru
this script output x textout
and i'd like to have a concatened commatext of each output.
could someone help me?

CODE:

&#40;**************************************************************************************  Gets a comma separated list and outputs ARR_SIZE text fields.   The selected list items &#40;or rather their numbers&#41; are stored in an array which is   saved by the Preset Manager and the Conductor.  bSork, March 2009***************************************************************************************&#41;CONST ARR_SIZE = 4; // Also update the ARR_SIZE constant module if this is changed.CONST MAX_NUM = 1024; // This is the max number of elements in the list. Increase this                    // when needed, or - with a shorter list - reduce the size to save                     // some CPU cycles.VAR pUpd    &#58; Tparameter;VAR pList   &#58; Tparameter;VAR pNumArr &#58; Tparameter;VAR pNum    &#58; Tparameter;VAR pOut  &#58; ARRAY OF Tparameter;VAR i, j, len, num  &#58; INTEGER;VAR s, c, d, t      &#58; STRING;VAR list            &#58; ARRAY OF STRING;VAR withinQuotes, quote&#58; BOOLEAN;PROCEDURE init;BEGIN    pUpd &#58;= CreateParam&#40;'update', ptButton&#41;; SetIsOutPut&#40;pUpd, FALSE&#41;;  pList &#58;= CreateParam&#40;'sep list in', ptTextField&#41;; SetIsOutput&#40;pList, FALSE&#41;;  pNumArr &#58;= CreateParam&#40;'selected elements', ptArray&#41;; SetIsOutput&#40;pNumArr, FALSE&#41;;  pNum &#58;= CreateParam&#40;'num elements', ptDataField&#41;; SetIsInput&#40;pNum, FALSE&#41;;  SetMin&#40;pNum, 0&#41;; SetMax&#40;pNum, 100&#41;; SetFormat&#40;pNum, '%0.f'&#41;;  SetArrayLength&#40;pOut, ARR_SIZE&#41;;  FOR i &#58;= 0 TO &#40;ARR_SIZE -1&#41; DO BEGIN     pOut&#91;i&#93; &#58;= CreateParam&#40;'text out ' + IntToStr&#40;i + 1&#41;, ptTextField&#41;;     SetIsInput&#40;pOut&#91;i&#93;, FALSE&#41;;  END;  SetArrayLength&#40;list, MAX_NUM&#41;;END;// mainBEGIN   IF &#40;GetValue&#40;pUpd&#41; <> 0&#41; THEN BEGIN      withinQuotes &#58;= FALSE;      quote &#58;= FALSE;      num &#58;= 0;      t &#58;= '';      s &#58;= GetStringValue&#40;pList&#41;;      len &#58;= Length&#40;s&#41;;      //writeln&#40;s&#41;;      FOR i &#58;= 1 TO len DO BEGIN         c &#58;= Copy&#40;s, i, 1&#41;;         IF &#40;i < len&#41; THEN BEGIN            d &#58;= Copy&#40;s, i + 1, 1&#41;;         END         ELSE BEGIN            d &#58;= 'TheEndIsNigh!!!!';         END;         IF &#40;&#40;c = '"'&#41; AND &#40;d = '"'&#41;&#41; THEN BEGIN            quote &#58;= TRUE;            t &#58;= t + c;         END         ELSE IF &#40;&#40;c = '"'&#41; AND quote&#41; THEN BEGIN            quote &#58;= FALSE;         END         ELSE IF &#40;c = '"'&#41; THEN BEGIN            withinQuotes &#58;= NOT &#40;withinQuotes&#41;;         END         ELSE BEGIN            IF &#40;&#40;c = ','&#41; AND NOT withinQuotes&#41; THEN BEGIN               list&#91;num&#93; &#58;= t;               num &#58;= num + 1;               t &#58;= '';            END            ELSE BEGIN               t &#58;= t + c;            END;         END;      END;      IF &#40;Length&#40;t&#41; > 0&#41; THEN BEGIN         list&#91;num&#93; &#58;= t;         num &#58;= num + 1;      END;              FOR i &#58;= num TO &#40;MAX_NUM - 1&#41; DO BEGIN         list&#91;i&#93; &#58;= '';      END;      FOR i &#58;= 0 TO &#40;ARR_SIZE - 1&#41; DO BEGIN         j &#58;= trunc&#40;GetDataArrayValue&#40;pNumArr, i&#41;&#41;;         t &#58;= list&#91;j&#93;;         SetStringValue&#40;pOut&#91;i&#93;, t&#41;;      END;      SetValue&#40;pUpd, 0&#41;;      SetValue&#40;pNum, num&#41;;   END;END.

Statistics: Posted by Fléau — 26 Apr 2013, 13:10


]]>
2013-04-26T10:58:03+02:00 2013-04-26T10:58:03+02:00 https://brainmodular.com/forums/viewtopic.php?t=3768&p=25995#p25995 <![CDATA[preset manager]]> i'm about to patch a preset manager,
i actually use a 1024 matrixcombobox with 10 vst
but it begin to be dirty and muddled.
my idea is to make someting like bigtick zen with more than 128 slot
zen webpage
i want to be able to sort preset by synth/instrument/genre.
for the moment i'm only thinking howto.
any idea are welcome.

i may have found a way to do it,
but the resulting listbox is a list of number (0 to x)
i'd like to sort the 1024 listbox and dynamically make a new one.

edit: if only i had a 'commatext to array' and an 'array to commatext'...

Statistics: Posted by Fléau — 26 Apr 2013, 10:58


]]>