ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2010-08-17T14:36:45+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/2364 2010-08-17T14:36:45+02:00 2010-08-17T14:36:45+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15225#p15225 <![CDATA[the simplest patch and a question]]> Statistics: Posted by Floego — 17 Aug 2010, 14:36


]]>
2010-08-17T11:17:06+02:00 2010-08-17T11:17:06+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15220#p15220 <![CDATA[the simplest patch and a question]]>
but...i also remember that we have said before that the more wires and connections we use , the more cpu we eat..
and as said Bsork , a simple module like the a+b one can do the job with less cpu
an example here ( and if you use this 2 method in 2 different empty patch you can check the cpu difference )

Image

btw , if we use direct link , this fall to 4 wires , 4 connections....

Statistics: Posted by nay-seven — 17 Aug 2010, 11:17


]]>
2010-08-17T09:57:48+02:00 2010-08-17T09:57:48+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15219#p15219 <![CDATA[the simplest patch and a question]]> can you upload them somewhere..?

Statistics: Posted by nay-seven — 17 Aug 2010, 09:57


]]>
2010-08-17T08:16:30+02:00 2010-08-17T08:16:30+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15218#p15218 <![CDATA[the simplest patch and a question]]> Statistics: Posted by bsork — 17 Aug 2010, 08:16


]]>
2010-08-17T04:00:38+02:00 2010-08-17T04:00:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15217#p15217 <![CDATA[the simplest patch and a question]]>
I compiled the scripts, then used the scripts in the midipadayan patch (only for testing purposes), used the hook patched version too, and compared to the original midipadayan patch. The results are similar between the hook patch version and the script one. See below:

original midipadayan:

Image

now hook patch with midipadayan:

Image


finally hook script with midipadayan:

Image

Statistics: Posted by Floego — 17 Aug 2010, 04:00


]]>
2010-08-17T01:30:34+02:00 2010-08-17T01:30:34+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15216#p15216 <![CDATA[the simplest patch and a question]]>
between they won't react exactly the same: if using wires and some have stop envent flow, they ll be ignored, that won't work
i suppose here,( but a different code could). the advantage here is easy change nb, but ideally a query would be even better,
(also that's quick done to edit constant and reload script). the other difference is naming, but a commatext variable is possible...

now the most interessant question to check still is, wich use more cpu, indeed, ;)

Statistics: Posted by 23fx23 — 17 Aug 2010, 01:30


]]>
2010-08-17T01:12:34+02:00 2010-08-17T01:12:34+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15214#p15214 <![CDATA[the simplest patch and a question]]>
the good question now is : did the script has a low cpu use than a sub-patch...?
( but for n series script is quickest to adapt anyway )

Statistics: Posted by nay-seven — 17 Aug 2010, 01:12


]]>
2010-08-17T00:27:11+02:00 2010-08-17T00:27:11+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15209#p15209 <![CDATA[the simplest patch and a question]]>

CODE:

const nb_inouts = 8;  //define number of in-outputs all picking correponding.////////////////////////////////////////////////////////////////////////////var INPUTS, OUTPUTS &#58; array of Tparameter;var i      &#58; integer;//var valtmp &#58; single;//////////////////////////////////Procedure Init;begin////////////////////////////////////////////////////////////setArrayLength&#40;INPUTS,nb_inouts&#41;;for i&#58;= 0 to nb_inouts-1 do beginINPUTS&#91;i&#93;&#58;=  CreateParam&#40;'Input'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsOutput&#40;INPUTS&#91;i&#93;,false&#41;;end;/////////////////////////////////////////////////////////////////setArrayLength&#40;OUTPUTS,nb_inouts&#41;;for i&#58;= 0 to nb_inouts-1 do beginOUTPUTS&#91;i&#93;&#58;=  CreateParam&#40;'output'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsInput&#40;OUTPUTS&#91;i&#93;,false&#41;;end;end;// init//////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;Beginif n>=0 then beginsetValue&#40;outputs&#91;n&#93;,getValue&#40;inputs&#91;n&#93;&#41;&#41;;end;end;// callback////////////////////////////////////////

