ArrayArrayArrayArray BrainModular BrainModular Users Forum 2018-11-01T17:15:38+02:00 https://brainmodular.com/forums/app.php/feed/topic/6265 2018-11-01T17:15:38+02:00 2018-11-01T17:15:38+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40328#p40328 <![CDATA[sdk onReadyToProcess callback]]> Statistics: Posted by 23fx23 — 01 Nov 2018, 16:15


]]>
2018-11-01T14:15:14+02:00 2018-11-01T14:15:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40324#p40324 <![CDATA[sdk onReadyToProcess callback]]> Actually it's hard to know when a module is ready to process: it can be different if it is a script, subpatch, regular module, user, etc.
The callback is not appropriate because of the delay (25-50ms in the general case); the callback will come after the OnProcess is called.
I have such an internal flag in patches that I could export in the UsineMaster structure as a Longbool pointer. Something like "ready_to_process". When False the patch is not calculated ie: apply-polyphony, compile-script, loading, etc.

It's the more accurate and simple solution?

Statistics: Posted by senso — 01 Nov 2018, 13:15


]]>
2018-08-23T14:27:07+02:00 2018-08-23T14:27:07+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40106#p40106 <![CDATA[sdk onReadyToProcess callback]]> Statistics: Posted by sm_jamieson — 23 Aug 2018, 14:27


]]>
2018-08-23T13:10:55+02:00 2018-08-23T13:10:55+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40105#p40105 <![CDATA[sdk onReadyToProcess callback]]>
when usine launch and open a module, there is a slight delay before its ready to process.

for now if have something like a bool ready flag set to false, and switch it in onProcess() ready = true;

not a drastic problem but setting it every bloc is prob not needed and efficient.

is there a way to get info when module is ready to process, or if not, could a possible procedure beeing added if not complex?

Statistics: Posted by 23fx23 — 23 Aug 2018, 13:10


]]>
BrainModular BrainModular Users Forum 2018-11-01T17:15:38+02:00 https://brainmodular.com/forums/app.php/feed/topic/6265 2018-11-01T17:15:38+02:00 2018-11-01T17:15:38+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40328#p40328 <![CDATA[sdk onReadyToProcess callback]]> Statistics: Posted by 23fx23 — 01 Nov 2018, 16:15


]]>
2018-11-01T14:15:14+02:00 2018-11-01T14:15:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40324#p40324 <![CDATA[sdk onReadyToProcess callback]]> Actually it's hard to know when a module is ready to process: it can be different if it is a script, subpatch, regular module, user, etc.
The callback is not appropriate because of the delay (25-50ms in the general case); the callback will come after the OnProcess is called.
I have such an internal flag in patches that I could export in the UsineMaster structure as a Longbool pointer. Something like "ready_to_process". When False the patch is not calculated ie: apply-polyphony, compile-script, loading, etc.

It's the more accurate and simple solution?

Statistics: Posted by senso — 01 Nov 2018, 13:15


]]>
2018-08-23T14:27:07+02:00 2018-08-23T14:27:07+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40106#p40106 <![CDATA[sdk onReadyToProcess callback]]> Statistics: Posted by sm_jamieson — 23 Aug 2018, 14:27


]]>
2018-08-23T13:10:55+02:00 2018-08-23T13:10:55+02:00 https://brainmodular.com/forums/viewtopic.php?t=6265&p=40105#p40105 <![CDATA[sdk onReadyToProcess callback]]>
when usine launch and open a module, there is a slight delay before its ready to process.

for now if have something like a bool ready flag set to false, and switch it in onProcess() ready = true;

not a drastic problem but setting it every bloc is prob not needed and efficient.

is there a way to get info when module is ready to process, or if not, could a possible procedure beeing added if not complex?

Statistics: Posted by 23fx23 — 23 Aug 2018, 13:10


]]>