setting bpatcher file with js

Nov 27, 2011 at 6:28pm

setting bpatcher file with js

I modified the following line from the js tutorial, based on information in the forums:

thesliders[k] = this.patcher.newdefault(k*64,384,”bpatcher”,
“@mode”, 1,
“@varname”, theName);

Wow, it works!!! And separate scripting names for each item!

But I cannot find info on the syntax for setting the file inside the bpatcher. Anybody know what that is??? I tried @patcher_file and @file, and neither works.


Nov 27, 2011 at 6:33pm

Never mind, I got it!!! I realized the attributes are listed by name in the help file. I don’t know where it’s explained that the attributes there are the same as the javascript ones starting with @, but it just clicked for me….


You must be logged in to reply to this topic.