I developed something in an old machine which allowed to use something like this
~selectWindow = Window("Capture Patterns")
.front.view.layout = VLayout (
* ([menu = PopUpMenu(), ~text = TextView().focus(true);])
);
~funcDict[\pattern] = {|id, data|
var def, pat = data.values.asArray.collect({|val| (val.asInteger.cpsmidi.round(0.1) / 10.0).abs });
~def = Pbindef(id.asSymbol, \freq, Pseq(pat, inf));
~midi = ((0..7)).collect({|i, item| (~sliders[item].value.midicps) });
p = Pbind(\degree, Pseq(pat, inf));
~lick[0] = Pdef(id.asSymbol);
~text.setString("\n" + p.asCode + "\n"); // => asCode not understood in new machine.
};
But opening the same program in Ventura - M2 machine didn’t work and I had to change it with a bit of messing to
~text.setString("\n" + p.asCompileString + "\n");
While my knowledge is limited to the above I was wondering if the workable version is actually unnecessary and something less is okay.