Statistics: Posted by 23fx23 — 17 Aug 2010, 00:27


]]>
2010-08-17T00:13:35+02:00 2010-08-17T00:13:35+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15208#p15208 <![CDATA[the simplest patch and a question]]>

CODE:

const nb_outs = 8;  //define number of outputs all picking input.////////////////////////////////////////////////////////////////////////////var OUTPUTS &#58; array of Tparameter;var input &#58; tparameter;var i      &#58; integer;var valtmp &#58; single;//////////////////////////////////Procedure Init;begin////////////////////////////////////////////////////////////input&#58;= createParam&#40;'input',Ptdatafield&#41;; setisOutput&#40;input,false&#41;;/////////////////////////////////////////////////////////////////setArrayLength&#40;OUTPUTS,nb_outs&#41;;for i&#58;= 0 to nb_outs-1 do beginOUTPUTS&#91;i&#93;&#58;=  CreateParam&#40;'output'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsInput&#40;OUTPUTS&#91;i&#93;,false&#41;;end;valtmp&#58;=0;end;// init//////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;Beginif n>=0 then beginvaltmp&#58;= getValue&#40;input&#41;;for i&#58;= 0 to nb_outs-1 do beginsetValue&#40;outputs&#91;i&#93;,valtmp&#41;;end;end;end;// callback////////////////////////////////////////

Statistics: Posted by 23fx23 — 17 Aug 2010, 00:13


]]>
2010-08-17T00:04:51+02:00 2010-08-17T00:04:51+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15206#p15206 <![CDATA[the simplest patch and a question]]> if i well understood booth input should be added to output.?

also the code with is based ond an old one use process, mean it process constantly,
in this case better use callback that will process only on changes.

here is a code example for N inputs to one output using callback can edit the constant.

CODE:

const nb_ins = 8;  //define number of inputs all going to output.&#40;summed&#41;.////////////////////////////////////////////////////////////////////////////var INPUTS &#58; array of Tparameter;var output &#58; tparameter;var i      &#58; integer;var valtmp &#58; single;//////////////////////////////////Procedure Init;beginsetArrayLength&#40;INPUTS,nb_ins&#41;;for i&#58;= 0 to nb_ins-1 do beginINPUTS&#91;i&#93;&#58;=  CreateParam&#40;'input'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsOutput&#40;INPUTS&#91;i&#93;,false&#41;;end;////////////////////////////////////////////////////////////output&#58;= createParam&#40;'output',Ptdatafield&#41;; setisInput&#40;output,false&#41;;valtmp&#58;=0;end;// init//////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;Beginif n>=0 then beginvaltmp&#58;= getValue&#40;inputs&#91;0&#93;&#41;;for i&#58;= 1 to nb_ins-1 do beginvaltmp&#58;= valtmp + getValue&#40;Inputs&#91;i&#93;&#41;;end;setValue&#40;output,valtmp&#41;;end;end;// callback////////////////////////////////////////

Statistics: Posted by 23fx23 — 17 Aug 2010, 00:04


]]>
2010-08-16T21:53:30+02:00 2010-08-16T21:53:30+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15202#p15202 <![CDATA[the simplest patch and a question]]> there's an example named 1 In 1 Out Example.script
you could easily adapt them i think
for example for a 1 input , 2 output :

CODE:

