ArrayArrayArrayArray
BrainModularBrainModular Users Forum2018-11-01T17:15:38+02:00https://brainmodular.com/forums/app.php/feed/topic/62652018-11-01T17:15:38+02:002018-11-01T17:15:38+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40328#p40328Statistics: Posted by 23fx23 — 01 Nov 2018, 16:15
]]>
2018-11-01T14:15:14+02:002018-11-01T14:15:14+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40324#p40324Actually 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.
]]>2018-08-23T14:27:07+02:002018-08-23T14:27:07+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40106#p40106Statistics: Posted by sm_jamieson — 23 Aug 2018, 14:27
]]>2018-08-23T13:10:55+02:002018-08-23T13:10:55+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40105#p40105 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?
]]>BrainModularBrainModular Users Forum2018-11-01T17:15:38+02:00https://brainmodular.com/forums/app.php/feed/topic/62652018-11-01T17:15:38+02:002018-11-01T17:15:38+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40328#p40328Statistics: Posted by 23fx23 — 01 Nov 2018, 16:15
]]>2018-11-01T14:15:14+02:002018-11-01T14:15:14+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40324#p40324Actually 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.
]]>2018-08-23T14:27:07+02:002018-08-23T14:27:07+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40106#p40106Statistics: Posted by sm_jamieson — 23 Aug 2018, 14:27
]]>2018-08-23T13:10:55+02:002018-08-23T13:10:55+02:00https://brainmodular.com/forums/viewtopic.php?t=6265&p=40105#p40105 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?