I am trying to create a subpatcher, and fill it with 5 ctlouts. I am having trouble referring to the object that I created, and then with getting the maxobj to recognize the subpatcher method. Any suggestions?
var elementArray = new Array ();
var controlTower = this.patcher.newdefault(300, 100, ‘patcher’, ‘controlTower’);
controlTower.varname = ‘thesubpatch’;
var homename = patcher.getnamed(‘thesubpatch’);
var homebase = homename.subpatcher();
for (i = 0; i < 5; i++)
elementArray[i] = homebase.newdefault(20*i, 20, "ctlout");
Ha! After messing around with this for two hours, it just started to work, somehow … now if only I could figure out why, so that I don’t do it again!
C74 RSS Feed | © Copyright Cycling '74