ArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2013-06-14T15:24:06+02:00 https://brainmodular.com/forums/app.php/feed/topic/3897 2013-06-14T15:24:06+02:00 2013-06-14T15:24:06+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26878#p26878 <![CDATA[What to use for PSingle?]]> Statistics: Posted by seamus — 14 Jun 2013, 15:24


]]>
2013-06-14T13:28:04+02:00 2013-06-14T13:28:04+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26877#p26877 <![CDATA[What to use for PSingle?]]> Statistics: Posted by senso — 14 Jun 2013, 13:28


]]>
2013-06-14T13:26:32+02:00 2013-06-14T13:26:32+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26876#p26876 <![CDATA[What to use for PSingle?]]> Statistics: Posted by senso — 14 Jun 2013, 13:26


]]>
2013-06-14T12:01:15+02:00 2013-06-14T12:01:15+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26875#p26875 <![CDATA[What to use for PSingle?]]> Thanks for the tip!

Statistics: Posted by seamus — 14 Jun 2013, 12:01


]]>
2013-06-13T14:42:07+02:00 2013-06-13T14:42:07+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26869#p26869 <![CDATA[What to use for PSingle?]]> Statistics: Posted by 23fx23 — 13 Jun 2013, 14:42


]]>
2013-06-13T08:52:39+02:00 2013-06-13T08:52:39+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26868#p26868 <![CDATA[What to use for PSingle?]]>
A simple midi change channel script takes ..33% on my quad-core i7!

16 of those, that's 5% CPU just to change midi channels.

Seems like a set of basic midi tools would be a good use for the SDK. Or nice to have as basic modules....

I'll see if it's cheaper to convert to and from midi using modules.

EDIT: that brings it down by about half. Guess that's the better choice.

Statistics: Posted by woodslanding — 13 Jun 2013, 08:52


]]>
2013-06-13T08:32:42+02:00 2013-06-13T08:32:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26865#p26865 <![CDATA[What to use for PSingle?]]>
But for now, I realized my script doesn't need to work in the audio path anyway, it can just create a control signal for a volume module.

But I may just use modules anyway if the script engine is not cpu friendly. I mostly did it to save CPU!

cheers,
-e

Statistics: Posted by woodslanding — 13 Jun 2013, 08:32


]]>
2013-06-12T22:54:01+02:00 2013-06-12T22:54:01+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26863#p26863 <![CDATA[What to use for PSingle?]]> That's why the the V5 script-pointers capabilities are not available in Hollyhock.
No solution actually except rewrite a new script engine and it could take years...

But we made a particular effort to simplify the SDK. A user module is a very good option for intensive data manipulations?

Statistics: Posted by senso — 12 Jun 2013, 22:54


]]>
2013-06-12T22:42:18+02:00 2013-06-12T22:42:18+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26861#p26861 <![CDATA[What to use for PSingle?]]>
Here's an attempt at doing the old audio example in a different way:

CODE:

/////////////////////////////////////////////// Audio Volume// Simple Audio Volume Script////////////////////////////////////////////// parameters declarationvar input    &#58; Tparameter;var output   &#58; Tparameter;var gain     &#58; TParameter;// initialisation &#58; create parametersprocedure init;begin   Input &#58;= CreateParam&#40;'In',ptaudio&#41;; output &#58;= CreateParam&#40;'out',ptaudio&#41;; gain &#58;= CreateParam&#40;'gain',ptDataFader&#41;;            SetIsOutPut&#40;Input,false&#41;; SetIsOutPut&#40;Gain,false&#41;;         SetIsInPut&#40;Output,false&#41;; SetMin&#40;gain,0&#41;; SetMax&#40;gain,1&#41;; Setvalue&#40;gain,1&#41;;  SetLength&#40;output,BLOCSIZE&#41;;                                      end;// Global variablesvar i            &#58; integer;                   //var pin,pout &#58; PSingle;var g &#58; single;//////////////////////////////// main proc//////////////////////////////procedure Process;begin //pIn &#58;= GetdataPointer&#40;0&#41;;  //pOut &#58;= GetdataPointer&#40;1&#41;; g &#58;= GetValue&#40;2&#41;;  for i &#58;= 0 to BLOCSIZE-1 do begin   //pout^&#58;= pin^*g;   //incptr&#40;pin&#41;;   //incptr&#40;pout&#41;    SetDataArrayValue&#40;1, i, GetDataArrayValue&#40;0, i&#41;*g&#41;;    end;                                                    end;
This works, but uses a lot CPU.

I tried the same in V5, and there both versions of the script worked, and both used negligible CPU.

Statistics: Posted by bsork — 12 Jun 2013, 22:42


]]>
2013-06-12T16:47:38+02:00 2013-06-12T16:47:38+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26853#p26853 <![CDATA[What to use for PSingle?]]>
V6 does not recognize this type. What do I use instead? There are no audio example scripts that I can see in the new browser....