//////////////////////////////////////////////////////// Script example // one Input, 2 output// set the input value to the 2 output value// &#40;data thru&#41;////////////////////////////////////////////////////////////////////////////////////////////////////////////// Paramters declaration//////////////////////////////////////////////////////var input &#58; Tparameter;var output&#58; Tparameter;var output2&#58; Tparameter;//////////////////////////////////////////////////////// initialisation procedure//////////////////////////////////////////////////////procedure init;begin   input &#58;= CreateParam&#40;'input',ptDatafader&#41;; SetIsOutput&#40;input,false&#41;; SetMin&#40;input,0&#41;; SetMax&#40;input,100&#41;; SetSymbol&#40;input,'%'&#41;; SetDefaultValue&#40;input,10&#41;; SetValue&#40;input,10&#41;; output &#58;= CreateParam&#40;'output',ptDataFader &#41;; SetIsInput&#40;output,false&#41;; SetMin&#40;output,0&#41;; SetMax&#40;output,100&#41;; SetSymbol&#40;output,'%'&#41;; SetDefaultValue&#40;output,10&#41;; output2 &#58;= CreateParam&#40;'output2',ptDataFader &#41;; SetIsInput&#40;output2,false&#41;; SetMin&#40;output2,0&#41;; SetMax&#40;output2,100&#41;; SetSymbol&#40;output2,'%'&#41;; SetDefaultValue&#40;output2,10&#41;;end;// Global Variablesvar inval &#58; single;//////////////////////////////////////////////////////// Main Loop procedure//////////////////////////////////////////////////////Procedure Process;begin inval &#58;= getValue&#40;input&#41;; setvalue&#40;output,inval&#41;; setvalue&#40;output2,inval&#41;;end;
or for a 2 inputs to a 1 output :

CODE:

//////////////////////////////////////////////////////// Script example // 2 Inputs, one output// set the input value to the output value// &#40;data thru&#41;////////////////////////////////////////////////////////////////////////////////////////////////////////////// Paramters declaration//////////////////////////////////////////////////////var input &#58; Tparameter;var input2 &#58; Tparameter;var output&#58; Tparameter;//////////////////////////////////////////////////////// initialisation procedure//////////////////////////////////////////////////////procedure init;begin   input &#58;= CreateParam&#40;'input',ptDatafader&#41;; SetIsOutput&#40;input,false&#41;; SetMin&#40;input,0&#41;; SetMax&#40;input,100&#41;; SetSymbol&#40;input,'%'&#41;; SetDefaultValue&#40;input,10&#41;; SetValue&#40;input,10&#41;; input2 &#58;= CreateParam&#40;'input2',ptDatafader&#41;; SetIsOutput&#40;input2,false&#41;; SetMin&#40;input2,0&#41;; SetMax&#40;input2,100&#41;; SetSymbol&#40;input2,'%'&#41;; SetDefaultValue&#40;input2,10&#41;; SetValue&#40;input2,10&#41;; output &#58;= CreateParam&#40;'output',ptDataFader &#41;; SetIsInput&#40;output,false&#41;; SetMin&#40;output,0&#41;; SetMax&#40;output,100&#41;; SetSymbol&#40;output,'%'&#41;; SetDefaultValue&#40;output,10&#41;;end;// Global Variablesvar inval &#58; single;//////////////////////////////////////////////////////// Main Loop procedure//////////////////////////////////////////////////////Procedure Process;begin inval &#58;= getValue&#40;input&#41;; setvalue&#40;output,inval&#41;; inval &#58;= getValue&#40;input2&#41;; setvalue&#40;output,inval&#41;;end;

Statistics: Posted by nay-seven — 16 Aug 2010, 21:53


]]>
2010-08-16T21:40:27+02:00 2010-08-16T21:40:27+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15201#p15201 <![CDATA[the simplest patch and a question]]>
about wirebox, i prefer to connect many wire one one output.

anyway...
they could be good candidates for some user modules (with the query system, ask for how many how many inlet/outlet)
or just be part of everyone patch library for convenience.

but for sure, those are very useful, for wiring or visual reason.

Statistics: Posted by martignasse — 16 Aug 2010, 21:40


]]>
2010-08-16T20:43:15+02:00 2010-08-16T20:43:15+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15200#p15200 <![CDATA[the simplest patch and a question]]>
Image

They are the simplest patches (only wires) but it may be very useful, surely many of Usine users have already created them into their patches. They consume very little resources.

Wirebox makes easy to connect/disconnect wires on an heavy populated single inlet/outlet.

The hook patch helps to keep right angle wires and avoid long diagonal lines (for people like me with heavy astigmatism it could help).


Maybe they could be fusioned into just one or two?. Or should they ask at loading about the number of inlet/outlet?.

