contents of mc.gen~ disappearing
I'm following this tutorial on using mc.gen~ to write a granular synth. I haven't got very far however as the mc.gen~ window regularly crashes.
It reports a huge list of errors like this:
gen_domain: dsp.gen: [string "gen2.PatcherToExpr.max"]:45: attempt to index local 'patcher' (a userdata value)
gen~: failed to compile patcher
gen_domain: dsp.gen: [string "-- main2.lua..."]:697: failed to compile genpatcher
gen~: failed to compile patcher
And then the mc.gen~ object resets to its default (a simple sum of its inputs).
Does anyone have any idea what the problem is?
This is with Max 8 btw.
Same happened to me in max 9
this has been an issue for awhile:
(it's an issue that happens with gen~, so the MC version will have the same)
i can't remember if there's been a tried and tested workaround, but i've felt like i've had none of this problem whenever i remember to use a title for my gen~ patchers(you can either type it as the first argument to the gen~ patcher, or use the '@title' attribute; ...i have my own theory that creating this 'namespace' causes the object to handle memory differently/more-discretely... but i don't actually know, i've just been noticing that, while i have run into the problem long ago, i've not run into the problem since i started using titles all the time 🤷♂️).
Thanks, will start adding a title, let's see what happens!