Statistics: Posted by woodslanding — 12 Jun 2013, 16:47


]]>
BrainModular BrainModular Users Forum 2013-06-14T15:24:06+02:00 https://brainmodular.com/forums/app.php/feed/topic/3897 2013-06-14T15:24:06+02:00 2013-06-14T15:24:06+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26878#p26878 <![CDATA[What to use for PSingle?]]> Statistics: Posted by seamus — 14 Jun 2013, 15:24


]]>
2013-06-14T13:28:04+02:00 2013-06-14T13:28:04+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26877#p26877 <![CDATA[What to use for PSingle?]]> Statistics: Posted by senso — 14 Jun 2013, 13:28


]]>
2013-06-14T13:26:32+02:00 2013-06-14T13:26:32+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26876#p26876 <![CDATA[What to use for PSingle?]]> Statistics: Posted by senso — 14 Jun 2013, 13:26


]]>
2013-06-14T12:01:15+02:00 2013-06-14T12:01:15+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26875#p26875 <![CDATA[What to use for PSingle?]]> Thanks for the tip!

Statistics: Posted by seamus — 14 Jun 2013, 12:01


]]>
2013-06-13T14:42:07+02:00 2013-06-13T14:42:07+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26869#p26869 <![CDATA[What to use for PSingle?]]> Statistics: Posted by 23fx23 — 13 Jun 2013, 14:42


]]>
2013-06-13T08:52:39+02:00 2013-06-13T08:52:39+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26868#p26868 <![CDATA[What to use for PSingle?]]>
A simple midi change channel script takes ..33% on my quad-core i7!

16 of those, that's 5% CPU just to change midi channels.

Seems like a set of basic midi tools would be a good use for the SDK. Or nice to have as basic modules....

I'll see if it's cheaper to convert to and from midi using modules.

EDIT: that brings it down by about half. Guess that's the better choice.

Statistics: Posted by woodslanding — 13 Jun 2013, 08:52


]]>
2013-06-13T08:32:42+02:00 2013-06-13T08:32:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26865#p26865 <![CDATA[What to use for PSingle?]]>
But for now, I realized my script doesn't need to work in the audio path anyway, it can just create a control signal for a volume module.

But I may just use modules anyway if the script engine is not cpu friendly. I mostly did it to save CPU!

cheers,
-e

Statistics: Posted by woodslanding — 13 Jun 2013, 08:32


]]>
2013-06-12T22:54:01+02:00 2013-06-12T22:54:01+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26863#p26863 <![CDATA[What to use for PSingle?]]> That's why the the V5 script-pointers capabilities are not available in Hollyhock.
No solution actually except rewrite a new script engine and it could take years...

But we made a particular effort to simplify the SDK. A user module is a very good option for intensive data manipulations?

Statistics: Posted by senso — 12 Jun 2013, 22:54


]]>
2013-06-12T22:42:18+02:00 2013-06-12T22:42:18+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26861#p26861 <![CDATA[What to use for PSingle?]]>
Here's an attempt at doing the old audio example in a different way:

CODE:

/////////////////////////////////////////////// Audio Volume// Simple Audio Volume Script////////////////////////////////////////////// parameters declarationvar input    &#58; Tparameter;var output   &#58; Tparameter;var gain     &#58; TParameter;// initialisation &#58; create parametersprocedure init;begin   Input &#58;= CreateParam&#40;'In',ptaudio&#41;; output &#58;= CreateParam&#40;'out',ptaudio&#41;; gain &#58;= CreateParam&#40;'gain',ptDataFader&#41;;            SetIsOutPut&#40;Input,false&#41;; SetIsOutPut&#40;Gain,false&#41;;         SetIsInPut&#40;Output,false&#41;; SetMin&#40;gain,0&#41;; SetMax&#40;gain,1&#41;; Setvalue&#40;gain,1&#41;;  SetLength&#40;output,BLOCSIZE&#41;;                                      end;// Global variablesvar i            &#58; integer;                   //var pin,pout &#58; PSingle;var g &#58; single;//////////////////////////////// main proc//////////////////////////////procedure Process;begin //pIn &#58;= GetdataPointer&#40;0&#41;;  //pOut &#58;= GetdataPointer&#40;1&#41;; g &#58;= GetValue&#40;2&#41;;  for i &#58;= 0 to BLOCSIZE-1 do begin   //pout^&#58;= pin^*g;   //incptr&#40;pin&#41;;   //incptr&#40;pout&#41;    SetDataArrayValue&#40;1, i, GetDataArrayValue&#40;0, i&#41;*g&#41;;    end;                                                    end;
This works, but uses a lot CPU.

I tried the same in V5, and there both versions of the script worked, and both used negligible CPU.

Statistics: Posted by bsork — 12 Jun 2013, 22:42


]]>
2013-06-12T16:47:38+02:00 2013-06-12T16:47:38+02:00 https://brainmodular.com/forums/viewtopic.php?t=3897&p=26853#p26853 <![CDATA[What to use for PSingle?]]>
V6 does not recognize this type. What do I use instead? There are no audio example scripts that I can see in the new browser....

Statistics: Posted by woodslanding — 12 Jun 2013, 16:47


]]>