Statistics: Posted by Floego — 16 Aug 2010, 20:43


]]>
BrainModular BrainModular Users Forum 2010-08-17T14:36:45+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/2364 2010-08-17T14:36:45+02:00 2010-08-17T14:36:45+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15225#p15225 <![CDATA[the simplest patch and a question]]> Statistics: Posted by Floego — 17 Aug 2010, 14:36


]]>
2010-08-17T11:17:06+02:00 2010-08-17T11:17:06+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15220#p15220 <![CDATA[the simplest patch and a question]]>
but...i also remember that we have said before that the more wires and connections we use , the more cpu we eat..
and as said Bsork , a simple module like the a+b one can do the job with less cpu
an example here ( and if you use this 2 method in 2 different empty patch you can check the cpu difference )

Image

btw , if we use direct link , this fall to 4 wires , 4 connections....

Statistics: Posted by nay-seven — 17 Aug 2010, 11:17


]]>
2010-08-17T09:57:48+02:00 2010-08-17T09:57:48+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15219#p15219 <![CDATA[the simplest patch and a question]]> can you upload them somewhere..?

Statistics: Posted by nay-seven — 17 Aug 2010, 09:57


]]>
2010-08-17T08:16:30+02:00 2010-08-17T08:16:30+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15218#p15218 <![CDATA[the simplest patch and a question]]> Statistics: Posted by bsork — 17 Aug 2010, 08:16


]]>
2010-08-17T04:00:38+02:00 2010-08-17T04:00:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15217#p15217 <![CDATA[the simplest patch and a question]]>
I compiled the scripts, then used the scripts in the midipadayan patch (only for testing purposes), used the hook patched version too, and compared to the original midipadayan patch. The results are similar between the hook patch version and the script one. See below:

original midipadayan:

Image

now hook patch with midipadayan:

Image


finally hook script with midipadayan:

Image

Statistics: Posted by Floego — 17 Aug 2010, 04:00


]]>
2010-08-17T01:30:34+02:00 2010-08-17T01:30:34+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15216#p15216 <![CDATA[the simplest patch and a question]]>
between they won't react exactly the same: if using wires and some have stop envent flow, they ll be ignored, that won't work
i suppose here,( but a different code could). the advantage here is easy change nb, but ideally a query would be even better,
(also that's quick done to edit constant and reload script). the other difference is naming, but a commatext variable is possible...

now the most interessant question to check still is, wich use more cpu, indeed, ;)

Statistics: Posted by 23fx23 — 17 Aug 2010, 01:30


]]>
2010-08-17T01:12:34+02:00 2010-08-17T01:12:34+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15214#p15214 <![CDATA[the simplest patch and a question]]>
the good question now is : did the script has a low cpu use than a sub-patch...?
( but for n series script is quickest to adapt anyway )

Statistics: Posted by nay-seven — 17 Aug 2010, 01:12


]]>
2010-08-17T00:27:11+02:00 2010-08-17T00:27:11+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15209#p15209 <![CDATA[the simplest patch and a question]]>

CODE:

const nb_inouts = 8;  //define number of in-outputs all picking correponding.////////////////////////////////////////////////////////////////////////////var INPUTS, OUTPUTS &#58; array of Tparameter;var i      &#58; integer;//var valtmp &#58; single;//////////////////////////////////Procedure Init;begin////////////////////////////////////////////////////////////setArrayLength&#40;INPUTS,nb_inouts&#41;;for i&#58;= 0 to nb_inouts-1 do beginINPUTS&#91;i&#93;&#58;=  CreateParam&#40;'Input'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsOutput&#40;INPUTS&#91;i&#93;,false&#41;;end;/////////////////////////////////////////////////////////////////setArrayLength&#40;OUTPUTS,nb_inouts&#41;;for i&#58;= 0 to nb_inouts-1 do beginOUTPUTS&#91;i&#93;&#58;=  CreateParam&#40;'output'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsInput&#40;OUTPUTS&#91;i&#93;,false&#41;;end;end;// init//////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;Beginif n>=0 then beginsetValue&#40;outputs&#91;n&#93;,getValue&#40;inputs&#91;n&#93;&#41;&#41;;end;end;// callback////////////////////////////////////////

