Forums > MaxMSP

pcontrol – don't auto open loaded patcher in window

February 14, 2010 | 11:24 pm

I am using pcontrol to dynamically load patchers into a bpatcher object. when a patcher is loaded, max opens a window with that patcher. Is there any way to disable this, as I’d like for the loaded patcher to simply be displayed in the bpatcher.

Thanks, ben


February 14, 2010 | 11:37 pm

Try giving your [bpatcher] object a scripting name and then sending a message like "script sendbox name " to [thispatcher] to load in a new file.

lh


February 15, 2010 | 12:45 am

this works, thanks very much!


February 15, 2010 | 3:14 am

i’ve noticed that when loading a patcher there is a noticable freeze in the audio. considering that the patch i am developing is for live use, this isn’t acceptable! is this an avoidable problem? are there any other ways to achieve this?

if it helps, the patcher i am loading in contains an mxj~ object and jsui, alongside a few numbers and a few other objects.


February 15, 2010 | 9:36 am

Look to [poly~] for dynamically loading patches without disturbing other DSP processes. It’s mentioned in the "DynamicPoly" subpatch. This won’t display your UI objects in the main patch though so you might want to use both approaches, one for loading in the audio objects and one for the interface. You could use [s] and [r] to communicate between them.

lh


February 15, 2010 | 3:42 pm

one further point which isnt made explicit in the docs, but is still good to know…

u can set the args for the "scripting named" bpatcher with same method:
"script sendbox args " to [thispatcher]

j


Viewing 6 posts - 1 through 6 (of 6 total)