no sound from patchers created through scripting

Nov 4, 2010 at 10:06am

no sound from patchers created through scripting

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.

Thanks,
/brian

#53066
Nov 5, 2010 at 5:31pm

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

#190841

You must be logged in to reply to this topic.