Statistics: Posted by 23fx23 — 17 Aug 2010, 00:27


]]>
2010-08-17T00:13:35+02:00 2010-08-17T00:13:35+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15208#p15208 <![CDATA[the simplest patch and a question]]>

CODE:

const nb_outs = 8;  //define number of outputs all picking input.////////////////////////////////////////////////////////////////////////////var OUTPUTS &#58; array of Tparameter;var input &#58; tparameter;var i      &#58; integer;var valtmp &#58; single;//////////////////////////////////Procedure Init;begin////////////////////////////////////////////////////////////input&#58;= createParam&#40;'input',Ptdatafield&#41;; setisOutput&#40;input,false&#41;;/////////////////////////////////////////////////////////////////setArrayLength&#40;OUTPUTS,nb_outs&#41;;for i&#58;= 0 to nb_outs-1 do beginOUTPUTS&#91;i&#93;&#58;=  CreateParam&#40;'output'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsInput&#40;OUTPUTS&#91;i&#93;,false&#41;;end;valtmp&#58;=0;end;// init//////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;Beginif n>=0 then beginvaltmp&#58;= getValue&#40;input&#41;;for i&#58;= 0 to nb_outs-1 do beginsetValue&#40;outputs&#91;i&#93;,valtmp&#41;;end;end;end;// callback////////////////////////////////////////

Statistics: Posted by 23fx23 — 17 Aug 2010, 00:13


]]>
2010-08-17T00:04:51+02:00 2010-08-17T00:04:51+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15206#p15206 <![CDATA[the simplest patch and a question]]> if i well understood booth input should be added to output.?

also the code with is based ond an old one use process, mean it process constantly,
in this case better use callback that will process only on changes.

here is a code example for N inputs to one output using callback can edit the constant.

CODE:

const nb_ins = 8;  //define number of inputs all going to output.&#40;summed&#41;.////////////////////////////////////////////////////////////////////////////var INPUTS &#58; array of Tparameter;var output &#58; tparameter;var i      &#58; integer;var valtmp &#58; single;//////////////////////////////////Procedure Init;beginsetArrayLength&#40;INPUTS,nb_ins&#41;;for i&#58;= 0 to nb_ins-1 do beginINPUTS&#91;i&#93;&#58;=  CreateParam&#40;'input'+IntToStr&#40;i&#41;,PtDataField&#41;;  SetIsOutput&#40;INPUTS&#91;i&#93;,false&#41;;end;////////////////////////////////////////////////////////////output&#58;= createParam&#40;'output',Ptdatafield&#41;; setisInput&#40;output,false&#41;;valtmp&#58;=0;end;// init//////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;Beginif n>=0 then beginvaltmp&#58;= getValue&#40;inputs&#91;0&#93;&#41;;for i&#58;= 1 to nb_ins-1 do beginvaltmp&#58;= valtmp + getValue&#40;Inputs&#91;i&#93;&#41;;end;setValue&#40;output,valtmp&#41;;end;end;// callback////////////////////////////////////////

Statistics: Posted by 23fx23 — 17 Aug 2010, 00:04


]]>
2010-08-16T21:53:30+02:00 2010-08-16T21:53:30+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15202#p15202 <![CDATA[the simplest patch and a question]]> there's an example named 1 In 1 Out Example.script
you could easily adapt them i think
for example for a 1 input , 2 output :

CODE:

