ArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-11-24T10:15:23+02:00 https://brainmodular.fr/forums/app.php/feed/topic/4600 2014-11-24T10:15:23+02:00 2014-11-24T10:15:23+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30775#p30775 <![CDATA[mapper curve module with bell shape]]> Statistics: Posted by senso — 24 Nov 2014, 09:15


]]>
2014-11-22T11:20:54+02:00 2014-11-22T11:20:54+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30748#p30748 <![CDATA[mapper curve module with bell shape]]>

CODE:

//////////////////////////////////////////////////////// bipolar bell shape////////////////////////////////////////////////////////////////////////////////////////////////////////////// Paramters declaration//////////////////////////////////////////////////////var input, tau, mu &#58; Tparameter;var output&#58; Tparameter;                                         //////////////////////////////////////////////////////// initialisation procedure//////////////////////////////////////////////////////procedure init;begin SetModuleColor&#40;$800000+302060&#41;;   input &#58;= CreateParam&#40;'input',ptDatafader&#41;; SetIsOutput&#40;input,false&#41;; SetMin&#40;input,0&#41;; SetMax&#40;input,1&#41;;                                                                                                     tau &#58;= CreateParam&#40;'tau',ptDatafader&#41;; SetIsOutput&#40;tau,false&#41;;                      SetMin&#40;tau,0&#41;; SetMax&#40;tau,1&#41;; SetValue&#40;tau,1&#41;; mu &#58;= CreateParam&#40;'mu',ptDatafader&#41;; SetIsOutput&#40;mu,false&#41;; SetMin&#40;mu,-5&#41;; SetMax&#40;mu,5&#41;;                                                                       output &#58;= CreateParam&#40;'output',ptDataFader &#41;; SetIsInput&#40;output,false&#41;;   SetMin&#40;output,-5&#41;; SetMax&#40;output,5&#41;;                                                               end;// Global Variablesvar inval, tauval, muval &#58; single;                             //////////////////////////////////////////////////////// Main Loop procedure//////////////////////////////////////////////////////Procedure Process;begin inval  &#58;= 10 * getValue&#40;input&#41;;  inval  &#58;= inval - 5;  tauval &#58;= getValue&#40;tau&#41;;  muval  &#58;= getValue&#40;mu&#41;;   muval  &#58;= power&#40;inval - muval,2&#41;;    muval  &#58;= &#40;-muval&#41; / &#40;2*tauval*tauval&#41;;  inval  &#58;= power&#40;2.718281828459045,muval&#41;;  inval  &#58;= inval / &#40;tauval *  2.5066282746&#41;; setvalue&#40;output, 2.5*inval&#41;;                              end;

Statistics: Posted by oli_lab — 22 Nov 2014, 10:20


]]>
2014-11-21T14:44:49+02:00 2014-11-21T14:44:49+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30745#p30745 <![CDATA[mapper curve module with bell shape]]> the list can be long?
for very specific curves, the solution could be to create a script?

Statistics: Posted by senso — 21 Nov 2014, 13:44


]]>
2014-11-17T21:43:47+02:00 2014-11-17T21:43:47+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30728#p30728 <![CDATA[mapper curve module with bell shape]]> http://fr.wikipedia.org/wiki/Fonction_gaussienne

Statistics: Posted by oli_lab — 17 Nov 2014, 20:43


]]>
BrainModular BrainModular Users Forum 2014-11-24T10:15:23+02:00 https://brainmodular.fr/forums/app.php/feed/topic/4600 2014-11-24T10:15:23+02:00 2014-11-24T10:15:23+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30775#p30775 <![CDATA[mapper curve module with bell shape]]> Statistics: Posted by senso — 24 Nov 2014, 09:15


]]>
2014-11-22T11:20:54+02:00 2014-11-22T11:20:54+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30748#p30748 <![CDATA[mapper curve module with bell shape]]>

CODE:

//////////////////////////////////////////////////////// bipolar bell shape////////////////////////////////////////////////////////////////////////////////////////////////////////////// Paramters declaration//////////////////////////////////////////////////////var input, tau, mu &#58; Tparameter;var output&#58; Tparameter;                                         //////////////////////////////////////////////////////// initialisation procedure//////////////////////////////////////////////////////procedure init;begin SetModuleColor&#40;$800000+302060&#41;;   input &#58;= CreateParam&#40;'input',ptDatafader&#41;; SetIsOutput&#40;input,false&#41;; SetMin&#40;input,0&#41;; SetMax&#40;input,1&#41;;                                                                                                     tau &#58;= CreateParam&#40;'tau',ptDatafader&#41;; SetIsOutput&#40;tau,false&#41;;                      SetMin&#40;tau,0&#41;; SetMax&#40;tau,1&#41;; SetValue&#40;tau,1&#41;; mu &#58;= CreateParam&#40;'mu',ptDatafader&#41;; SetIsOutput&#40;mu,false&#41;; SetMin&#40;mu,-5&#41;; SetMax&#40;mu,5&#41;;                                                                       output &#58;= CreateParam&#40;'output',ptDataFader &#41;; SetIsInput&#40;output,false&#41;;   SetMin&#40;output,-5&#41;; SetMax&#40;output,5&#41;;                                                               end;// Global Variablesvar inval, tauval, muval &#58; single;                             //////////////////////////////////////////////////////// Main Loop procedure//////////////////////////////////////////////////////Procedure Process;begin inval  &#58;= 10 * getValue&#40;input&#41;;  inval  &#58;= inval - 5;  tauval &#58;= getValue&#40;tau&#41;;  muval  &#58;= getValue&#40;mu&#41;;   muval  &#58;= power&#40;inval - muval,2&#41;;    muval  &#58;= &#40;-muval&#41; / &#40;2*tauval*tauval&#41;;  inval  &#58;= power&#40;2.718281828459045,muval&#41;;  inval  &#58;= inval / &#40;tauval *  2.5066282746&#41;; setvalue&#40;output, 2.5*inval&#41;;                              end;

Statistics: Posted by oli_lab — 22 Nov 2014, 10:20


]]>
2014-11-21T14:44:49+02:00 2014-11-21T14:44:49+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30745#p30745 <![CDATA[mapper curve module with bell shape]]> the list can be long?
for very specific curves, the solution could be to create a script?

Statistics: Posted by senso — 21 Nov 2014, 13:44


]]>
2014-11-17T21:43:47+02:00 2014-11-17T21:43:47+02:00 https://brainmodular.fr/forums/viewtopic.php?t=4600&p=30728#p30728 <![CDATA[mapper curve module with bell shape]]> http://fr.wikipedia.org/wiki/Fonction_gaussienne

Statistics: Posted by oli_lab — 17 Nov 2014, 20:43


]]>