Forums > MaxMSP

no sound from patchers created through scripting

Nov 04 2010 | 10:06 am

When I create a new patcher in js or in MXJ with new Patcher(), and put some DSP objects in it with newdefault, they don’t seem to work (although debugging shows that the messages are getting to the DSP objects).

An alternative which does work is to create a ‘p’ object and then get its subpatcher:
var p = this.patcher.newdefault(0, 0, 'p', 'somepatcher').subpatcher();

The first version has a few benefits, one of which is that you can’t accidentally save the dynamically-created patcher as part of your patch.

Is this the intended behavior? I couldn’t find it documented anywhere.


Nov 05 2010 | 5:31 pm

can anyone confirm this? can anyone from cycling confirm whether this is how it’s supposed to work?

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

Forums > MaxMSP