//////////////////////////////////////////////////////// Script example // one Input, 2 output// set the input value to the 2 output value// &#40;data thru&#41;////////////////////////////////////////////////////////////////////////////////////////////////////////////// Paramters declaration//////////////////////////////////////////////////////var input &#58; Tparameter;var output&#58; Tparameter;var output2&#58; Tparameter;//////////////////////////////////////////////////////// initialisation procedure//////////////////////////////////////////////////////procedure init;begin   input &#58;= CreateParam&#40;'input',ptDatafader&#41;; SetIsOutput&#40;input,false&#41;; SetMin&#40;input,0&#41;; SetMax&#40;input,100&#41;; SetSymbol&#40;input,'%'&#41;; SetDefaultValue&#40;input,10&#41;; SetValue&#40;input,10&#41;; output &#58;= CreateParam&#40;'output',ptDataFader &#41;; SetIsInput&#40;output,false&#41;; SetMin&#40;output,0&#41;; SetMax&#40;output,100&#41;; SetSymbol&#40;output,'%'&#41;; SetDefaultValue&#40;output,10&#41;; output2 &#58;= CreateParam&#40;'output2',ptDataFader &#41;; SetIsInput&#40;output2,false&#41;; SetMin&#40;output2,0&#41;; SetMax&#40;output2,100&#41;; SetSymbol&#40;output2,'%'&#41;; SetDefaultValue&#40;output2,10&#41;;end;// Global Variablesvar inval &#58; single;//////////////////////////////////////////////////////// Main Loop procedure//////////////////////////////////////////////////////Procedure Process;begin inval &#58;= getValue&#40;input&#41;; setvalue&#40;output,inval&#41;; setvalue&#40;output2,inval&#41;;end;
or for a 2 inputs to a 1 output :

CODE:

//////////////////////////////////////////////////////// Script example // 2 Inputs, one output// set the input value to the output value// &#40;data thru&#41;////////////////////////////////////////////////////////////////////////////////////////////////////////////// Paramters declaration//////////////////////////////////////////////////////var input &#58; Tparameter;var input2 &#58; Tparameter;var output&#58; Tparameter;//////////////////////////////////////////////////////// initialisation procedure//////////////////////////////////////////////////////procedure init;begin   input &#58;= CreateParam&#40;'input',ptDatafader&#41;; SetIsOutput&#40;input,false&#41;; SetMin&#40;input,0&#41;; SetMax&#40;input,100&#41;; SetSymbol&#40;input,'%'&#41;; SetDefaultValue&#40;input,10&#41;; SetValue&#40;input,10&#41;; input2 &#58;= CreateParam&#40;'input2',ptDatafader&#41;; SetIsOutput&#40;input2,false&#41;; SetMin&#40;input2,0&#41;; SetMax&#40;input2,100&#41;; SetSymbol&#40;input2,'%'&#41;; SetDefaultValue&#40;input2,10&#41;; SetValue&#40;input2,10&#41;; output &#58;= CreateParam&#40;'output',ptDataFader &#41;; SetIsInput&#40;output,false&#41;; SetMin&#40;output,0&#41;; SetMax&#40;output,100&#41;; SetSymbol&#40;output,'%'&#41;; SetDefaultValue&#40;output,10&#41;;end;// Global Variablesvar inval &#58; single;//////////////////////////////////////////////////////// Main Loop procedure//////////////////////////////////////////////////////Procedure Process;begin inval &#58;= getValue&#40;input&#41;; setvalue&#40;output,inval&#41;; inval &#58;= getValue&#40;input2&#41;; setvalue&#40;output,inval&#41;;end;

Statistics: Posted by nay-seven — 16 Aug 2010, 21:53


]]>
2010-08-16T21:40:27+02:00 2010-08-16T21:40:27+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15201#p15201 <![CDATA[the simplest patch and a question]]>
about wirebox, i prefer to connect many wire one one output.

anyway...
they could be good candidates for some user modules (with the query system, ask for how many how many inlet/outlet)
or just be part of everyone patch library for convenience.

but for sure, those are very useful, for wiring or visual reason.

Statistics: Posted by martignasse — 16 Aug 2010, 21:40


]]>
2010-08-16T20:43:15+02:00 2010-08-16T20:43:15+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=2364&p=15200#p15200 <![CDATA[the simplest patch and a question]]>
Image

They are the simplest patches (only wires) but it may be very useful, surely many of Usine users have already created them into their patches. They consume very little resources.

Wirebox makes easy to connect/disconnect wires on an heavy populated single inlet/outlet.

The hook patch helps to keep right angle wires and avoid long diagonal lines (for people like me with heavy astigmatism it could help).


Maybe they could be fusioned into just one or two?. Or should they ask at loading about the number of inlet/outlet?.

Statistics: Posted by Floego — 16 Aug 2010, 20:43


]]>